-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathNode.h
More file actions
19 lines (17 loc) · 756 Bytes
/
Copy pathNode.h
File metadata and controls
19 lines (17 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <string>
#include <memory>
#include "Value.h"
class Node {
public:
unsigned node_id_;
Node()=default;
Node(const std::string& label_string, const std::string& prop_string, const GPStore::Value* value);
Node(unsigned node_id);
void Goto(unsigned new_node_id) {
node_id_ = new_node_id;
}
GPStore::Value* operator[](const std::string& property_string);
void GetLinkedNodes(const std::string&, std::shared_ptr<const unsigned[]>& nodes_list, unsigned& list_len, char edge_dir);
void GetLinkedNodesWithEdgeProps(const std::string& pre_str, std::shared_ptr<const unsigned[]>& nodes_list, std::shared_ptr<const long long[]>& prop_list,
unsigned& prop_len, unsigned& list_len, char edge_dir);
};