#include <acsComponentSmartPtr.h>
Collaboration diagram for maci::ComponentStorage< T, H >:
Public Types | |
typedef T * | StoredType |
typedef T * | PointerType |
typedef T & | ReferenceType |
Public Member Functions | |
ComponentStorage () | |
ComponentStorage (const StoredType &p) | |
ComponentStorage (const ComponentStorage &rhs) | |
template<typename U, typename V> | ComponentStorage (const ComponentStorage< U, V > &) |
void | setValues (H *h, bool s, const StoredType &p) |
PointerType | operator-> () const |
ReferenceType | operator * () const |
void | Swap (ComponentStorage &rhs) |
Protected Member Functions | |
void | Destroy () |
Static Protected Member Functions | |
StoredType | Default () |
Private Attributes | |
H * | handle |
bool | sticky |
StoredType | pointee_ |
Friends | |
PointerType | GetImpl (const ComponentStorage &sp) |
const StoredType & | GetImplRef (const ComponentStorage &sp) |
StoredType & | GetImplRef (ComponentStorage &sp) |
|
|
|
|
|
|
|
Default Constructor |
|
Constructor that stores default management values with a live pointer. |
|
Copy Constructor |
|
Copy Constructor for ClientStores of other types. We don't allow copying of different types, so the attributes are set to default values. |
|
|
|
Destroy. Release the component reference managed by this object. |
|
Dereference Operator |
|
Member Access Operator |
|
SetValues Set the attribute values for the Component being managed. This is a support method for the ComponentSmartPtr constructor.
|
|
Swap Exchange values with another instance of ComponentStorage.
|
|
GetImpl. Retrieve the Component pointer from its storage object. |
|
GetImplRef. Retrieve the Component reference from its storage object. |
|
GetImplRef. Retrieve the Component reference from its storage object. |
|
|
|
|
|
|