ParCompMark::GPU Class Reference
#include <PCMGPU.h>
Inheritance diagram for ParCompMark::GPU:
Detailed Description
Class contain GPU information.
Definition at line 62 of file PCMGPU.h.
Public Types | |
typedef ParCompMark::Pointer< GPU, Mutex > | Pointer |
Type for pointer on this class. | |
Public Member Functions | |
Constructors & destructor | |
GPU (const std::string &name, const OutputNode::NodeType &type) | |
Creates GPU node. | |
virtual | ~GPU () |
The destructor. | |
Getters & setters | |
const std::string & | getVendor () const |
Getter of mVendor. | |
const std::string & | getModel () const |
Getter of mModel. | |
const u32 & | getMemorySize () const |
Getter of mMemorySize. | |
const Real & | getLoadPerSecond () const |
Getter of mLoadPerSecond. | |
Methods | |
virtual void | refreshData () |
Refresh GPU datas. | |
Static Public Member Functions | |
Class methods | |
static GPU::Pointer | parseXML (TiXmlElement *&tiGPU) |
Creates a GPU class instance based on xml. | |
Protected Attributes | |
Variables | |
std::string | mVendor |
Name of the vendor of the GPU. | |
std::string | mModel |
GPU model name. | |
u32 | mMemorySize |
GPU memory size. | |
Real | mLoadPerSecond |
Triangles/second or texels/second. |
Member Typedef Documentation
typedef ParCompMark::Pointer< GPU, Mutex > ParCompMark::GPU::Pointer |
Constructor & Destructor Documentation
ParCompMark::GPU::GPU | ( | const std::string & | name, | |
const OutputNode::NodeType & | type | |||
) |
Creates GPU node.
- Parameters:
-
[in] name Name of the node. [in] type Type of the node.
Definition at line 38 of file PCMGPU.cpp.
References mLoadPerSecond, mMemorySize, mModel, and mVendor.
Referenced by parseXML().
ParCompMark::GPU::~GPU | ( | ) | [virtual] |
Member Function Documentation
const Real & ParCompMark::GPU::getLoadPerSecond | ( | ) | const [inline] |
const u32 & ParCompMark::GPU::getMemorySize | ( | ) | const [inline] |
const std::string & ParCompMark::GPU::getModel | ( | ) | const [inline] |
const std::string & ParCompMark::GPU::getVendor | ( | ) | const [inline] |
GPU::Pointer ParCompMark::GPU::parseXML | ( | TiXmlElement *& | tiGPU | ) | [static] |
Creates a GPU class instance based on xml.
- Parameters:
-
[out] tiGPU Description of GPU.
- Returns:
- Returns the pointer of the GPU class instance created based on the xml
Definition at line 69 of file PCMGPU.cpp.
References ParCompMark::OutputNode::DEFINITION, GPU(), ParCompMark::OutputNode::INFORMATION, ParCompMark::OutputNode::REFERENCE, and ParCompMark::OutputNode::STATISTICS.
Referenced by ParCompMark::HostInfo::parseXML().
Here is the call graph for this function:
void ParCompMark::GPU::refreshData | ( | ) | [virtual] |
Refresh GPU datas.
Reimplemented from ParCompMark::OutputNode.
Definition at line 120 of file PCMGPU.cpp.
References ParCompMark::OutputNode::createChildNode(), ParCompMark::OutputNode::INFORMATION, and ParCompMark::StringConverter::toString().
Here is the call graph for this function:
Member Data Documentation
Real ParCompMark::GPU::mLoadPerSecond [protected] |
u32 ParCompMark::GPU::mMemorySize [protected] |
std::string ParCompMark::GPU::mModel [protected] |
std::string ParCompMark::GPU::mVendor [protected] |
The documentation for this class was generated from the following files: