CPU device management class More...
#include <Inventor/devices/SoCpuDevice.h>
Public Types | |
enum | ProcessorArchitecture { X86_64, X86_32, IA64, PPC_32, PPC_64, UNKNOWN } |
Public Member Functions | |
virtual SbString | getDeviceName () const |
virtual unsigned long long | getTotalMemory () const |
virtual unsigned long long | getAvailableMemory () const |
virtual SbString | getDriverVersion () const |
ProcessorArchitecture | getArchitecture () const |
bool | isActive () const |
bool | hasMMX () const |
bool | hasSSE () const |
int | getSSELevel () const |
virtual unsigned int | getLogicalUnits () const |
unsigned int | getCacheSize (int cacheLevel) const |
Static Public Member Functions | |
static SoCpuDevice * | getDevice (int index=0) |
static unsigned int | getDevicesCount () |
static SoCpuDevice * | findFirstAvailableDevice () |
static void | initClass () |
static void | exitClass () |
Friends | |
class | SoDevice |
std::ostream & | operator<< (std::ostream &os, const SoCpuDevice &dev) |
This class provides functions to manage or to get data for each CPU device available in the system.
Please see SoDevice for general information about the device classes.
SoCpuContext, SoCpuBufferObject, SoDevice, SoCudaDevice, SoGLDevice, SoOpenCLDevice
static void SoCpuDevice::exitClass | ( | ) | [static] |
This function frees the allocated memory.
Reimplemented from SoDevice.
static SoCpuDevice* SoCpuDevice::findFirstAvailableDevice | ( | ) | [static] |
Returns the first available device found in the system.
SoCpuDevice::ProcessorArchitecture SoCpuDevice::getArchitecture | ( | ) | const [inline] |
Returns the architecture of the processor.
virtual unsigned long long SoCpuDevice::getAvailableMemory | ( | ) | const [virtual] |
Returns the current available memory of this device in bytes.
Implements SoDevice.
unsigned int SoCpuDevice::getCacheSize | ( | int | cacheLevel | ) | const |
Returns the size of the cache on this device in bytes.
Note: On Microsoft Windows platforms this function only returns a valid number on Windows XP SP3 and newer.
cacheLevel | The cache level can be 1, 2, or 3. |
static SoCpuDevice* SoCpuDevice::getDevice | ( | int | index = 0 |
) | [static] |
virtual SbString SoCpuDevice::getDeviceName | ( | ) | const [virtual] |
static unsigned int SoCpuDevice::getDevicesCount | ( | ) | [static] |
Returns the total number of cores available in the sytem.
Reimplemented from SoDevice.
virtual SbString SoCpuDevice::getDriverVersion | ( | ) | const [inline, virtual] |
virtual unsigned int SoCpuDevice::getLogicalUnits | ( | ) | const [virtual] |
Returns the number of cores available on this device.
Note: On Microsoft Windows platforms this function only returns a valid number on Windows XP SP3 and newer.
Implements SoDevice.
int SoCpuDevice::getSSELevel | ( | ) | const [inline] |
Returns the SSE instruction level available on this device.
unsigned long long SoCpuDevice::getTotalMemory | ( | ) | const [inline, virtual] |
Returns the total memory of this device in bytes.
Implements SoDevice.
bool SoCpuDevice::hasMMX | ( | ) | const [inline] |
Returns true if MMX instructions are supported on this device.
bool SoCpuDevice::hasSSE | ( | ) | const [inline] |
Returns if SSE instructions are supported on this device.
static void SoCpuDevice::initClass | ( | ) | [static] |
This function detects the CPU available in the system.
bool SoCpuDevice::isActive | ( | ) | const [inline] |
Returns true if the CPU is active in the system.
std::ostream& operator<< | ( | std::ostream & | os, | |
const SoCpuDevice & | dev | |||
) | [friend] |
Prints information about the device.
friend class SoDevice [friend] |