DUNE: Uniform Navigational Environment  2016.09.0
Sensors::Edgetech2205::EstimatedStateList Class Reference

Detailed Description

This class maintains a list of estimated state messages and allows searching for the message that is closest to a given timestamp.

Public Member Functions

 EstimatedStateList (void)
 
 ~EstimatedStateList (void)
 
void clear (void)
 
void push_back (const IMC::EstimatedState &estate)
 
bool empty (void) const
 
const IMC::EstimatedState * find (int64_t time, int64_t &delta)
 

Constructor & Destructor Documentation

Sensors::Edgetech2205::EstimatedStateList::EstimatedStateList ( void  )
inline

Constructor.

Sensors::Edgetech2205::EstimatedStateList::~EstimatedStateList ( void  )
inline

Destructor.

References clear().

Member Function Documentation

void Sensors::Edgetech2205::EstimatedStateList::clear ( void  )
inline

Clear list contents.

Referenced by Sensors::Edgetech2205::SubsystemData::clear(), and ~EstimatedStateList().

bool Sensors::Edgetech2205::EstimatedStateList::empty ( void  ) const
inline

Test if list is empty.

Returns
true if list is empty, false otherwise.
const IMC::EstimatedState* Sensors::Edgetech2205::EstimatedStateList::find ( int64_t  time,
int64_t &  delta 
)
inline

Find closest estimated state message to a given time.

Parameters
[in]timetime in millisecond since Unix Epoch.
[in]deltadifference between requested time and message time.
Returns
estimate state message or NULL if none is found.

References Sensors::Edgetech2205::EstimatedStateEntry::getTime().

Referenced by Sensors::Edgetech2205::Task::updateSubsystemData().

void Sensors::Edgetech2205::EstimatedStateList::push_back ( const IMC::EstimatedState &  estate)
inline

Add estimated state message to end of the list.

Parameters
[in]estateestimated state message.

Referenced by Sensors::Edgetech2205::Task::consume().

Collaboration diagram for Sensors::Edgetech2205::EstimatedStateList:
Collaboration graph