My Project
node.h
1 
9 #ifndef NODE_H
10 #define NODE_H
11 
12 #include "utils.h"
13 
14 class Node {
15 
16  uint id;
17 
21  static const int UNSET = -1;
22 
23 public:
24 
25  Node(uint id);
26  Node(uint id, int value);
27 
28  const uint get_id() const;
29 
33  int index;
34 
38  bool was_visited() const;
39 
43  int lowlink;
44 
50  bool in_stack;
51 
55  void reset();
56 
60  int value;
61 
63  friend std::istream& operator>>(std::istream& in, Node& node);
64  friend std::ostream& operator<<(std::ostream& out, Node& node);
65  friend std::ostream& operator<<(std::ostream& out, Node* node);
66 };
67 
68 #endif
int lowlink
Definition: node.h:43
Definition: node.h:14
bool was_visited() const
Definition: node.cpp:19
bool in_stack
Definition: node.h:50
int index
Definition: node.h:33
int value
Definition: node.h:60
Node(uint id)
Definition: node.cpp:11
static const int UNSET
Definition: node.h:21
friend std::istream & operator>>(std::istream &in, Node &node)
void reset()
Definition: node.cpp:27