Public Member Functions

pl7::FrameStats Class Reference

#include <FrameStats.h>

List of all members.

Public Member Functions

 FrameStats (void)
 FrameStats (unsigned max_past_times)
 ~FrameStats (void)
 FrameStats (const FrameStats &rhs)
FrameStatsoperator= (const FrameStats &rhs)
const float * GetPastTimes () const
unsigned GetPastTimesCount () const
float GetCurrentTime () const
unsigned GetCurrentNumber () const
void Update (float current_time)

Constructor & Destructor Documentation

pl7::FrameStats::FrameStats ( void   ) 

Default constructor.

pl7::FrameStats::FrameStats ( unsigned  max_past_times  )  [explicit]

Explicit constructor.

pl7::FrameStats::~FrameStats ( void   ) 

Destructor.

pl7::FrameStats::FrameStats ( const FrameStats rhs  ) 

Copy constructor.


Member Function Documentation

unsigned pl7::FrameStats::GetCurrentNumber (  )  const [inline]

Returns the current frame's number.

float pl7::FrameStats::GetCurrentTime (  )  const [inline]

Returns the current frame time.

const float* pl7::FrameStats::GetPastTimes (  )  const [inline]

Returns the array of past times for smoothing purposes.

unsigned pl7::FrameStats::GetPastTimesCount (  )  const [inline]

Returns the current number of stored past times for smoothing purposes.

FrameStats & pl7::FrameStats::operator= ( const FrameStats rhs  ) 

Copy assignment operator.

void pl7::FrameStats::Update ( float  current_time  ) 

Updates the current frame time and the stored past times.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines