node.hpp
Go to the documentation of this file.
1 
10 #ifndef _NODE_H_
11 #define _NODE_H_
12 
13 #include "bytetree.hpp"
14 
15 namespace verifierUtils {
16 
25 class Node : public ByteTree
26 {
27 private:
33  std::vector<ByteTree *> children;
34 
35 public:
39  Node();
40 
48  Node(std::string &s);
49 
57  Node(std::vector<uint8_t> &v);
58 
62  ~Node();
63 
64  // Those are inherited from ByteTree:
65  std::string toString();
66 
67  std::vector<uint8_t> toVector();
68 
69  bool isNode();
70 
71  bool isLeaf();
72 
73  unsigned int size();
74 
75  void prettyPrint(std::string indent);
76 
77  void addChild(ByteTree * bt);
78 
79  ByteTree * getChild(unsigned int i);
80 };
81 
82 } // closing namespace
83 
84 #endif