My Project
Node.h
1 
9 #ifndef NODE_H
10 #define NODE_H
11 
12 #include "Utils.h"
13 
14 class Node {
15 
16  std::string _name;
17  uint _id;
18 
19 public:
20 
21  Node(std::string name, uint id);
22  Node(uint id);
23 
30 
34  static const int UNSET = -1;
35 
39  bool was_visited() const;
40 
45  int lowlink;
46 
51  bool in_stack;
52 
56  int ctc_index;
57 
62 
63  const std::string& get_name() const;
64  const uint get_id() const;
65 
67  friend std::istream& operator>>(std::istream& in, Node& node);
68  friend std::ostream& operator<<(std::ostream& out, Node& node);
69  friend std::ostream& operator<<(std::ostream& out, Node* node);
70 };
71 
72 #endif
int lowlink
Definition: Node.h:45
Definition: Node.h:14
int discovery_time
Definition: Node.h:29
bool was_visited() const
Definition: Node.cpp:31
bool in_stack
Definition: Node.h:51
int count_nodes
Definition: Node.h:61
int ctc_index
Definition: Node.h:56
static const int UNSET
Definition: Node.h:34
friend std::istream & operator>>(std::istream &in, Node &node)
Definition: Node.cpp:35