Wrapper to automatically create a private store for an element. More...
#include <AuxElementComplete.h>
Public Member Functions | |
AuxElementComplete () | |
Default constructor. | |
template<class U1 > | |
AuxElementComplete (const U1 &u1) | |
Generic constructor. | |
AuxElementComplete (const AuxElementComplete &other) | |
Copy constructor. |
Wrapper to automatically create a private store for an element.
A class deriving from SG::AuxElement
can be given a private store by calling makePrivateStore
; after that, it can have auxiliary data attached to it. Using this wrapper makes a class that will automatically create a private store when it is constructed.
class MyClass : public SG::AuxElement { ... }; typedef SG::AuxElementComplete<MyClass> MyClassComplete; MyClassComplete obj; // obj gets a private store. obj.auxdata<int> ("mydata") = 1; MyClassComplete obj2 (obj); // aux data gets copied.
SG::AuxElementComplete< T >::AuxElementComplete | ( | ) | [inline] |
Default constructor.
A private store is created for this object.
SG::AuxElementComplete< T >::AuxElementComplete | ( | const U1 & | u1 | ) | [inline] |
Generic constructor.
u1 | Constructor argument. |
A private store is created for this object.
SG::AuxElementComplete< T >::AuxElementComplete | ( | const AuxElementComplete< T > & | other | ) | [inline] |
Copy constructor.
other | The object being copied. |
A private store is created for this object.