#include <GraphDataManager.h>
Public Member Functions | |
| AbstractGraphLoaderStrategy * | getLoaderStrategy () |
| Function used to get the current loader strategy. More... | |
| GraphDataManager (te::graph::AbstractGraph *g) | |
| Default constructor. More... | |
| void | setLoaderStrategy (AbstractGraphLoaderStrategy *loaderStrategy) |
| Function used to set a current loader strategy. More... | |
| virtual | ~GraphDataManager () |
| Default destructor. More... | |
Graph Data Manager Methods | |
Method used to manager a graph data | |
| void | loadGraphDataByVertexId (int vertexId, te::graph::GraphCache *gc=0) |
| Load a set of vertex elements that includes the desired element. More... | |
| void | loadGraphDataByEdgeId (int edgeId, te::graph::GraphCache *gc=0) |
| Load a set of edges elements that includes the desired element. More... | |
| void | saveGraphData (GraphData *data) |
| Save the graph data structure in Data Source. More... | |
| void | removeEdge (int id) |
| Function used to remove a edge from data source. More... | |
| void | removeVertex (int id) |
| Function used to remove a vertex from data source. More... | |
Private Attributes | |
| AbstractGraph * | m_graph |
| Pointer to a graph object. More... | |
| AbstractGraphLoaderStrategy * | m_loadStrategy |
| Pointer to a loader strategy object. More... | |
Definition at line 58 of file GraphDataManager.h.
| te::graph::GraphDataManager::GraphDataManager | ( | te::graph::AbstractGraph * | g | ) |
Default constructor.
Definition at line 40 of file GraphDataManager.cpp.
|
virtual |
Default destructor.
Definition at line 44 of file GraphDataManager.cpp.
| te::graph::AbstractGraphLoaderStrategy * te::graph::GraphDataManager::getLoaderStrategy | ( | ) |
Function used to get the current loader strategy.
Definition at line 49 of file GraphDataManager.cpp.
Referenced by te::graph::GraphCache::GraphCache().
| void te::graph::GraphDataManager::loadGraphDataByEdgeId | ( | int | edgeId, |
| te::graph::GraphCache * | gc = 0 |
||
| ) |
Load a set of edges elements that includes the desired element.
| edgeId | The edge identifier of the desired element. |
| gc | A Graph Cache used to verify if the element already in memory |
Definition at line 67 of file GraphDataManager.cpp.
| void te::graph::GraphDataManager::loadGraphDataByVertexId | ( | int | vertexId, |
| te::graph::GraphCache * | gc = 0 |
||
| ) |
Load a set of vertex elements that includes the desired element.
| vertexId | The vertex identifier of the desired element. |
| gc | A Graph Cache used to verify if the element already in memory |
Definition at line 59 of file GraphDataManager.cpp.
| void te::graph::GraphDataManager::removeEdge | ( | int | id | ) |
Function used to remove a edge from data source.
| id | The edge Id |
Definition at line 83 of file GraphDataManager.cpp.
| void te::graph::GraphDataManager::removeVertex | ( | int | id | ) |
Function used to remove a vertex from data source.
| id | The vertex Id |
Definition at line 91 of file GraphDataManager.cpp.
| void te::graph::GraphDataManager::saveGraphData | ( | GraphData * | data | ) |
Save the graph data structure in Data Source.
| data | A graph data with a group of vertex and edge elements |
Definition at line 75 of file GraphDataManager.cpp.
| void te::graph::GraphDataManager::setLoaderStrategy | ( | AbstractGraphLoaderStrategy * | loaderStrategy | ) |
Function used to set a current loader strategy.
| loaderStrategy | A pointer to loader strategy implementation |
Definition at line 54 of file GraphDataManager.cpp.
Referenced by te::graph::Graph::Graph().
|
private |
Pointer to a graph object.
Definition at line 143 of file GraphDataManager.h.
|
private |
Pointer to a loader strategy object.
Definition at line 142 of file GraphDataManager.h.