PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
Loading...
Searching...
No Matches
PureHwSystemMemoryImpl Class Reference

Detailed Description

Definition at line 24 of file PurehwSystemMemory.cpp.

+ Inheritance diagram for PureHwSystemMemoryImpl:

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.
 
- Public Member Functions inherited from PureHwSystemMemory
- Public Member Functions inherited from PureHwBase
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 PureHwSystemMemoryImplget ()
 Gets the singleton instance.
 
static const char * getLoggerModuleName ()
 Returns the logger module name of this class.
 
- Static Public Member Functions inherited from PureHwSystemMemory
static PureHwSystemMemoryget ()
 Gets the singleton instance.
 

Private Member Functions

 PureHwSystemMemoryImpl ()
 Sets members to default values.
 
 PureHwSystemMemoryImpl (const PureHwSystemMemoryImpl &)
 
PureHwSystemMemoryImploperator= (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

- Protected Member Functions inherited from PureHwBase
 PureHwBase ()
 Sets members to default values.
 
 PureHwBase (const PureHwBase &)
 
PureHwBaseoperator= (const PureHwBase &)
 
virtual ~PureHwBase ()
 

Constructor & Destructor Documentation

◆ PureHwSystemMemoryImpl() [1/2]

PureHwSystemMemoryImpl::PureHwSystemMemoryImpl ( )
private

Sets members to default values.

Definition at line 147 of file PurehwSystemMemory.cpp.

◆ PureHwSystemMemoryImpl() [2/2]

PureHwSystemMemoryImpl::PureHwSystemMemoryImpl ( const PureHwSystemMemoryImpl & )
private

Definition at line 153 of file PurehwSystemMemory.cpp.

◆ ~PureHwSystemMemoryImpl()

PureHwSystemMemoryImpl::~PureHwSystemMemoryImpl ( )
privatevirtual

Definition at line 165 of file PurehwSystemMemory.cpp.

Member Function Documentation

◆ DeinitializeBase()

void PureHwSystemMemoryImpl::DeinitializeBase ( )
privatevirtual

Does the real deinitialization.

Implements PureHwBase.

Definition at line 201 of file PurehwSystemMemory.cpp.

◆ get()

PureHwSystemMemoryImpl & PureHwSystemMemoryImpl::get ( )
static

Gets the singleton instance.

Definition at line 73 of file PurehwSystemMemory.cpp.

◆ getConsole()

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.

Returns
Console instance used by this class.

Definition at line 85 of file PurehwSystemMemory.cpp.

◆ getFreeSystemMemory()

TPureULong PureHwSystemMemoryImpl::getFreeSystemMemory ( )
virtual

Gets the amount of free physical memory.

Returns
The amount of free physical memory in Bytes.

Implements PureHwSystemMemory.

Definition at line 108 of file PurehwSystemMemory.cpp.

◆ getLoggerModuleName()

const char * PureHwSystemMemoryImpl::getLoggerModuleName ( )
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.

Returns
The logger module name of this class.

Definition at line 98 of file PurehwSystemMemory.cpp.

◆ getTotalSystemMemory()

TPureULong PureHwSystemMemoryImpl::getTotalSystemMemory ( ) const
virtual

Gets the total amount of physical memory.

Returns
The amount of total physical memory in Bytes.

Implements PureHwSystemMemory.

Definition at line 119 of file PurehwSystemMemory.cpp.

◆ initializeBase()

TPureBool PureHwSystemMemoryImpl::initializeBase ( )
privatevirtual

Does the real initializations.

Does the real initialization.

Implements PureHwBase.

Definition at line 184 of file PurehwSystemMemory.cpp.

◆ operator=()

PureHwSystemMemoryImpl & PureHwSystemMemoryImpl::operator= ( const PureHwSystemMemoryImpl & )
private

Definition at line 159 of file PurehwSystemMemory.cpp.

◆ PreInitialize()

void PureHwSystemMemoryImpl::PreInitialize ( )
privatevirtual

Preinitializes members.

Reimplemented from PureHwBase.

Definition at line 174 of file PurehwSystemMemory.cpp.

◆ WriteStats()

void PureHwSystemMemoryImpl::WriteStats ( )
virtual

Writes statistics to the console.

Implements PureHwSystemMemory.

Definition at line 128 of file PurehwSystemMemory.cpp.

Member Data Documentation

◆ hwMemoryInstance

PureHwSystemMemoryImpl PureHwSystemMemoryImpl::hwMemoryInstance
staticprivate

Definition at line 47 of file PurehwSystemMemory.cpp.

◆ ms

MEMORYSTATUS PureHwSystemMemoryImpl::ms
private

To query memory.

Definition at line 51 of file PurehwSystemMemory.cpp.


The documentation for this class was generated from the following file: