Debian Codegraph @

vcg/wrap/dae/xmldocumentmanaging.cpp

raw symbols SCIP
1 #include <wrap/dae/xmldocumentmanaging.h>
2 #include <cassert>
3
4 XMLNode::XMLNode(XMLTag* tag)
5 :_tag(tag)
6 {
7 }
8
9 XMLNode::~XMLNode()
10 {
11 delete _tag;
12 }
13
14 XMLLeafNode::XMLLeafNode(XMLLeafTag* leaftag)
15 :XMLNode(leaftag)
16 {
17 }
18
19 XMLLeafNode::~XMLLeafNode()
20 {
21
22 }
23
24
25 void XMLLeafNode::applyProcedure(Visitor& v)
26 {
27 v(*this);
28 }
29
30 XMLInteriorNode::XMLInteriorNode(XMLTag* tag)
31 :XMLNode(tag)
32 {
33 }
34
35 XMLNode* XMLInteriorNode::son(int ii)
36 {
37 assert((ii > 0) && (ii < _sons.size()));
38 return _sons[ii];
39 }
40
41 QVector< XMLNode* > XMLInteriorNode::sons()
42 {
43 return _sons;
44 }
45
46 XMLInteriorNode::~XMLInteriorNode()
47 {
48 for(QVector< XMLNode* >::iterator it = _sons.begin();it != _sons.end();++it)
49 delete (*it);
50 }
51
52 void XMLInteriorNode::applyProcedure(Visitor& v)
53 {
54 v(*this);
55 }