Equalizer  1.2.1
Public Member Functions | Public Attributes | Protected Attributes
eq::StatisticSampler< Owner > Class Template Reference

Utility to sample an statistics event. More...

#include <statisticSampler.h>

+ Collaboration diagram for eq::StatisticSampler< Owner >:

List of all members.

Public Member Functions

 StatisticSampler (const Statistic::Type type, Owner *owner, const uint32_t frameNumber=EQ_UNDEFINED_UINT32)
 Construct a new statistics sampler.
virtual ~StatisticSampler ()
 Destruct and finish statistics sampling.

Public Attributes

ConfigEvent event
 The statistics event.

Protected Attributes

Owner *const _owner

Detailed Description

template<typename Owner>
class eq::StatisticSampler< Owner >

Utility to sample an statistics event.

Holds a ConfigEvent, which is initialized from the owner's data during initialization. Subclasses implement the constructor and destructor to sample the times and process the gathered statistics.

Definition at line 32 of file statisticSampler.h.


Constructor & Destructor Documentation

template<typename Owner>
eq::StatisticSampler< Owner >::StatisticSampler ( const Statistic::Type  type,
Owner *  owner,
const uint32_t  frameNumber = EQ_UNDEFINED_UINT32 
) [inline]

Construct a new statistics sampler.

Parameters:
typeThe statistics type.
ownerThe originator of the statistics event.
frameNumberThe current frame.
Version:
1.0

Definition at line 43 of file statisticSampler.h.

template<typename Owner>
virtual eq::StatisticSampler< Owner >::~StatisticSampler ( ) [inline, virtual]

Destruct and finish statistics sampling.

Version:
1.0

Definition at line 64 of file statisticSampler.h.


The documentation for this class was generated from the following file:
Generated on Fri Jun 8 2012 15:44:35 for Equalizer 1.2.1 by  doxygen 1.8.0