mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 09:17:23 +01:00
22 lines
407 B
C++
22 lines
407 B
C++
#ifndef APPS_NODE_H
|
|
#define APPS_NODE_H
|
|
|
|
class Node {
|
|
public:
|
|
constexpr Node(const char * label = nullptr, int numberOfChildren = 0) :
|
|
m_label(label),
|
|
m_numberOfChildren(numberOfChildren)
|
|
{
|
|
};
|
|
virtual const Node * children(int index) const = 0;
|
|
const char * label() const;
|
|
int numberOfChildren();
|
|
bool isNull();
|
|
protected:
|
|
const char * m_label;
|
|
int m_numberOfChildren;
|
|
};
|
|
|
|
#endif
|
|
|