|
rambrain
|
Main class to fetch memory that is managed by rambrain for actual usage. More...
#include <managedPtr.h>
Public Member Functions | |
| adhereTo (const adhereTo< T > &ref) | |
| copy constructor More... | |
| adhereTo (const managedPtr< T > &data, bool loadImmediately=true) | |
| constructor fetching data More... | |
| adhereTo (const managedPtr< T > *data, bool loadImmediately=true) | |
| Provides the same functionality as the other constructor but accepts a managedPtr pointer as argument. More... | |
| adhereTo< T > & | operator= (const adhereTo< T > &ref) |
| Simple assignment operator. More... | |
| operator const T * () | |
| This operator can be used to pull the data to a const pointer. Use this whenever possible. More... | |
| operator const T * () const | |
| This operator can be used to pull the data to a const pointer. Use this whenever possible. More... | |
| operator T * () | |
| This operator can be used to pull the data to a non-const pointer. If you only read the data, pull the const version, as this saves execution time. More... | |
| ~adhereTo () | |
| destructor More... | |
Private Attributes | |
| const managedPtr< T > * | data |
| bool | loadedWritable = false |
| bool | loadedReadable = false |
Friends | |
| class | ::adhereTo_Unit_LoadUnload_Test |
| class | ::adhereTo_Unit_LoadUnloadConst_Test |
| class | ::adhereTo_Unit_TwiceAdhered_Test |
| class | ::adhereTo_Unit_TwiceAdheredOnceUsed_Test |
Main class to fetch memory that is managed by rambrain for actual usage.
Definition at line 48 of file managedPtr.h.
|
inline |
copy constructor
Definition at line 392 of file managedPtr.h.
|
inline |
constructor fetching data
| loadImmediately | set this to false if you want to load the element when pulling the pointer and not beforehands |
| data | the managedPtr that is to be used in near future |
Definition at line 407 of file managedPtr.h.
|
inline |
Provides the same functionality as the other constructor but accepts a managedPtr pointer as argument.
Definition at line 415 of file managedPtr.h.
|
inline |
destructor
Definition at line 463 of file managedPtr.h.
|
inline |
This operator can be used to pull the data to a const pointer. Use this whenever possible.
Definition at line 439 of file managedPtr.h.
|
inline |
This operator can be used to pull the data to a const pointer. Use this whenever possible.
Definition at line 443 of file managedPtr.h.
|
inline |
This operator can be used to pull the data to a non-const pointer. If you only read the data, pull the const version, as this saves execution time.
Definition at line 453 of file managedPtr.h.
|
inline |
Simple assignment operator.
Definition at line 418 of file managedPtr.h.
|
friend |
Definition at line 478 of file managedPtr.h.
|
friend |
Definition at line 479 of file managedPtr.h.
|
friend |
Definition at line 480 of file managedPtr.h.
|
friend |
Definition at line 481 of file managedPtr.h.
|
private |
Definition at line 471 of file managedPtr.h.
|
mutableprivate |
Definition at line 474 of file managedPtr.h.
|
mutableprivate |
Definition at line 473 of file managedPtr.h.