![]() |
PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
|
Definition at line 24 of file PurehwSystemMemory.cpp.
Public Member Functions | |
CConsole & | getConsole () const |
Returns access to console preset with logger module name as this class. | |
TPureULong | getFreeSystemMemory () |
Gets the amount of free physical memory. | |
TPureULong | getTotalSystemMemory () const |
Gets the total amount of physical memory. | |
void | WriteStats () |
Writes statistics to the console. | |
![]() | |
![]() | |
void | Initialize () |
Initializes the instance. | |
void | Deinitialize () |
Deinitializes the instance. | |
TPureBool | isInitialized () const |
Returns whether the instance is successfully initialized. | |
Static Public Member Functions | |
static PureHwSystemMemoryImpl & | get () |
Gets the singleton instance. | |
static const char * | getLoggerModuleName () |
Returns the logger module name of this class. | |
![]() | |
static PureHwSystemMemory & | get () |
Gets the singleton instance. | |
Private Member Functions | |
PureHwSystemMemoryImpl () | |
Sets members to default values. | |
PureHwSystemMemoryImpl (const PureHwSystemMemoryImpl &) | |
PureHwSystemMemoryImpl & | operator= (const PureHwSystemMemoryImpl &) |
virtual | ~PureHwSystemMemoryImpl () |
void | PreInitialize () |
Preinitializes members. | |
TPureBool | initializeBase () |
Does the real initializations. | |
void | DeinitializeBase () |
Does the real deinitialization. | |
Private Attributes | |
MEMORYSTATUS | ms |
To query memory. | |
Static Private Attributes | |
static PureHwSystemMemoryImpl | hwMemoryInstance |
Additional Inherited Members | |
![]() | |
PureHwBase () | |
Sets members to default values. | |
PureHwBase (const PureHwBase &) | |
PureHwBase & | operator= (const PureHwBase &) |
virtual | ~PureHwBase () |
|
private |
Sets members to default values.
Definition at line 147 of file PurehwSystemMemory.cpp.
|
private |
Definition at line 153 of file PurehwSystemMemory.cpp.
|
privatevirtual |
Definition at line 165 of file PurehwSystemMemory.cpp.
|
privatevirtual |
Does the real deinitialization.
Implements PureHwBase.
Definition at line 201 of file PurehwSystemMemory.cpp.
|
static |
Gets the singleton instance.
Definition at line 73 of file PurehwSystemMemory.cpp.
CConsole & PureHwSystemMemoryImpl::getConsole | ( | ) | const |
Returns access to console preset with logger module name as this class.
Intentionally not virtual, so the getConsole() in derived class should hide this instead of overriding.
Definition at line 85 of file PurehwSystemMemory.cpp.
|
virtual |
Gets the amount of free physical memory.
Implements PureHwSystemMemory.
Definition at line 108 of file PurehwSystemMemory.cpp.
|
static |
Returns the logger module name of this class.
Intentionally not virtual, so derived class should hide this instead of overriding. Not even private, so user can also access this from outside, for any reason like controlling log filtering per logger module name.
Definition at line 98 of file PurehwSystemMemory.cpp.
|
virtual |
Gets the total amount of physical memory.
Implements PureHwSystemMemory.
Definition at line 119 of file PurehwSystemMemory.cpp.
|
privatevirtual |
Does the real initializations.
Does the real initialization.
Implements PureHwBase.
Definition at line 184 of file PurehwSystemMemory.cpp.
|
private |
Definition at line 159 of file PurehwSystemMemory.cpp.
|
privatevirtual |
Preinitializes members.
Reimplemented from PureHwBase.
Definition at line 174 of file PurehwSystemMemory.cpp.
|
virtual |
Writes statistics to the console.
Implements PureHwSystemMemory.
Definition at line 128 of file PurehwSystemMemory.cpp.
|
staticprivate |
Definition at line 47 of file PurehwSystemMemory.cpp.
|
private |
To query memory.
Definition at line 51 of file PurehwSystemMemory.cpp.