version 1.4, 2011/01/25 11:24:24
|
version 1.5, 2011/02/17 14:22:42
|
|
|
class CIMPropertyListRep | class CIMPropertyListRep |
{ | { |
public: | public: |
CIMPropertyListRep():isCimNameTagsUpdated(false) |
CIMPropertyListRep() |
|
: _refCounter(1), |
|
isNull(true), |
|
isCimNameTagsUpdated(false) |
{ | { |
} | } |
|
|
|
CIMPropertyListRep(const CIMPropertyListRep& x) |
|
: _refCounter(1), |
|
propertyNames(x.propertyNames), |
|
cimNameTags(x.cimNameTags), |
|
isNull(x.isNull), |
|
isCimNameTagsUpdated(x.isCimNameTagsUpdated) |
|
{ |
|
} |
|
|
|
CIMPropertyListRep& operator=(const CIMPropertyListRep& x) |
|
{ |
|
if (&x != this) |
|
{ |
|
propertyNames = x.propertyNames; |
|
cimNameTags = x.cimNameTags; |
|
isNull = x.isNull; |
|
isCimNameTagsUpdated = x.isCimNameTagsUpdated; |
|
} |
|
return *this; |
|
} |
|
|
~CIMPropertyListRep() | ~CIMPropertyListRep() |
{ | { |
cimNameTags.clear(); | cimNameTags.clear(); |
} | } |
| |
|
// reference counter as member to avoid |
|
// virtual function resolution overhead |
|
AtomicInt _refCounter; |
|
|
Array<CIMName> propertyNames; | Array<CIMName> propertyNames; |
Array<Uint32> cimNameTags; | Array<Uint32> cimNameTags; |
Boolean isNull; | Boolean isNull; |