Abstract class representing the vertices of a TPGGraph.
More...
#include <tpgVertex.h>
|
|
| TPGVertex () |
| | Protected default constructor to forbid the instanciation of object of this abstract class.
|
| |
|
|
static uint64_t | incrementeCounter () |
| | Incremente the vertex ID counter and return the new value.
|
| |
| static void | resetVertexIDCounter () |
| | Reset the vertex ID counter.
|
| |
Abstract class representing the vertices of a TPGGraph.
◆ addIncomingEdge()
Method to add an incoming TPGEdge to the TPGVertex.
Since the incomingEdges set is a std::set, the same TPGEdge pointer can not be added twice to the set. This method does not register the TPGVertex as the destination of the TPGEdge.
- Parameters
-
| [in] | edge | the TPGEdge pointer to be added to the incomingEdges Set. |
◆ addOutgoingEdge()
◆ getVertexID()
| uint64_t TPG::TPGVertex::getVertexID |
( |
| ) |
const |
|
virtual |
◆ getVertexIDCounter()
| uint64_t TPG::TPGVertex::getVertexIDCounter |
( |
| ) |
|
|
static |
Get the current value of the vertex ID counter.
This method is mainly used for testing purpose to ensure that vertex IDs are predictable.
- Returns
- the current value of the vertex ID counter.
◆ hasSameAssessedActions()
| bool TPG::TPGVertex::hasSameAssessedActions |
( |
std::set< uint64_t > | actions | ) |
const |
|
virtual |
compare the set given and the assessed actions of the vertex
If the intersection is empty, return false, else true
◆ removeIncomingEdge()
| void TPG::TPGVertex::removeIncomingEdge |
( |
TPG::TPGEdge * | edge | ) |
|
|
virtual |
Removes the given incoming edge from the TPGVertex.
If the given pointer is NULL or if the given edge is not in the set of the TPGVertex, nothing happens. Otherwise, the edge is removed.
- Parameters
-
◆ removeOutgoingEdge()
| void TPG::TPGVertex::removeOutgoingEdge |
( |
TPG::TPGEdge * | edge | ) |
|
|
virtual |
Removes the given outgoing edge from the TPGVertex.
If the given pointer is NULL or if the given edge is not in the set of the TPGVertex, nothing happens. Otherwise, the edge is removed.
- Parameters
-
◆ resetVertexIDCounter()
| void TPG::TPGVertex::resetVertexIDCounter |
( |
| ) |
|
|
staticprotected |
Reset the vertex ID counter.
This method set the ID counter to a new value. It can quickly lead to segmentation fault if not used carefully.
◆ setVertexID()
| void TPG::TPGVertex::setVertexID |
( |
uint64_t | newID | ) |
|
|
virtual |
Set a new unique identifier to the TPGVertex.
- Parameters
-
| [in] | newID | the new integer ID to set to the TPGVertex. |
The documentation for this class was generated from the following files:
- D:/a/gegelati/gegelati/gegelatilib/include/tpg/tpgVertex.h
- D:/a/gegelati/gegelati/gegelatilib/src/tpg/tpgVertex.cpp