This class define a important struct used to group a map of vertex and edges. A flag is used to indicate if any element of this group was changed.
More...
#include <GraphData.h>
This class define a important struct used to group a map of vertex and edges. A flag is used to indicate if any element of this group was changed.
- See also
- GraphCache
Definition at line 55 of file GraphData.h.
◆ EdgeMap
◆ VertexMap
typedef for vertex map
Definition at line 66 of file GraphData.h.
◆ GraphData()
te::graph::GraphData::GraphData |
( |
int |
id | ) |
|
◆ ~GraphData()
te::graph::GraphData::~GraphData |
( |
| ) |
|
◆ addEdge()
void te::graph::GraphData::addEdge |
( |
Edge * |
e | ) |
|
◆ addVertex()
void te::graph::GraphData::addVertex |
( |
Vertex * |
v | ) |
|
◆ getEdge()
Edge* te::graph::GraphData::getEdge |
( |
int |
id | ) |
|
◆ getEdgeMap()
EdgeMap& te::graph::GraphData::getEdgeMap |
( |
| ) |
|
It returns the the edge map.
- Returns
- Map with all edges from this graph data
◆ getId()
int te::graph::GraphData::getId |
( |
| ) |
|
◆ getVertex()
Vertex* te::graph::GraphData::getVertex |
( |
int |
id | ) |
|
◆ getVertexMap()
VertexMap& te::graph::GraphData::getVertexMap |
( |
| ) |
|
It returns the the vertex map.
- Returns
- Map with all vertex from this graph data
◆ isDirty()
bool te::graph::GraphData::isDirty |
( |
| ) |
|
Used to check the graph data state.
- Returns
- Boolean value that defines the graph data state
◆ removeEdge()
bool te::graph::GraphData::removeEdge |
( |
int |
id | ) |
|
◆ removeVertex()
bool te::graph::GraphData::removeVertex |
( |
int |
id | ) |
|
◆ setDirty()
void te::graph::GraphData::setDirty |
( |
bool |
status | ) |
|
Flag used to define the graph data state.
- Parameters
-
status | Boolean value to define the state |
◆ setEdgeMap()
void te::graph::GraphData::setEdgeMap |
( |
const EdgeMap & |
map | ) |
|
Used to set a map of edge elements.
- Parameters
-
◆ setVertexMap()
void te::graph::GraphData::setVertexMap |
( |
const VertexMap & |
map | ) |
|
Used to set a map of vertex elements.
- Parameters
-
◆ m_dirty
bool te::graph::GraphData::m_dirty |
|
private |
Flag used to indicate that a element was changed.
Definition at line 146 of file GraphData.h.
◆ m_edgeMap
EdgeMap te::graph::GraphData::m_edgeMap |
|
private |
◆ m_id
int te::graph::GraphData::m_id |
|
private |
◆ m_vertexMap
This map contains all vertexs from this graph.
Definition at line 148 of file GraphData.h.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_release/src/terralib/graph/core/GraphData.h