CNORXZ
Container with Native Operation Routines and Expressions
|
#include <obj_handle.h>
Public Member Functions | |
ObjHandle () | |
ObjHandle (Uptr< T > &&a) | |
ObjHandle (const ObjHandle &a) | |
ObjHandle (ObjHandle &&a) | |
ObjHandle & | operator= (const ObjHandle &a) |
ObjHandle & | operator= (ObjHandle &&a) |
T & | operator* () |
T * | operator-> () |
const T & | operator* () const |
const T * | operator-> () const |
Protected Attributes | |
Uptr< T > | mC |
unique pointer wrapper
Allows to handle objects accessed through abstract base class pointers as if they were complete (non-virtual) types. Each type to be handled is required to have a copy() member function that returns a copy of itself
T | object type |
Definition at line 34 of file obj_handle.h.
CNORXZ::ObjHandle< T >::ObjHandle | ( | ) |
default constructor
Definition at line 23 of file obj_handle.cc.h.
construct from unique pointer
a | unique pointer |
Definition at line 26 of file obj_handle.cc.h.
T & CNORXZ::ObjHandle< T >::operator* | ( | ) |
access data
Definition at line 49 of file obj_handle.cc.h.
const T & CNORXZ::ObjHandle< T >::operator* | ( | ) | const |
access data (const)
Definition at line 61 of file obj_handle.cc.h.
T * CNORXZ::ObjHandle< T >::operator-> | ( | ) |
get pointer to data
Definition at line 55 of file obj_handle.cc.h.
const T * CNORXZ::ObjHandle< T >::operator-> | ( | ) | const |
get pointer to data (const)
Definition at line 67 of file obj_handle.cc.h.
ObjHandle< T > & CNORXZ::ObjHandle< T >::operator= | ( | const ObjHandle< T > & | a | ) |
ObjHandle< T > & CNORXZ::ObjHandle< T >::operator= | ( | ObjHandle< T > && | a | ) |
pointer to the object data
Definition at line 37 of file obj_handle.h.