Equalizer  2.0.0
Parallel Rendering Framework
eq::StatisticSampler< Owner > Class Template Reference

Utility to sample an statistics event. More...

#include <statisticSampler.h>

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

Public Member Functions

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

Public Attributes

Statistic statistic
 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 Statistic, which is initialized from the owner's data in the ctor. Subclasses implement the constructor and destructor to sample the times and process the gathered statistics.

Definition at line 34 of file statisticSampler.h.

Constructor & Destructor Documentation

template<typename Owner>
eq::StatisticSampler< Owner >::StatisticSampler ( const Statistic::Type  type,
Owner *  owner,
const uint32_t  frameNumber = LB_UNDEFINED_UINT32 

Construct a new statistics sampler.

typeThe statistics type.
ownerThe originator of the statistics event.
frameNumberThe current frame.

Definition at line 45 of file statisticSampler.h.

template<typename Owner>
virtual eq::StatisticSampler< Owner >::~StatisticSampler ( )

Destruct and finish statistics sampling.


Definition at line 63 of file statisticSampler.h.

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