Queries system software and hardware capabilities of the computer. Values are cached so there is low overhead in calling these functions more than once.
Enums
Static Public Member Functions
-
boolhasSse2 ()
Returns whether the system supports the SSE2 instruction set.
-
boolhasSse3 ()
Returns whether the system supports the SSE3 instruction set.
-
boolhasSse4_1 ()
Returns whether the system supports the SSE4.1 instruction set. Inaccurate on MSW x64.
-
boolhasSse4_2 ()
Returns whether the system supports the SSE4.2 instruction set. Inaccurate on MSW x64.
-
boolhasX86_64 ()
Returns whether the system supports the x86-64 instruction set. Inaccurate on MSW x64.
-
boolhasArm ()
Returns whether the system supports the ARM instruction set.
-
intgetNumCpus ()
Returns the number of physical processors in the system. A single processor dual core machine returns 1.
-
intgetNumCores ()
Returns the number of cores (or logical processors) in the system. A single processor dual core machine returns 2. Inaccurate on MSW x64 and WinRT, where it returns the number of processors instead.
-
int
-
int
-
intgetOsBugFixVersion ()
Returns the bugfix version of the operating system. For version
10.5.8
, this is8
. For Windows this corresponds to the major version of the service pack. SoService
Pack 2 returns2
-
boolhasMultiTouch ()
Returns whether the system supports MultiTouch. Also returns true under Windows 7 in the presence of single touch support. Always returns true on Mac OS X Snow Leopard.
-
int32_tgetMaxMultiTouchPoints ()
Returns the maximum number of simultaneous touches supported by the system's MultiTouch implementation. Only truly accurate on Windows 7.
-
std::stringdemangleTypeName (const char *mangledName)
Returns the result of.
as a platform-specific, human readable string.typeid( someType ).name()
-
std::vector< NetworkAdapter >getNetworkAdapters ()
Returns a list of the network adapters associated with the machine. Not cached.
-
std::stringgetIpAddress ()
Returns a best guess at the machine's "IP address". Not cached. Computers often have multiple IP addresses, but this will attempt to select the "best".
- See Also
getNetworkAdapaters().
-
std::stringgetSubnetMask ()
Returns the subnet mask of the "best" network adapter, as found by getIpAddress() . This can be used to calculate the proper broadcast IP address for a network. Not cached.
- See Also
getNetworkAdapaters().
- See Also