#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.
      
  | 
  virtual | 
Default destructor.
| AbstractGraphLoaderStrategy* te::graph::GraphDataManager::getLoaderStrategy | ( | ) | 
Function used to get the current loader strategy.
| 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 | 
| 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 | 
| void te::graph::GraphDataManager::removeEdge | ( | int | id | ) | 
Function used to remove a edge from data source.
| id | The edge Id | 
| void te::graph::GraphDataManager::removeVertex | ( | int | id | ) | 
Function used to remove a vertex from data source.
| id | The vertex Id | 
| 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 | 
| void te::graph::GraphDataManager::setLoaderStrategy | ( | AbstractGraphLoaderStrategy * | loaderStrategy | ) | 
Function used to set a current loader strategy.
| loaderStrategy | A pointer to loader strategy implementation | 
      
  | 
  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.