NodeVal represents a node in the graph and stores the nodeID, label and properties of that node.
More...
#include <node.h>
NodeVal represents a node in the graph and stores the nodeID, label and properties of that node.
◆ getLabelVal()
- Returns
- the name of the node as a Value.
◆ getNodeIDVal()
- Returns
- the nodeID as a Value.
◆ getNumProperties()
| LBUG_API uint64_t lbug::common::NodeVal::getNumProperties |
( |
const Value * | val | ) |
|
|
static |
- Returns
- number of properties of the RelVal.
◆ getProperties()
| LBUG_API std::vector< std::pair< std::string, std::unique_ptr< Value > > > lbug::common::NodeVal::getProperties |
( |
const Value * | val | ) |
|
|
static |
- Returns
- all properties of the NodeVal.
- Note
- this function copies all the properties into a vector, which is not efficient. use getPropertyName and getPropertyVal instead if possible.
◆ getPropertyName()
| LBUG_API std::string lbug::common::NodeVal::getPropertyName |
( |
const Value * | val, |
|
|
uint64_t | index ) |
|
static |
- Returns
- the name of the property at the given index.
◆ getPropertyVal()
| LBUG_API Value * lbug::common::NodeVal::getPropertyVal |
( |
const Value * | val, |
|
|
uint64_t | index ) |
|
static |
- Returns
- the value of the property at the given index.
◆ toString()
| LBUG_API std::string lbug::common::NodeVal::toString |
( |
const Value * | val | ) |
|
|
static |
- Returns
- the current node values in string format.
The documentation for this class was generated from the following file: