CHROMA
|
Class for counted reference semantics. More...
#include <handle.h>
Public Member Functions | |
Handle (T *p=0) | |
Initialize pointer with existing pointer. More... | |
Handle (const Handle &p) | |
Copy pointer (one more owner) More... | |
~Handle () | |
Destructor (delete value if this was the last owner) More... | |
Handle & | operator= (const Handle &p) |
Assignment (unshare old and share new value) More... | |
template<typename Q > | |
Handle< Q > | cast () |
RGE's addition. A cast function to morph the actual type. More... | |
T & | operator* () const |
Access the value to which the pointer refers. More... | |
T * | operator-> () const |
Private Member Functions | |
void | dispose () |
Private Attributes | |
T * | ptr |
int * | count |
Friends | |
template<typename Q > | |
class | Handle |
The cast function requires all Handles<Q> to be friends of Handle<T> More... | |
Class for counted reference semantics.
Holds and object, and deletes it when the last Handle to it is destroyed
|
inline |
|
inline |
|
inline |
RGE's addition. A cast function to morph the actual type.
Definition at line 61 of file handle.h.
References Octave::count, and q.
Referenced by Chroma::EvenOddPrecCloverExtFieldLinOp::create().
|
inlineprivate |
Definition at line 85 of file handle.h.
References Octave::count.
|
inline |
|
inline |
|
inline |
Assignment (unshare old and share new value)
Definition at line 47 of file handle.h.
References Octave::count, and Chroma::p.
|
private |
|
private |