Go to the documentation of this file.
28 #ifndef __TERRALIB_GRAPH_INTERNAL_ABSTRACTGRAPHLOADERSTRATEGY_H
29 #define __TERRALIB_GRAPH_INTERNAL_ABSTRACTGRAPHLOADERSTRATEGY_H
32 #include "../core/GraphMetadata.h"
33 #include "../Config.h"
208 #endif // __TERRALIB_GRAPH_INTERNAL_ABSTRACTGRAPHLOADERSTRATEGY_H
void saveGraphEdgeList(GraphData *data)
Used to save the edge elements from a graph data.
Vertex * loadVertex(int id)
Function used to load one vertex given a ID.
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
Edge * loadEdgeAttrs(int id)
Function used to load one edge given a ID.
void saveGraphVertexList(GraphData *data)
Used to save the vertex elements from a graph data.
te::graph::GraphMetadata * getMetadata()
It returns a pointer to a class that describes the graph metadata.
From the point of view of graph theory, vertices are treated as featureless and indivisible objects,...
Edge * loadEdge(int id)
Function used to load one edge given a ID.
te::graph::GraphMetadata * m_graphMetadata
Graph metadata attribute.
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.
void saveVertexAttributes(GraphData *data)
Used to save the vertex elements attributes from a graph data.
virtual void removeEdge(int id)
Function used to remove a edge saved in a data source.
Vertex * loadVertexAttrs(int id)
Function used to load one vertex given a ID.
AbstractGraphLoaderStrategy(te::graph::GraphMetadata *metadata)
Default constructor.
virtual void loadDataByEdgeId(int edgeId, te::graph::AbstractGraph *g, te::graph::GraphCache *gc=0)=0
Functio used to load a group of edges elements given a base element.
Class used to manager the graph data elements. This class uses a cache policy to control the elements...
Abstract class used to define the main functions of graph struct. All graph implementations must used...
This class define the main functions necessary to save and load the graph data and metadata informati...
This class define a important struct used to group a map of vertex and edges. A flag is used to indic...
virtual void removeVertex(int id)
Function used to remove a vertex saved in a data source.
virtual void saveData(GraphData *data)
Save the graph data structure in Data Source.
virtual void loadDataByVertexId(int vertexId, te::graph::AbstractGraph *g, te::graph::GraphCache *gc=0)=0
Functio used to load a group of vertex elements given a base element.
void saveEdgeAttributes(GraphData *data)
Used to save the edges elements attributes from a graph data.
virtual ~AbstractGraphLoaderStrategy()
Default destructor.