mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 07:40:42 +01:00
[apps] create a class Node
Change-Id: I8e1270bab5e4b121cb49750299c7d726c5bbb8d0
This commit is contained in:
21
apps/node.cpp
Normal file
21
apps/node.cpp
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "node.h"
|
||||
|
||||
const Node * Node::children(int index) const {
|
||||
return &m_children[index];
|
||||
}
|
||||
|
||||
int Node::numberOfChildren() {
|
||||
return m_numberOfChildren;
|
||||
}
|
||||
|
||||
const char * Node::label() const {
|
||||
return m_label;
|
||||
}
|
||||
|
||||
const char * Node::text() const {
|
||||
return m_text;
|
||||
}
|
||||
|
||||
bool Node::isNull() {
|
||||
return (m_label == nullptr);
|
||||
}
|
||||
Reference in New Issue
Block a user