This repository has been archived on 2024-01-28. You can view files and clone it, but cannot push or open issues or pull requests.
ecg-prog-filtered/u01/node.h
2023-04-22 13:47:40 +02:00

19 lines
381 B
C++

#include <memory>
#include <string>
#include <vector>
class node {
public:
node(const std::string &name);
virtual ~node();
std::string get_name() const;
void set_name(const std::string new_name);
unsigned int get_nr_children() const;
node *get_child(std::size_t i) const;
void add_child(node *child);
private:
std::string name;
std::vector<node *> children;
};