#include <cxx_template.h>

Public Member Functions | |
| STACK (MEM_POOL *pool) | |
| ~STACK (void) | |
| void | Push (const T &val) |
| void | Settop (const T &val) |
| INT32 | Topidx (void) |
| T | Pop (void) |
| T & | Top_nth (const INT32 n) const |
| T & | Bottom_nth (const INT32 n) const |
| T & | Top (void) const |
| BOOL | Is_Empty (void) const |
| void | Clear (void) |
| void | Free () |
| void | Alloc (const INT32 n) |
| mINT32 | Elements () const |
Private Member Functions | |
| STACK (const STACK &) | |
| STACK & | operator= (const STACK &) |
Private Attributes | |
| DYN_ARRAY< T > | _stack |
Description:
class STACK is a simple extension of DYN_ARRAY with stack specific methods.
Reserved Prefix:
None.
Exported Types:
None.
Exported Funcitons:
Construct a stack using space from *pool.
Destruct the stack.
void Push(const T& val)
Push a 'val' to the top of the stack.
void Settop(const T& val)
Set 'val' as the top of the stack (no push and pop involved) if the stack has allocated space (size >= 1).
Pop the stack.
T& Top_nth(const INT32 n) const
Get the top 'n'-th element of the stack. Stack top is Nth(0).
T& Bottom_nth(const INT32 n) const
Get the bottom 'n'-th element of the stack. Stack bottom is Nth(0).
Same as Nth(0).
void Clear(void)
Wipe out the entire stack.
void Alloc(const INT32 n)
Allocate space for 'n' element in the stack.
mINT32 Elements() const
How many elements are on the stack.
Definition at line 285 of file cxx_template.h.
Definition at line 293 of file cxx_template.h.
Definition at line 294 of file cxx_template.h.
Definition at line 313 of file cxx_template.h.
Definition at line 494 of file cxx_template.h.
References STACK< T >::_stack, idx, and Is_True.
Referenced by PROMPF_LINES::Add_Line(), WB_BROWSER::Ancestors(), PROMPF_LINES::High(), PROMPF_INFO::Id(), Insert_Call(), PROMPF_LINES::Low(), MemCtr_Add_Local(), PROMPF_TRANS::New_Loop(), PROMPF_TRANS::Old_Loop(), WB_BROWSER::Parent(), PROMPF_TRANS::Prev_Loop(), PROMPF_INFO::Print(), PROMPF_TRANS::Print(), PROMPF_TRANS::Print_Compact(), PROMPF_INFO::Trans(), and PROMPF_INFO::Update_Id().
Definition at line 311 of file cxx_template.h.
Referenced by OPTIONS_STACK::OPTIONS_STACK(), and PROMPF_INFO::PROMPF_INFO().
Definition at line 314 of file cxx_template.h.
Referenced by WB_BROWSER::Ancestors(), PROMPF_LINES::High(), Insert_Call(), PROMPF_INFO::Last_Id(), PROMPF_INFO::Last_Trans(), PROMPF_LINES::Low(), MemCtr_Add_Local(), PROMPF_TRANS::New_Loop(), PROMPF_TRANS::New_Loop_Count(), PROMPF_TRANS::Old_Loop(), PROMPF_TRANS::Old_Loop_Count(), WB_BROWSER::Parent(), OPTIONS_STACK::Pop_Current_Options(), PROMPF_TRANS::Prev_Loop(), PROMPF_TRANS::Prev_Loop_Count(), PROMPF_INFO::Print(), PROMPF_TRANS::Print(), PROMPF_TRANS::Print_Compact(), Prompf_Assign_Ids_Traverse(), OPTIONS_STACK::Push_Current_Options(), Rename_INITV_Labels(), and PROMPF_LINES::Sections().
Definition at line 312 of file cxx_template.h.
Definition at line 513 of file cxx_template.h.
References STACK< T >::_stack.
Definition at line 298 of file cxx_template.h.
Referenced by PROMPF_LINES::Add_Line(), OPTIONS_STACK::Pop_Current_Options(), PROMPF_INFO::Remove_Id(), PROMPF_INFO::Remove_Trans(), Rename_INITV_Labels(), and WB_Parent_Search().
Definition at line 295 of file cxx_template.h.
Referenced by PROMPF_INFO::Add_Id(), PROMPF_LINES::Add_Line(), PROMPF_TRANS::Add_New_Lines(), PROMPF_TRANS::Add_New_Loop(), PROMPF_TRANS::Add_Old_Lines(), PROMPF_TRANS::Add_Old_Loop(), PROMPF_TRANS::Add_Prev_Loop(), PROMPF_INFO::Add_Trans(), Collect_Goodies(), Prompf_Assign_Ids_Traverse(), OPTIONS_STACK::Push_Current_Options(), Rename_INITV_Labels(), and WB_Parent_Search().
Definition at line 474 of file cxx_template.h.
References STACK< T >::_stack, idx, and Is_True.
Definition at line 504 of file cxx_template.h.
References STACK< T >::_stack, idx, and Is_True.
Referenced by OPTIONS_STACK::Pop_Current_Options().
Definition at line 484 of file cxx_template.h.
References STACK< T >::_stack, idx, and Is_True.
Definition at line 297 of file cxx_template.h.
Definition at line 287 of file cxx_template.h.
Referenced by STACK< char * >::Alloc(), STACK< T >::Bottom_nth(), STACK< char * >::Clear(), STACK< char * >::Elements(), STACK< char * >::Free(), STACK< T >::Is_Empty(), STACK< char * >::Pop(), STACK< char * >::Push(), STACK< T >::Settop(), STACK< T >::Top(), STACK< T >::Top_nth(), and STACK< char * >::Topidx().
1.7.1