Tango Core Classes Reference  9.2.5
Tango::AttrHistoryStack< T > Class Template Reference

This class is a used to pass an attribute value history when the user directly fills the attribute polling buffer. More...

#include "tango.h"

Public Member Functions

void clear ()
 Clear the stack.
 
vector< TimedAttrData< T > > & get_data ()
 Get stack data. More...
 
size_t length ()
 Get stack depth. More...
 
void length (long nb)
 Reserve memory for stack elements. More...
 
void push (TimedAttrData< T > const &elt)
 Store a new element in the stack. More...
 

Detailed Description

template<typename T>
class Tango::AttrHistoryStack< T >

This class is a used to pass an attribute value history when the user directly fills the attribute polling buffer.

Each element in this stack will be used to store one element of the attribute polling buffer

Author
taurel
Revision
27410

Member Function Documentation

template<typename T>
vector<TimedAttrData<T> >& Tango::AttrHistoryStack< T >::get_data ( )

Get stack data.

Returns
The stack itself
template<typename T>
size_t Tango::AttrHistoryStack< T >::length ( )
inline

Get stack depth.

Returns
The stack depth
template<typename T>
void Tango::AttrHistoryStack< T >::length ( long  nb)
inline

Reserve memory for stack elements.

Parameters
nbThe stack element number
template<typename T>
void Tango::AttrHistoryStack< T >::push ( TimedAttrData< T > const &  elt)

Store a new element in the stack.

This method stores a new element in the stack

Parameters
eltThe new element

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