Constant node class. More...
#include <linkgraph.h>
Public Member Functions | |
| ConstNode (const LinkGraph *lg, NodeID node) | |
| Constructor. | |
| ConstEdge | operator[] (NodeID to) const |
| Get a ConstEdge. | |
| ConstEdgeIterator | Begin () const |
| Get an iterator pointing to the start of the edges array. | |
| ConstEdgeIterator | End () const |
| Get an iterator pointing beyond the end of the edges array. | |
Constant node class.
Only retrieval operations are allowed on both the node itself and its edges.
Definition at line 355 of file linkgraph.h.
| LinkGraph::ConstNode::ConstNode | ( | const LinkGraph * | lg, | |
| NodeID | node | |||
| ) | [inline] |
Constructor.
| lg | LinkGraph to get the node from. | |
| node | ID of the node. |
Definition at line 362 of file linkgraph.h.
| ConstEdgeIterator LinkGraph::ConstNode::Begin | ( | ) | const [inline] |
Get an iterator pointing to the start of the edges array.
Reimplemented in LinkGraphJob::Node.
Definition at line 378 of file linkgraph.h.
References LinkGraph::NodeWrapper< const BaseNode, const BaseEdge >::edges, and LinkGraph::NodeWrapper< const BaseNode, const BaseEdge >::index.
Referenced by LinkGraphOverlay::RebuildCache().
| ConstEdgeIterator LinkGraph::ConstNode::End | ( | ) | const [inline] |
Get an iterator pointing beyond the end of the edges array.
Reimplemented in LinkGraphJob::Node.
Definition at line 384 of file linkgraph.h.
References LinkGraph::NodeWrapper< const BaseNode, const BaseEdge >::edges.
Referenced by LinkGraphOverlay::RebuildCache().
| ConstEdge LinkGraph::ConstNode::operator[] | ( | NodeID | to | ) | const [inline] |
Get a ConstEdge.
This is not a reference as the wrapper objects are not actually persistent.
| to | ID of end node of edge. |
Reimplemented in LinkGraphJob::Node.
Definition at line 372 of file linkgraph.h.
References LinkGraph::NodeWrapper< const BaseNode, const BaseEdge >::edges.
1.7.1