LLCPUInfo Class Reference

#include <llsys.h>

Collaboration diagram for LLCPUInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLCPUInfo ()
void stream (std::ostream &s) const
std::string getCPUString () const
bool hasAltivec () const
bool hasSSE () const
bool hasSSE2 () const
S32 getMhz () const
const std::string & getFamily () const

Private Attributes

bool mHasSSE
bool mHasSSE2
bool mHasAltivec
S32 mCPUMhz
std::string mFamily
std::string mCPUString

Detailed Description

Definition at line 70 of file llsys.h.


Constructor & Destructor Documentation

LLCPUInfo::LLCPUInfo (  ) 

Definition at line 349 of file llsys.cpp.

References ProcessorInfo::_Ext, ProcessorExtensions::Altivec_Extensions, LLStringBase< char >::convertToF64(), LLFile::fopen(), CProcessor::GetCPUFrequency(), CProcessor::GetCPUInfo(), MAX_STRING, mCPUMhz, mCPUString, mFamily, mHasAltivec, mHasSSE, mHasSSE2, NULL, S32, ProcessorExtensions::SSE2_StreamingSIMD2_Extensions, ProcessorExtensions::SSE_StreamingSIMD_Extensions, CProcessor::strCPUName, ProcessorInfo::strFamily, and LLStringBase< char >::toLower().


Member Function Documentation

std::string LLCPUInfo::getCPUString (  )  const

Definition at line 439 of file llsys.cpp.

References mCPUString.

Referenced by LLFloaterAbout::LLFloaterAbout(), send_stats(), and write_system_info().

const std::string& LLCPUInfo::getFamily (  )  const [inline]

Definition at line 84 of file llsys.h.

References mFamily.

Referenced by LLFloaterReporter::gatherReport().

S32 LLCPUInfo::getMhz (  )  const

Definition at line 434 of file llsys.cpp.

References mCPUMhz.

Referenced by LLFeatureManager::initCPUFeatureMasks().

bool LLCPUInfo::hasAltivec (  )  const

Definition at line 419 of file llsys.cpp.

References mHasAltivec.

Referenced by main(), and saved_settings_to_globals().

bool LLCPUInfo::hasSSE (  )  const

Definition at line 424 of file llsys.cpp.

References mHasSSE.

Referenced by saved_settings_to_globals().

bool LLCPUInfo::hasSSE2 (  )  const

Definition at line 429 of file llsys.cpp.

References mHasSSE2.

Referenced by saved_settings_to_globals().

void LLCPUInfo::stream ( std::ostream &  s  )  const

Definition at line 444 of file llsys.cpp.

References CPUINFO_BUFFER_SIZE, CProcessor::CPUInfoToText(), LLFile::fopen(), MAX_STRING, mCPUMhz, mCPUString, mHasAltivec, mHasSSE, and mHasSSE2.

Referenced by operator<<().


Member Data Documentation

S32 LLCPUInfo::mCPUMhz [private]

Definition at line 90 of file llsys.h.

Referenced by getMhz(), LLCPUInfo(), and stream().

std::string LLCPUInfo::mCPUString [private]

Definition at line 92 of file llsys.h.

Referenced by getCPUString(), LLCPUInfo(), and stream().

std::string LLCPUInfo::mFamily [private]

Definition at line 91 of file llsys.h.

Referenced by getFamily(), and LLCPUInfo().

bool LLCPUInfo::mHasAltivec [private]

Definition at line 89 of file llsys.h.

Referenced by hasAltivec(), LLCPUInfo(), and stream().

bool LLCPUInfo::mHasSSE [private]

Definition at line 87 of file llsys.h.

Referenced by hasSSE(), LLCPUInfo(), and stream().

bool LLCPUInfo::mHasSSE2 [private]

Definition at line 88 of file llsys.h.

Referenced by hasSSE2(), LLCPUInfo(), and stream().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:13 2010 for Second Life Viewer by  doxygen 1.4.7