ARB
Public Types | Public Member Functions | List of all members
AP_STACK< ELEM > Struct Template Reference

#include <AP_buffer.hxx>

Inheritance diagram for AP_STACK< ELEM >:
Inheritance graph
[legend]
Collaboration diagram for AP_STACK< ELEM >:
Collaboration graph
[legend]

Public Types

typedef arb_forward_list< ELEM * > BASE
 
typedef BASE::iterator iterator
 
typedef BASE::const_iterator const_iterator
 

Public Member Functions

void push (ELEM *element)
 
void shift (ELEM *element)
 
ELEM * pop ()
 
ELEM * top ()
 
const ELEM * top () const
 
size_t count_elements () const
 
bool empty () const
 

Detailed Description

template<typename ELEM>
struct AP_STACK< ELEM >

Definition at line 41 of file AP_buffer.hxx.

Member Typedef Documentation

template<typename ELEM>
typedef arb_forward_list<ELEM*> AP_STACK< ELEM >::BASE

Definition at line 42 of file AP_buffer.hxx.

template<typename ELEM>
typedef BASE::iterator AP_STACK< ELEM >::iterator

Definition at line 43 of file AP_buffer.hxx.

template<typename ELEM>
typedef BASE::const_iterator AP_STACK< ELEM >::const_iterator

Definition at line 44 of file AP_buffer.hxx.

Member Function Documentation

template<typename ELEM>
void AP_STACK< ELEM >::push ( ELEM *  element)
inline

add 'element' to top of stack

Definition at line 46 of file AP_buffer.hxx.

Referenced by AP_main::accept(), and AP_STACK< AP_tree_nlen >::shift().

template<typename ELEM>
void AP_STACK< ELEM >::shift ( ELEM *  element)
inline

add 'element' to bottom of stack

Definition at line 50 of file AP_buffer.hxx.

template<typename ELEM>
ELEM* AP_STACK< ELEM >::pop ( )
inline

Definition at line 73 of file AP_buffer.hxx.

Referenced by AP_main::accept().

template<typename ELEM>
ELEM* AP_STACK< ELEM >::top ( )
inline

Definition at line 81 of file AP_buffer.hxx.

Referenced by AP_STACK< AP_tree_nlen >::pop().

template<typename ELEM>
const ELEM* AP_STACK< ELEM >::top ( ) const
inline

Definition at line 85 of file AP_buffer.hxx.

template<typename ELEM>
size_t AP_STACK< ELEM >::count_elements ( ) const
inline

Definition at line 90 of file AP_buffer.hxx.

Referenced by AP_main::get_user_push_counter().

template<typename ELEM>
bool AP_STACK< ELEM >::empty ( ) const
inline

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