Tango Core Classes Reference  9.3.4
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$ $Revision$

Member Function Documentation

◆ get_data()

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

Get stack data.

Returns
The stack itself

◆ length() [1/2]

template<typename T >
size_t Tango::AttrHistoryStack< T >::length ( )
inline

Get stack depth.

Returns
The stack depth

◆ length() [2/2]

template<typename T >
void Tango::AttrHistoryStack< T >::length ( long  nb)
inline

Reserve memory for stack elements.

Parameters
nbThe stack element number

◆ push()

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: