[apps] create a class Node

Change-Id: I8e1270bab5e4b121cb49750299c7d726c5bbb8d0
This commit is contained in:
Émilie Feral
2016-11-08 14:20:20 +01:00
parent 33eb1601be
commit 3c921a734f
3 changed files with 48 additions and 0 deletions

21
apps/node.cpp Normal file
View 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);
}