aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
ticpp::Visitor Class Reference

Wrapper around TiXmlVisitor. More...

#include <ticpp.h>

Inheritance diagram for ticpp::Visitor:
Collaboration diagram for ticpp::Visitor:

Public Member Functions

virtual bool VisitEnter (const TiXmlDocument &doc)
 Visit a document.
virtual bool VisitExit (const TiXmlDocument &doc)
 Visit a document.
virtual bool VisitEnter (const TiXmlElement &element, const TiXmlAttribute *firstAttribute)
 Visit an element.
virtual bool VisitExit (const TiXmlElement &element)
 Visit an element.
virtual bool Visit (const TiXmlDeclaration &declaration)
 Visit a declaration.
virtual bool Visit (const TiXmlStylesheetReference &stylesheet)
 Visit a stylesheet reference.
virtual bool Visit (const TiXmlText &text)
 Visit a text node.
virtual bool Visit (const TiXmlComment &comment)
 Visit a comment node.
virtual bool Visit (const TiXmlUnknown &)
 Visit an unknow node.
virtual bool VisitEnter (const Document &)
 Visit a document.
virtual bool VisitExit (const Document &)
 Visit a document.
virtual bool VisitEnter (const Element &, const Attribute *)
 Visit an element.
virtual bool VisitExit (const Element &)
 Visit an element.
virtual bool Visit (const Declaration &)
 Visit a declaration.
virtual bool Visit (const StylesheetReference &)
 Visit a stylesheet reference.
virtual bool Visit (const Text &)
 Visit a text node.
virtual bool Visit (const Comment &)
 Visit a comment node.

Detailed Description

Wrapper around TiXmlVisitor.

Definition at line 112 of file ticpp.h.

Member Function Documentation

◆ Visit() [1/9]

virtual bool ticpp::Visitor::Visit ( const Comment & )
inlinevirtual

Visit a comment node.

Definition at line 157 of file ticpp.h.

157{ return true; }

◆ Visit() [2/9]

virtual bool ticpp::Visitor::Visit ( const Declaration & )
inlinevirtual

Visit a declaration.

Definition at line 151 of file ticpp.h.

151{ return true; }

◆ Visit() [3/9]

virtual bool ticpp::Visitor::Visit ( const StylesheetReference & )
inlinevirtual

Visit a stylesheet reference.

Definition at line 153 of file ticpp.h.

153{ return true; }

◆ Visit() [4/9]

virtual bool ticpp::Visitor::Visit ( const Text & )
inlinevirtual

Visit a text node.

Definition at line 155 of file ticpp.h.

155{ return true; }

◆ Visit() [5/9]

bool Visitor::Visit ( const TiXmlComment & )
virtual

Visit a comment node.

Reimplemented from TiXmlVisitor.

Definition at line 69 of file ticpp.cpp.

69 {
70 return Visit(Comment(const_cast< TiXmlComment* >(&comment)));
71}
virtual bool Visit(const TiXmlDeclaration &declaration)
Visit a declaration.
Definition ticpp.cpp:56

References Visit().

Here is the call graph for this function:

◆ Visit() [6/9]

bool Visitor::Visit ( const TiXmlDeclaration & )
virtual

Visit a declaration.

Reimplemented from TiXmlVisitor.

Definition at line 56 of file ticpp.cpp.

56 {
57 return Visit(Declaration(const_cast< TiXmlDeclaration* >(&declaration)));
58}

References Visit().

Referenced by Visit(), Visit(), Visit(), and Visit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Visit() [7/9]

bool Visitor::Visit ( const TiXmlStylesheetReference & )
virtual

Visit a stylesheet reference.

Reimplemented from TiXmlVisitor.

Definition at line 60 of file ticpp.cpp.

60 {
61 return Visit(
62 StylesheetReference(const_cast< TiXmlStylesheetReference* >(&stylesheet)));
63}

References Visit().

Here is the call graph for this function:

◆ Visit() [8/9]

