ACEXML_Element_Tree_List_Stack Class Reference

A class for managing a stack of ACEXML_Element_Tree_List_Node's. More...

#include <parser/debug_validator/Element_Tree.h>

Collaboration diagram for ACEXML_Element_Tree_List_Stack:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ACEXML_Element_Tree_List_Stack ()
void push (ACEXML_Element_Tree_List_Node *n)
ACEXML_Element_Tree_List_Nodepop (void)
ACEXML_Element_Tree_List_Nodetop (void)
int empty (void)

Public Attributes

 ACE_ALLOC_HOOK_DECLARE

Protected Attributes

ACEXML_Element_Tree_List_Nodetop_

Detailed Description

A class for managing a stack of ACEXML_Element_Tree_List_Node's.

See also:
ACEXML_Element_Tree_List_Node

Definition at line 135 of file Element_Tree.h.


Constructor & Destructor Documentation

ACEXML_INLINE ACEXML_Element_Tree_List_Stack::ACEXML_Element_Tree_List_Stack (  ) 

Definition at line 58 of file Element_Tree.inl.

00059   : top_ (0)
00060 {
00061 }


Member Function Documentation

ACEXML_INLINE int ACEXML_Element_Tree_List_Stack::empty ( void   ) 

Definition at line 89 of file Element_Tree.inl.

References top_.

00090 {
00091   return this->top_ == 0;
00092 }

ACEXML_INLINE ACEXML_Element_Tree_List_Node * ACEXML_Element_Tree_List_Stack::pop ( void   ) 

Definition at line 77 of file Element_Tree.inl.

References ACEXML_Element_Tree_List_Node::pop_next_, and top_.

00078 {
00079   if (this->top_ != 0)
00080     {
00081       ACEXML_Element_Tree_List_Node *ptr = this->top_;
00082       this->top_ = this->top_->pop_next_;
00083       return ptr;
00084     }
00085   return 0;
00086 }

ACEXML_INLINE void ACEXML_Element_Tree_List_Stack::push ( ACEXML_Element_Tree_List_Node n  ) 

Definition at line 70 of file Element_Tree.inl.

References ACEXML_Element_Tree_List_Node::pop_next_, and top_.

Referenced by ACEXML_Debug_Element_Builder::startChildGroup().

00071 {
00072   n->pop_next_ = this->top_;
00073   this->top_ = n;
00074 }

ACEXML_INLINE ACEXML_Element_Tree_List_Node * ACEXML_Element_Tree_List_Stack::top ( void   ) 

Definition at line 64 of file Element_Tree.inl.

References top_.

Referenced by ACEXML_Debug_Element_Builder::insertElement(), ACEXML_Debug_Element_Builder::setChoice(), and ACEXML_Debug_Element_Builder::setSequence().

00065 {
00066   return this->top_;
00067 }


Member Data Documentation

ACEXML_Element_Tree_List_Stack::ACE_ALLOC_HOOK_DECLARE

Definition at line 148 of file Element_Tree.h.

ACEXML_Element_Tree_List_Node* ACEXML_Element_Tree_List_Stack::top_ [protected]

Definition at line 151 of file Element_Tree.h.

Referenced by empty(), pop(), push(), and top().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:37:15 2010 for ACEXML by  doxygen 1.4.7