GLStats  0.3.3
GLStats::Data Class Reference

The data storage. More...

#include <data.h>

+ Collaboration diagram for GLStats::Data:

Public Member Functions

 Data ()
 Construct a new data storage. More...
 
 Data (const Data &from)
 Construct a copy of the data storage. More...
 
virtual ~Data ()
 Destruct this data storage. More...
 
void setEntity (const uint32_t identifier, const Entity &entity)
 Set an entity description. More...
 
const EntitygetEntity (const uint32_t identifier) const
 
void setThread (const uint32_t identifier, const Thread &thread)
 Set a thread description. More...
 
const ThreadgetThread (const uint32_t identifier) const
 
void setType (const uint32_t identifier, const Type &type)
 Set an type description. More...
 
const TypegetType (const uint32_t identifier) const
 
const TypeMap & getTypes () const
 
void addItem (const Item &item)
 Add a statistics item. More...
 
const Items & getItems () const
 
uint128_t computeMinMax () const
 
void setText (const std::string &text)
 Set additional text at the bottom. More...
 
const std::string & getText () const
 
void obsolete (const uint32_t nFrames)
 Obsolete all items older than the given number of frames. More...
 
void clear ()
 Clear all data. More...
 

Detailed Description

The data storage.

Definition at line 32 of file data.h.

Constructor & Destructor Documentation

GLStats::Data::Data ( )

Construct a new data storage.

GLStats::Data::Data ( const Data from)

Construct a copy of the data storage.

virtual GLStats::Data::~Data ( )
virtual

Destruct this data storage.

Member Function Documentation

void GLStats::Data::addItem ( const Item item)

Add a statistics item.

void GLStats::Data::clear ( )

Clear all data.

uint128_t GLStats::Data::computeMinMax ( ) const
Returns
the min and max time of the dataset.
const Entity& GLStats::Data::getEntity ( const uint32_t  identifier) const
Returns
the entity description for the given id.
const Items& GLStats::Data::getItems ( ) const
Returns
the vector of items for the frame of the given age.
const std::string& GLStats::Data::getText ( ) const
Returns
the additional text.
const Thread& GLStats::Data::getThread ( const uint32_t  identifier) const
Returns
the thread description for the given id.
const Type& GLStats::Data::getType ( const uint32_t  identifier) const
Returns
the type description for the given id.
const TypeMap& GLStats::Data::getTypes ( ) const
Returns
the map of all types.
void GLStats::Data::obsolete ( const uint32_t  nFrames)

Obsolete all items older than the given number of frames.

void GLStats::Data::setEntity ( const uint32_t  identifier,
const Entity entity 
)

Set an entity description.

void GLStats::Data::setText ( const std::string &  text)

Set additional text at the bottom.

void GLStats::Data::setThread ( const uint32_t  identifier,
const Thread thread 
)

Set a thread description.

void GLStats::Data::setType ( const uint32_t  identifier,
const Type type 
)

Set an type description.


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