CTR Pia  4.11.3
Game Communication Engine
nn::pia::reckoning::ReckoningCloneElementBase::SampleAccessor< Sample > Class Template Reference

Contains member functions used to access values in the sample buffer. More...

Public Member Functions

clone::ClockValue GetClock (int index) const
 Gets the clock for when the sample was set. More...
 
int GetNum () const
 Gets the number of saved samples.
 
const Sample & GetSample (int index) const
 Gets a sample. More...
 

Detailed Description

template<typename Sample>
class nn::pia::reckoning::ReckoningCloneElementBase::SampleAccessor< Sample >

Contains member functions used to access values in the sample buffer.

Template Parameters
SampleSpecifies the sample type.

Member Function Documentation

template<typename Sample>
clone::ClockValue nn::pia::reckoning::ReckoningCloneElementBase::SampleAccessor< Sample >::GetClock ( int  index) const
inline

Gets the clock for when the sample was set.

Parameters
[in]indexSpecifies the index of the sample. A smaller value indicates a later sample.
Returns
Returns the clock for when the sample was set.
template<typename Sample>
const Sample& nn::pia::reckoning::ReckoningCloneElementBase::SampleAccessor< Sample >::GetSample ( int  index) const
inline

Gets a sample.

Parameters
[in]indexSpecifies the index of the sample. A smaller value indicates a later sample.
Returns
Returns the sample.