ergo
|
Smart pointer class to control access to object. More...
#include <ValidPtr.h>
Public Member Functions | |
ValidPtr (Tobj *p) | |
Copy ordinary pointer constructor. More... | |
~ValidPtr () | |
Tobj & | operator* () const |
Tobj * | operator-> () const |
const Tobj & | getConstRefForCopying () const |
getConstRefForCopying() is provided to make it possible to copy the object also when it is written to file. More... | |
void | inMemorySet (bool val) |
bool | inMemoryGet () const |
void | haveDataStructureSet (bool val) |
bool | haveDataStructureGet () const |
Static Public Member Functions | |
static void | swap (ValidPtr< Tobj > &ptrA, ValidPtr< Tobj > &ptrB) |
Protected Attributes | |
Tobj * | ptr |
bool | inMemory |
Access to ptr forbidden if inMemory is false. More... | |
bool | haveDataStructure |
Access to ptr forbidden if haveDataStructure is false. More... | |
Private Member Functions | |
ValidPtr (ValidPtr< Tobj > const &) | |
ValidPtr< Tobj > & | operator= (ValidPtr< Tobj > const &) |
Smart pointer class to control access to object.
Primary use: Control access to objects that may be written to file.
|
inlineexplicit |
Copy ordinary pointer constructor.
|
inline |
|
inlineprivate |
|
inline |
getConstRefForCopying() is provided to make it possible to copy the object also when it is written to file.
Referenced by mat::MatrixBase< Treal, Tmatrix >::MatrixBase(), and mat::MatrixBase< Treal, Tmatrix >::operator=().
|
inline |
|
inline |
Referenced by mat::VectorGeneral< ergo_real, Vectorrr >::clear_structure(), mat::MatrixTriangular< Treal, Tmatrix >::inch(), mat::MatrixBase< Treal, Tmatrix >::MatrixBase(), mat::VectorGeneral< ergo_real, Vectorrr >::operator=(), mat::MatrixBase< Treal, Tmatrix >::operator=(), mat::VectorGeneral< ergo_real, Vectorrr >::resetSizesAndBlocks(), mat::MatrixBase< Treal, Tmatrix >::resetSizesAndBlocks(), and mat::VectorGeneral< ergo_real, Vectorrr >::VectorGeneral().
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlinestatic |
Referenced by mat::MatrixSymmetric< Treal, Tmatrix >::transfer().
|
protected |
Access to ptr forbidden if haveDataStructure is false.
Referenced by mat::ValidPtr< Vectorrr >::haveDataStructureGet(), mat::ValidPtr< Vectorrr >::haveDataStructureSet(), mat::ValidPtr< Vectorrr >::operator*(), and mat::ValidPtr< Vectorrr >::operator->().
|
protected |
Access to ptr forbidden if inMemory is false.
Referenced by mat::ValidPtr< Vectorrr >::inMemoryGet(), mat::ValidPtr< Vectorrr >::inMemorySet(), mat::ValidPtr< Vectorrr >::operator*(), and mat::ValidPtr< Vectorrr >::operator->().
|
protected |