|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
22 #ifndef ELM_XOM_NODES_H_
23 #define ELM_XOM_NODES_H_
25 #include <elm/util/MessageException.h>
26 #include <elm/data/Vector.h>
27 #include <elm/xom/Node.h>
29 namespace elm {
namespace xom {
38 { nodes.
clear(); nodes.
addAll(n.nodes);
return *
this; }
42 inline Node *
get(
int index)
const {
return nodes[index]; }
45 {
Node *node = nodes[index]; nodes.
remove(node);
return node; }
46 inline int size(
void)
const {
return nodes.
count(); }
Definition: MessageException.h:30
void insert(int i, const T &v)
Definition: Vector.h:138
int count(void) const
Definition: Vector.h:81
Nodes & operator=(const Nodes &n)
Definition: Nodes.h:37
virtual String message(void)
Definition: util_MessageException.cpp:50
XMLException(const string &message)
Definition: Nodes.h:54
Node * remove(int index)
Definition: Nodes.h:44
Nodes(const Nodes &n)
Definition: Nodes.h:36
Nodes(void)
Definition: Nodes.h:34
void add(const T &v)
Definition: Vector.h:101
bool contains(const T &v) const
Definition: Vector.h:82
Node * get(int index) const
Definition: Nodes.h:42
void addAll(const C &c)
Definition: Vector.h:102
void insert(Node *node, int index)
Definition: Nodes.h:43
void remove(const T &value)
Definition: Vector.h:104
bool contains(Node *node) const
Definition: Nodes.h:41
int size(void) const
Definition: Nodes.h:46
void append(Node *node)
Definition: Nodes.h:40
void clear(void)
Definition: Vector.h:100
Nodes(Node *node)
Definition: Nodes.h:35