Go to the documentation of this file.
28 #ifndef __TERRALIB_GRAPH_INTERNAL_GRAPHDATA_H
29 #define __TERRALIB_GRAPH_INTERNAL_GRAPHDATA_H
32 #include "../Config.h"
155 #endif // __TERRALIB_GRAPH_INTERNAL_GRAPHDATA_H
void setEdgeMap(const EdgeMap &map)
Used to set a map of edge elements.
bool isDirty()
Used to check the graph data state.
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
bool m_dirty
Flag used to indicate that a element was changed.
GraphData(int id)
Default constructor.
EdgeMap m_edgeMap
This map contains all edges from this graph.
EdgeMap & getEdgeMap()
It returns the the edge map.
From the point of view of graph theory, vertices are treated as featureless and indivisible objects,...
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.
void setDirty(bool status)
Flag used to define the graph data state.
std::map< int, Vertex * > VertexMap
typedef for vertex map
VertexMap & getVertexMap()
It returns the the vertex map.
int getId()
Get data identifier.
void addVertex(Vertex *v)
std::map< int, Edge * > EdgeMap
typedef for edge map
void setVertexMap(const VertexMap &map)
Used to set a map of vertex elements.
Vertex * getVertex(int id)
~GraphData()
Default destructor.
This class define a important struct used to group a map of vertex and edges. A flag is used to indic...
VertexMap m_vertexMap
This map contains all vertexs from this graph.
bool removeVertex(int id)