2021-03-31 14:49:25 +02:00
|
|
|
#pragma once
|
|
|
|
#include "Gedeng/String.h"
|
|
|
|
#include "Gedeng/Vector.h"
|
|
|
|
|
|
|
|
namespace Gedeng {
|
|
|
|
|
|
|
|
class Node {
|
2021-04-11 23:23:04 +02:00
|
|
|
public:
|
2021-03-31 14:49:25 +02:00
|
|
|
// Add the given node as a child of this node.
|
|
|
|
void add_child(const Node &node);
|
|
|
|
|
|
|
|
// Return a vector with all child nodes of this node.
|
|
|
|
Vector<Node &> get_children() const;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Gedeng
|