Tango Core Classes Reference  9.3.3
Tango::CmdHistoryStack< T > Class Template Reference

This class is a used to pass a command result history when the user directly fills the command polling buffer. More...

#include "tango.h"

Public Member Functions

void clear ()
 Clear the stack.
 
vector< TimedCmdData< 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 (Tango::TimedCmdData< T > const &elt)
 Store a new element in the stack. More...
 

Detailed Description

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

This class is a used to pass a command result history when the user directly fills the command polling buffer.

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

$Author$ $Revision$

Member Function Documentation

◆ get_data()

template<typename T>
vector<TimedCmdData<T> >& Tango::CmdHistoryStack< T >::get_data ( )

Get stack data.

Returns
The stack itself

◆ length() [1/2]

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

Get stack depth.

Returns
The stack depth

◆ length() [2/2]

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

Reserve memory for stack elements.

Parameters
nbThe stack element number

◆ push()

template<typename T>
void Tango::CmdHistoryStack< T >::push ( Tango::TimedCmdData< 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: