element_tree.cpp
来自「ACE自适配通信环境(ADAPTIVE Communication Enviro」· C++ 代码 · 共 73 行
CPP
73 行
// Element_Tree.cpp,v 1.5 2002/08/22 01:51:15 kitty Exp#include "ACEXML/parser/debug_validator/Element_Tree.h"#if !defined (__ACEXML_INLINE__)# include "ACEXML/parser/debug_validator/Element_Tree.i"#endif /* __ACEXML_INLINE__ */ACEXML_Element_Tree_Node::~ACEXML_Element_Tree_Node (){ delete this->next_;}ACE_ALLOC_HOOK_DEFINE (ACEXML_Element_Tree_Node)voidACEXML_Element_Tree_Name_Node::dump (){ cout << this->name_;}ACE_ALLOC_HOOK_DEFINE (ACEXML_Element_Tree_Name_Node)ACEXML_Element_Tree_List_Node::~ACEXML_Element_Tree_List_Node (void){ delete this->head_;}intACEXML_Element_Tree_List_Node::insert (ACEXML_Element_Tree_Node *node){ if (this->head_ == 0) { this->tail_ = this->head_ = node; } else { this->tail_->next (node); this->tail_ = node; } return 0;}voidACEXML_Element_Tree_List_Node::dump (void){ ACEXML_Element_Tree_Node *ptr = this->head_; const ACEXML_Char *separator = (this->type_ == SEQUENCE) ? ACE_TEXT(" , ") : ACE_TEXT(" | "); cout << "("; if (ptr != 0) { ptr->dump (); ptr = ptr->next (); while (ptr != 0) { cout << separator; ptr->dump (); ptr->next (); } } cout << ")";}ACE_ALLOC_HOOK_DEFINE (ACEXML_Element_Tree_List_Node)ACE_ALLOC_HOOK_DEFINE (ACEXML_Element_Tree_List_Stack)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?