This should cover all requirements from the assignment, but a more specific use case will be added later.
15 lines
315 B
C++
15 lines
315 B
C++
#pragma once
|
|
#include "Gedeng/String.h"
|
|
#include "Gedeng/Vector.h"
|
|
|
|
namespace Gedeng {
|
|
|
|
class Node {
|
|
// 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
|