ParCompMark::GPU Class Reference

#include <PCMGPU.h>

Inheritance diagram for ParCompMark::GPU:

Inheritance graph
[legend]
Collaboration diagram for ParCompMark::GPU:

Collaboration graph
[legend]
List of all members.

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

Type for pointer on this class.

Reimplemented from ParCompMark::OutputNode.

Definition at line 80 of file PCMGPU.h.


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]

The destructor.

This class has virtual destructor.

Definition at line 59 of file PCMGPU.cpp.


Member Function Documentation

const Real & ParCompMark::GPU::getLoadPerSecond (  )  const [inline]

Getter of mLoadPerSecond.

Returns value of mLoadPerSecond.

Returns:
The value of mLoadPerSecond

Definition at line 276 of file PCMGPU.h.

const u32 & ParCompMark::GPU::getMemorySize (  )  const [inline]

Getter of mMemorySize.

Returns value of mMemorySize.

Returns:
The value of mMemorySize

Definition at line 269 of file PCMGPU.h.

const std::string & ParCompMark::GPU::getModel (  )  const [inline]

Getter of mModel.

Returns value of mModel.

Returns:
The value of mModel

Definition at line 262 of file PCMGPU.h.

const std::string & ParCompMark::GPU::getVendor (  )  const [inline]

Getter of mVendor.

Returns value of mVendor.

Returns:
The value of mVendor

Definition at line 255 of file PCMGPU.h.

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

Triangles/second or texels/second.

GPU load=rendering capacity can be only get per second.

Remarks:
This is own attribute of this class.

Definition at line 118 of file PCMGPU.h.

Referenced by GPU().

GPU memory size.

Remarks:
This is own attribute of this class.

Definition at line 110 of file PCMGPU.h.

Referenced by GPU().

std::string ParCompMark::GPU::mModel [protected]

GPU model name.

Remarks:
This is own attribute of this class.

Definition at line 103 of file PCMGPU.h.

Referenced by GPU().

std::string ParCompMark::GPU::mVendor [protected]

Name of the vendor of the GPU.

Remarks:
This is own attribute of this class.

Definition at line 96 of file PCMGPU.h.

Referenced by GPU().


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