ML Reference
ml::MemoryInfo Class Reference

Singleton class that provides hardware specific information. More...

#include <mlMemoryInfo.h>

List of all members.

Public Member Functions

unsigned int getTotalPhysicalMemoryInMB () const
 Returns the total amount of physical memory in MB.
Deprecated
unsigned int amountOfPhysicalMemoryInMB () const

Static Public Member Functions

static MemoryInfogetInstance ()
 Returns the single existing object of this class.

Protected Member Functions

 MemoryInfo ()
 This constructor must not be called from anywhere else but the getInstance() method (which does call this function if the static pointer to the valid object is not set yet).

Detailed Description

Singleton class that provides hardware specific information.

To get a pointer to a valid object of this type use the getInstance() method.

Definition at line 22 of file mlMemoryInfo.h.


Constructor & Destructor Documentation

ml::MemoryInfo::MemoryInfo ( ) [protected]

This constructor must not be called from anywhere else but the getInstance() method (which does call this function if the static pointer to the valid object is not set yet).


Member Function Documentation

unsigned int ml::MemoryInfo::amountOfPhysicalMemoryInMB ( ) const [inline]
Deprecated:
Use getTotalPhysicalMemoryInMB() instead.

Definition at line 61 of file mlMemoryInfo.h.

static MemoryInfo& ml::MemoryInfo::getInstance ( ) [static]

Returns the single existing object of this class.

The concept of this class is based on the Singleton design pattern which ensures there is only one object of this class. (NOT THREADSAFE!)

unsigned int ml::MemoryInfo::getTotalPhysicalMemoryInMB ( ) const [inline]

Returns the total amount of physical memory in MB.

Definition at line 44 of file mlMemoryInfo.h.


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