#include <node.h>
Definition at line 32 of file node.h.
◆ Node() [1/2]
LatticeGraph::Node::Node |
( |
| ) |
|
◆ ~Node()
LatticeGraph::Node::~Node |
( |
| ) |
|
◆ Node() [2/2]
◆ addEdge()
void LatticeGraph::Node::addEdge |
( |
std::weak_ptr< Edge > |
e | ) |
|
Add edge e to the current vortex (node)
- Parameters
-
e | Weak pointer to the edge to add |
◆ getConnectedNode()
std::shared_ptr<Node> LatticeGraph::Node::getConnectedNode |
( |
std::shared_ptr< Edge > |
e | ) |
|
Get the node on the other side of the edge e.
- Parameters
-
e | Edge sharing connection with required node |
- Returns
- Share pointer to connected vortex (node)
◆ getConnectedNodes()
void LatticeGraph::Node::getConnectedNodes |
( |
unsigned int & |
nodes | ) |
|
Get all connected nodes to the current vortex. PassByRef.
- Parameters
-
&nodes | Pass by reference location for nodes result |
◆ getData()
Get vortex (node) data struct.
- Returns
- Vortex data struct
◆ getEdge()
std::weak_ptr<Edge> LatticeGraph::Node::getEdge |
( |
int |
idx | ) |
|
Get edge at index idx. Assumes indices exist.
- Parameters
-
idx | Index of the requested edge |
- Returns
- Vector of weak pointers to the requested edge at index idx
◆ getEdges()
std::vector<std::weak_ptr <Edge> >& LatticeGraph::Node::getEdges |
( |
| ) |
|
Get all connected edges to vortex (node)
- Returns
- Vector of weak pointers to the connected edges
◆ getSuid()
unsigned int& LatticeGraph::Node::getSuid |
( |
| ) |
|
Get vortex (node) static UID for new UID generation.
- Returns
- Static class UID
◆ getUid()
unsigned int LatticeGraph::Node::getUid |
( |
| ) |
|
Get vortex (node) UID.
- Returns
- Vortex UID
◆ removeEdge() [1/2]
void LatticeGraph::Node::removeEdge |
( |
std::shared_ptr< Node > |
n | ) |
|
Remove edge connecting this to Node n.
- Parameters
-
n | Shared pointer to vortex (node) edge connected with. |
◆ removeEdge() [2/2]
void LatticeGraph::Node::removeEdge |
( |
std::weak_ptr< Edge > |
e | ) |
|
Remove edge e directly.
- Parameters
-
e | Shared pointer to edge for removal |
◆ removeEdgeIdx()
void LatticeGraph::Node::removeEdgeIdx |
( |
unsigned int |
idx | ) |
|
Remove edge with index idx.
- Parameters
-
idx | Index of the requested edge to remove |
◆ removeEdges()
void LatticeGraph::Node::removeEdges |
( |
| ) |
|
Remove all connected edges.
◆ removeEdgeUid()
void LatticeGraph::Node::removeEdgeUid |
( |
unsigned int |
uid | ) |
|
Remove edge with UID uid.
- Parameters
-
uid | UID of requested edge to remove |
◆ setData()
Set the vortex data (in node)
- Parameters
-
&data | Reference to vortex struct to set. |
◆ uid
unsigned int LatticeGraph::Node::uid |
The documentation for this class was generated from the following files: