Kea  1.5.0
isc::agent::stack< T, S > Class Template Reference

A stack with random access from its top. More...

#include <agent_parser.h>

Public Types

typedef S::const_reverse_iterator const_iterator
 
typedef S::reverse_iterator iterator
 
typedef S::size_type size_type
 

Public Member Functions

 stack (size_type n=200)
 
const_iterator begin () const
 
void clear ()
 
const_iterator end () const
 
T & operator[] (int i)
 Random access. More...
 
const T & operator[] (int i) const
 Random access. More...
 
T & operator[] (size_type i)
 Random access. More...
 
const T & operator[] (size_type i) const
 Random access. More...
 
void pop (int n=1)
 
void push (YY_MOVE_REF(T) t)
 Steal the contents of t. More...
 
size_type size () const
 

Detailed Description

template<typename T, typename S = std::vector<T>>
class isc::agent::stack< T, S >

A stack with random access from its top.

Definition at line 170 of file agent_parser.h.

Member Typedef Documentation

◆ const_iterator

template<typename T , typename S = std::vector<T>>
typedef S::const_reverse_iterator isc::agent::stack< T, S >::const_iterator

Definition at line 175 of file agent_parser.h.

◆ iterator

template<typename T , typename S = std::vector<T>>
typedef S::reverse_iterator isc::agent::stack< T, S >::iterator

Definition at line 174 of file agent_parser.h.

◆ size_type

template<typename T , typename S = std::vector<T>>
typedef S::size_type isc::agent::stack< T, S >::size_type

Definition at line 176 of file agent_parser.h.

Constructor & Destructor Documentation

◆ stack()

template<typename T , typename S = std::vector<T>>
isc::agent::stack< T, S >::stack ( size_type  n = 200)
inline

Definition at line 178 of file agent_parser.h.

Member Function Documentation

◆ begin()

template<typename T , typename S = std::vector<T>>
const_iterator isc::agent::stack< T, S >::begin ( ) const
inline

Definition at line 248 of file agent_parser.h.

◆ clear()

template<typename T , typename S = std::vector<T>>
void isc::agent::stack< T, S >::clear ( )
inline

Definition at line 236 of file agent_parser.h.

Referenced by isc::agent::AgentParser::parse().

◆ end()

template<typename T , typename S = std::vector<T>>
const_iterator isc::agent::stack< T, S >::end ( ) const
inline

Definition at line 254 of file agent_parser.h.

◆ operator[]() [1/4]

template<typename T , typename S = std::vector<T>>
T& isc::agent::stack< T, S >::operator[] ( int  i)
inline

Random access.

Index 0 returns the topmost element.

Definition at line 195 of file agent_parser.h.

◆ operator[]() [2/4]

template<typename T , typename S = std::vector<T>>
const T& isc::agent::stack< T, S >::operator[] ( int  i) const
inline

Random access.

Index 0 returns the topmost element.

Definition at line 213 of file agent_parser.h.

◆ operator[]() [3/4]

template<typename T , typename S = std::vector<T>>
T& isc::agent::stack< T, S >::operator[] ( size_type  i)
inline

Random access.

Index 0 returns the topmost element.

Definition at line 186 of file agent_parser.h.

◆ operator[]() [4/4]

template<typename T , typename S = std::vector<T>>
const T& isc::agent::stack< T, S >::operator[] ( size_type  i) const
inline

Random access.

Index 0 returns the topmost element.

Definition at line 204 of file agent_parser.h.

◆ pop()

template<typename T , typename S = std::vector<T>>
void isc::agent::stack< T, S >::pop ( int  n = 1)
inline

Definition at line 229 of file agent_parser.h.

◆ push()

template<typename T , typename S = std::vector<T>>
void isc::agent::stack< T, S >::push ( YY_MOVE_REF(T)  t)
inline

Steal the contents of t.

Close to move-semantics.

Definition at line 222 of file agent_parser.h.

◆ size()

template<typename T , typename S = std::vector<T>>
size_type isc::agent::stack< T, S >::size ( ) const
inline

Definition at line 242 of file agent_parser.h.

Referenced by isc::agent::AgentParser::parse().


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