bool Visitor::Visit ( const TiXmlText & )
virtual

Visit a text node.

Reimplemented from TiXmlVisitor.

Definition at line 65 of file ticpp.cpp.

65 {
66 return Visit(Text(const_cast< TiXmlText* >(&text)));
67}

References Visit().

Here is the call graph for this function:

◆ Visit() [9/9]

bool Visitor::Visit ( const TiXmlUnknown & )
virtual

Visit an unknow node.

Reimplemented from TiXmlVisitor.

Definition at line 73 of file ticpp.cpp.

73{ return TiXmlVisitor::Visit(x); }
virtual bool Visit(const TiXmlDeclaration &)
Visit a declaration.
Definition tinyxml.h:162

References TiXmlVisitor::Visit().

Here is the call graph for this function:

◆ VisitEnter() [1/4]

virtual bool ticpp::Visitor::VisitEnter ( const Document & )
inlinevirtual

Visit a document.

Definition at line 138 of file ticpp.h.

138{ return true; }

◆ VisitEnter() [2/4]

virtual bool ticpp::Visitor::VisitEnter ( const Element & ,
const Attribute *  )
inlinevirtual

Visit an element.

Definition at line 143 of file ticpp.h.

144 {
145 return true;
146 }

◆ VisitEnter() [3/4]

bool Visitor::VisitEnter ( const TiXmlDocument & )
virtual

Visit a document.

Reimplemented from TiXmlVisitor.

Definition at line 34 of file ticpp.cpp.

34 {
35 return VisitEnter(Document(const_cast< TiXmlDocument* >(&doc)));
36}
virtual bool VisitEnter(const TiXmlDocument &doc)
Visit a document.
Definition ticpp.cpp:34

References VisitEnter().

Referenced by VisitEnter(), VisitEnter(), and VisitExit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VisitEnter() [4/4]

bool Visitor::VisitEnter ( const TiXmlElement & ,
const TiXmlAttribute *  )
virtual

Visit an element.

Reimplemented from TiXmlVisitor.

Definition at line 42 of file ticpp.cpp.

43 {
44 if (0 != firstAttribute) {
45 Attribute attribute(const_cast< TiXmlAttribute* >(firstAttribute));
46 return VisitEnter(Element(const_cast< TiXmlElement* >(&element)), &attribute);
47 } else {
48 return VisitEnter(Element(const_cast< TiXmlElement* >(&element)), 0);
49 }
50}

References VisitEnter().

Here is the call graph for this function:

◆ VisitExit() [1/4]

virtual bool ticpp::Visitor::VisitExit ( const Document & )
inlinevirtual

Visit a document.

Definition at line 140 of file ticpp.h.

140{ return true; }

◆ VisitExit() [2/4]

virtual bool ticpp::Visitor::VisitExit ( const Element & )
inlinevirtual

Visit an element.

Definition at line 148 of file ticpp.h.

148{ return true; }

◆ VisitExit() [3/4]

bool Visitor::VisitExit ( const TiXmlDocument & )
virtual

Visit a document.

Reimplemented from TiXmlVisitor.

Definition at line 38 of file ticpp.cpp.

38 {
39 return VisitEnter(Document(const_cast< TiXmlDocument* >(&doc)));
40}

References VisitEnter().

Referenced by VisitExit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ VisitExit() [4/4]

bool Visitor::VisitExit ( const TiXmlElement & )
virtual

Visit an element.

Reimplemented from TiXmlVisitor.

Definition at line 52 of file ticpp.cpp.

52 {
53 return VisitExit(Element(const_cast< TiXmlElement* >(&element)));
54}
virtual bool VisitExit(const TiXmlDocument &doc)
Visit a document.
Definition ticpp.cpp:38

References VisitExit().

Here is the call graph for this function:

The documentation for this class was generated from the following files:
  • agrum/base/external/tinyxml/ticpp/ticpp.h
  • agrum/base/external/tinyxml/ticpp/ticpp.cpp