cmpi
|
#include <cmpi/CmpiArray.h>
Public Member Functions | |
CmpiArray (CMPICount max, CMPIType type) | |
CmpiArray () | |
CMPICount | size () const |
CmpiArrayIdx | operator[] (int idx) const |
![]() | |
CmpiBoolean | isNull () const |
CmpiString | toString () |
CmpiBoolean | isA (const char *typeName) const |
Private Member Functions | |
void | operator= (int x) |
CMPIArray * | getEnc () const |
void * | makeArray (CMPIBroker *mb, CMPICount max, CMPIType type) |
CmpiArray (CMPIArray *arr) | |
Friends | |
class | CmpiArrayIdx |
class | CmpiData |
class | CmpiEnumeration |
Additional Inherited Members | |
![]() | |
CmpiObject () | |
CmpiObject (const void *enc) | |
CmpiString | doToString (CMPIBroker *mb) |
CmpiBoolean | doIsA (CMPIBroker *mb, const char *typeName) const |
![]() | |
void * | enc |
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.
|
private |
References CmpiObject::enc.
References CmpiObject::enc, CmpiProviderBase::getBroker(), and makeArray().
CmpiArray::CmpiArray | ( | ) |
|
private |
Gets the encapsulated CMPIArray.
References CmpiObject::enc.
Referenced by CmpiData::CmpiData(), CmpiArrayIdx::getData(), CmpiArrayIdx::operator=(), and size().
|
private |
References CMPI_RC_OK, _CMPIBroker::eft, _CMPIBrokerEncFT::newArray, and _CMPIStatus::rc.
Referenced by CmpiArray().
|
private |
CmpiArrayIdx CmpiArray::operator[] | ( | int | idx | ) | const |
References CmpiArrayIdx, and CmpiArrayIdx::idx.
CMPICount CmpiArray::size | ( | ) | const |
References CMPI_RC_OK, _CMPIArray::ft, getEnc(), _CMPIArrayFT::getSize, and _CMPIStatus::rc.
|
friend |
Referenced by operator[]().
|
friend |
|
friend |