CmpiArray Class Reference

#include <cmpi/CmpiArray.h>

Inheritance diagram for CmpiArray:
CmpiObject

List of all members.

Public Member Functions

 CmpiArray (CMPICount max, CMPIType type)
 CmpiArray ()
CMPICount size () const
CmpiArrayIdx operator[] (int idx) const

Private Member Functions

void operator= (int x)
CMPIArraygetEnc () const
void * makeArray (CMPIBroker *mb, CMPICount max, CMPIType type)
 CmpiArray (CMPIArray *arr)

Friends

class CmpiArrayIdx
class CmpiData
class CmpiEnumeration

Detailed Description

This class wraps a CMPIData value array. Index operations use the [] operator. Data extraction uses type conversion operators. Extraction operations can be appended to an array indexing operation like this:

CmpiString state;

CmpiArray states;

states=ci.getProperty("States");

state=states[3];

Assignment statements use array indexing operations as well:

states[5]="offline";

Type mismatches will be signalled by exceptions.


Constructor & Destructor Documentation

CmpiArray::CmpiArray ( CMPIArray arr  )  [private]

References CmpiObject::enc.

CmpiArray::CmpiArray ( CMPICount  max,
CMPIType  type 
)
CmpiArray::CmpiArray (  ) 

Member Function Documentation

CMPIArray * CmpiArray::getEnc (  )  const [private]

Gets the encapsulated CMPIArray.

References CmpiObject::enc.

Referenced by CmpiData::CmpiData(), CmpiArrayIdx::getData(), CmpiArrayIdx::operator=(), and size().

void * CmpiArray::makeArray ( CMPIBroker mb,
CMPICount  max,
CMPIType  type 
) [private]
void CmpiArray::operator= ( int  x  )  [private]
CmpiArrayIdx CmpiArray::operator[] ( int  idx  )  const

References CmpiArrayIdx.

CMPICount CmpiArray::size (  )  const

Friends And Related Function Documentation

friend class CmpiArrayIdx [friend]

Referenced by operator[]().

friend class CmpiData [friend]
friend class CmpiEnumeration [friend]

The documentation for this class was generated from the following files:
Generated on Mon Jul 5 13:09:52 2010 for cmpi by  doxygen 1.6.3