system_info Class Reference
[System Library]

#include <winstl/system/system_info.hpp>

List of all members.


Detailed Description

Provides system information, which provides information regarding the host system, such as number of processors and page size.

This class wraps the GetSystemInfo() API function. Since the information that this function provides is constant for any particular active system for its lifetime, the function is called only once, as implemented via the get_systeminfo_() method.

Public Types

typedef system_info class_type
 This type.

Static Public Member Functions

static ws_uint32_t number_of_processors ()
 Returns the number of processes on the host machine.
static size_t page_size ()
 Returns the page size of the host machine.
static size_t allocation_granularity ()
 Returns the allocation granularity of the host machine.
static SYSTEM_INFO const & get_systeminfo ()
 Provides a non-mutable (const) reference to the SYSTEM_INFO instance.


Member Typedef Documentation

This type.


Member Function Documentation

static ws_uint32_t number_of_processors (  )  [inline, static]

Returns the number of processes on the host machine.

static size_t page_size (  )  [inline, static]

Returns the page size of the host machine.

static size_t allocation_granularity (  )  [inline, static]

Returns the allocation granularity of the host machine.

static SYSTEM_INFO const& get_systeminfo (  )  [inline, static]

Provides a non-mutable (const) reference to the SYSTEM_INFO instance.


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

Generated on Thu Jun 10 08:59:38 2010 for STLSoft by  doxygen 1.5.6