Files
Upsilon/apps/node.h
Émilie Feral 68eae7f010 [apps] Ensure const methods when needed in node class
Change-Id: Ib1ca31d4eeaaf1a05cc2e25e408b382111fa3648
2016-11-14 17:06:55 +01:00

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