Public Member Functions | Public Attributes | Protected Attributes

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 ( void   ) 

Definition at line 58 of file Element_Tree.inl.

  : top_ (0)
{
}


Member Function Documentation

ACEXML_INLINE int ACEXML_Element_Tree_List_Stack::empty ( void   ) 

Definition at line 89 of file Element_Tree.inl.

{
  return this->top_ == 0;
}

ACEXML_INLINE ACEXML_Element_Tree_List_Node * ACEXML_Element_Tree_List_Stack::pop ( void   ) 

Definition at line 77 of file Element_Tree.inl.

{
  if (this->top_ != 0)
    {
      ACEXML_Element_Tree_List_Node *ptr = this->top_;
      this->top_ = this->top_->pop_next_;
      return ptr;
    }
  return 0;
}

ACEXML_INLINE void ACEXML_Element_Tree_List_Stack::push ( ACEXML_Element_Tree_List_Node n  ) 

Definition at line 70 of file Element_Tree.inl.

{
  n->pop_next_ = this->top_;
  this->top_ = n;
}

ACEXML_INLINE ACEXML_Element_Tree_List_Node * ACEXML_Element_Tree_List_Stack::top ( void   ) 

Definition at line 64 of file Element_Tree.inl.

{
  return this->top_;
}


Member Data Documentation

Definition at line 148 of file Element_Tree.h.

Definition at line 151 of file Element_Tree.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines