STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

system_info Class Reference
[System Library (WinSTL)]

Provides system information. More...

#include <winstl_system_info.h>

List of all members.

Static Public Methods

ws_uint32_t number_of_processors ()
 Returns the number of processes on the host machine.

ws_size_t page_size ()
 Returns the page size of the host machine.

ws_size_t allocation_granularity ()
 Returns the allocation granularity of the host machine.

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


Detailed Description

Provides system information.

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.


Member Function Documentation

ws_size_t allocation_granularity   [inline, static]
 

Returns the allocation granularity of the host machine.

const SYSTEM_INFO& get_systeminfo   [inline, static]
 

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

ws_uint32_t number_of_processors   [inline, static]
 

Returns the number of processes on the host machine.

ws_size_t page_size   [inline, static]
 

Returns the page size of the host machine.


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

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004