GLStats  0.1.0
Public Member Functions | List of all members
GLStats::Data Class Reference

The data storage. More...

#include <data.h>

Public Member Functions

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

Detailed Description

The data storage.

Definition at line 29 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: