#include <parser/debug_validator/Element_Tree.h>
Inheritance diagram for ACEXML_Element_Tree_List_Node:


Public Types | |
| enum | LIST_TYPE { SEQUENCE, CHOICE } |
Public Member Functions | |
| ACEXML_Element_Tree_List_Node (void) | |
| Default constructor. | |
| virtual | ~ACEXML_Element_Tree_List_Node (void) |
| Destructor. | |
| int | insert (ACEXML_Element_Tree_Node *node) |
| Insert a new ACEXML_Element_Tree_Node into the list. | |
| LIST_TYPE | get (void) |
| Get/set the type of list. | |
| int | set (LIST_TYPE type) |
| virtual void | dump () |
| Displaying the content. | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
Protected Attributes | |
| LIST_TYPE | type_ |
| ACEXML_Element_Tree_Node * | head_ |
| ACEXML_Element_Tree_Node * | tail_ |
| ACEXML_Element_Tree_List_Node * | pop_next_ |
Friends | |
| class | ACEXML_Element_Tree_List_Stack |
Definition at line 91 of file Element_Tree.h.
|
|
Definition at line 97 of file Element_Tree.h.
|
|
|
Default constructor.
Definition at line 36 of file Element_Tree.i.
|
|
|
Destructor.
Definition at line 24 of file Element_Tree.cpp.
00025 {
00026 delete this->head_;
00027 }
|
|
|
Displaying the content.
Implements ACEXML_Element_Tree_Node. Definition at line 45 of file Element_Tree.cpp. References ACE_TEXT, ACEXML_Char, ACEXML_Element_Tree_Node::dump(), ACEXML_Element_Tree_Node::next(), and SEQUENCE.
00046 {
00047 ACEXML_Element_Tree_Node *ptr = this->head_;
00048 const ACEXML_Char *separator = (this->type_ == SEQUENCE) ? ACE_TEXT(" , ") : ACE_TEXT(" | ");
00049
00050 cout << "(";
00051
00052 if (ptr != 0)
00053 {
00054 ptr->dump ();
00055 ptr = ptr->next ();
00056
00057 while (ptr != 0)
00058 {
00059 cout << separator;
00060 ptr->dump ();
00061 ptr->next ();
00062 }
00063 }
00064
00065 cout << ")";
00066 }
|
|
|
Get/set the type of list.
Definition at line 45 of file Element_Tree.i.
00046 {
00047 return this->type_;
00048 }
|
|
|
Insert a new ACEXML_Element_Tree_Node into the list.
Definition at line 30 of file Element_Tree.cpp. References ACEXML_Element_Tree_Node::next(). Referenced by ACEXML_Debug_Element_Builder::startChildGroup().
|
|
|
Definition at line 51 of file Element_Tree.i. Referenced by ACEXML_Debug_Element_Builder::setChoice(), and ACEXML_Debug_Element_Builder::setSequence().
00052 {
00053 this->type_ = type;
00054 return 0;
00055 }
|
|
|
Definition at line 95 of file Element_Tree.h. |
|
|
Reimplemented from ACEXML_Element_Tree_Node. Definition at line 117 of file Element_Tree.h. |
|
|
Definition at line 121 of file Element_Tree.h. |
|
|
Definition at line 125 of file Element_Tree.h. Referenced by ACEXML_Element_Tree_List_Stack::pop(), and ACEXML_Element_Tree_List_Stack::push(). |
|
|
Definition at line 123 of file Element_Tree.h. |
|
|
Definition at line 119 of file Element_Tree.h. |
1.3.6