mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
22 lines
419 B
C++
22 lines
419 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() const;
|
|
bool isNull() const;
|
|
protected:
|
|
const char * m_label;
|
|
int m_numberOfChildren;
|
|
};
|
|
|
|
#endif
|
|
|