29#ifndef __TERRALIB_GRAPH_INTERNAL_GRAPHDATAMANAGER_H
30#define __TERRALIB_GRAPH_INTERNAL_GRAPHDATAMANAGER_H
This class define the main functions necessary to save and load the graph data and metadata informati...
Abstract class used to define the main functions of graph struct. All graph implementations must used...
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
Class used to manager the graph data elements. This class uses a cache policy to control the elements...
GraphDataManager(te::graph::AbstractGraph *g)
Default constructor.
void removeVertex(int id)
Function used to remove a vertex from data source.
void loadGraphDataByVertexId(int vertexId, te::graph::GraphCache *gc=0)
Load a set of vertex elements that includes the desired element.
void loadGraphDataByEdgeId(int edgeId, te::graph::GraphCache *gc=0)
Load a set of edges elements that includes the desired element.
void removeEdge(int id)
Function used to remove a edge from data source.
AbstractGraphLoaderStrategy * m_loadStrategy
Pointer to a loader strategy object.
virtual ~GraphDataManager()
Default destructor.
AbstractGraphLoaderStrategy * getLoaderStrategy()
Function used to get the current loader strategy.
AbstractGraph * m_graph
Pointer to a graph object.
void saveGraphData(GraphData *data)
Save the graph data structure in Data Source.
void setLoaderStrategy(AbstractGraphLoaderStrategy *loaderStrategy)
Function used to set a current loader strategy.
This class define a important struct used to group a map of vertex and edges. A flag is used to indic...
From the point of view of graph theory, vertices are treated as featureless and indivisible objects,...
Configuration flags for the Graph module of TerraLib.
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.