version 1.40, 2008/05/07 20:18:45
|
version 1.41, 2008/10/22 08:19:39
|
|
|
#include <Pegasus/Common/CIMQualifierList.h> | #include <Pegasus/Common/CIMQualifierList.h> |
#include <Pegasus/Common/CIMParameter.h> | #include <Pegasus/Common/CIMParameter.h> |
#include <Pegasus/Common/CIMParameterRep.h> | #include <Pegasus/Common/CIMParameterRep.h> |
#include <Pegasus/Common/Sharable.h> |
|
#include <Pegasus/Common/Pair.h> | #include <Pegasus/Common/Pair.h> |
#include <Pegasus/Common/OrderedSet.h> | #include <Pegasus/Common/OrderedSet.h> |
| |
|
|
class CIMConstMethod; | class CIMConstMethod; |
class DeclContext; | class DeclContext; |
| |
class CIMMethodRep : public Sharable |
class CIMMethodRep |
{ | { |
public: | public: |
| |
|
|
const CIMName& classOrigin, | const CIMName& classOrigin, |
Boolean propagated); | Boolean propagated); |
| |
~CIMMethodRep() |
const CIMName& getName() const |
{ |
|
} |
|
|
|
virtual const CIMName& getName() const |
|
{ | { |
return _name; | return _name; |
} | } |
|
|
| |
void decreaseOwnerCount() | void decreaseOwnerCount() |
{ | { |
_ownerCount++; |
_ownerCount--; |
return; | return; |
} | } |
| |
|
|
return new CIMMethodRep(*this); | return new CIMMethodRep(*this); |
} | } |
| |
|
void Inc() |
|
{ |
|
_refCounter++; |
|
} |
|
|
|
void Dec() |
|
{ |
|
if (_refCounter.decAndTestIfZero()) |
|
delete this; |
|
} |
|
|
private: | private: |
| |
CIMMethodRep(const CIMMethodRep& x); | CIMMethodRep(const CIMMethodRep& x); |
|
|
Uint32 _nameTag; | Uint32 _nameTag; |
Uint32 _ownerCount; | Uint32 _ownerCount; |
| |
|
// reference counter as member to avoid |
|
// virtual function resolution overhead |
|
AtomicInt _refCounter; |
|
|
typedef OrderedSet<CIMParameter, | typedef OrderedSet<CIMParameter, |
CIMParameterRep, | CIMParameterRep, |
PEGASUS_PARAMETER_ORDEREDSET_HASHSIZE> ParameterSet; | PEGASUS_PARAMETER_ORDEREDSET_HASHSIZE> ParameterSet; |