This class define the main functions necessary to save and load the graph data and metadata information using the Graph Cache conception.
More...
#include <AbstractGraphLoaderStrategy.h>
This class define the main functions necessary to save and load the graph data and metadata information using the Graph Cache conception.
- See also
- AbstractGraph, GraphMetadata, GraphCache
Definition at line 55 of file AbstractGraphLoaderStrategy.h.
virtual te::graph::AbstractGraphLoaderStrategy::~AbstractGraphLoaderStrategy |
( |
| ) |
|
|
virtual |
It returns a pointer to a class that describes the graph metadata.
- Returns
- A valid pointer if exists and null pointer in other case
Edge* te::graph::AbstractGraphLoaderStrategy::loadEdge |
( |
int |
id | ) |
|
|
protected |
Function used to load one edge given a ID.
- Parameters
-
- Note
- This function is used in case the graph was saved using the edge list
- Returns
- A valid edge pointer if the element was found and a null pointer in other case
Edge* te::graph::AbstractGraphLoaderStrategy::loadEdgeAttrs |
( |
int |
id | ) |
|
|
protected |
Function used to load one edge given a ID.
- Parameters
-
- Note
- This function is used in case the graph was saved using the vertex list
- Returns
- A valid vertex pointer if the element was found and a null pointer in other case
Vertex* te::graph::AbstractGraphLoaderStrategy::loadVertex |
( |
int |
id | ) |
|
|
protected |
Function used to load one vertex given a ID.
- Parameters
-
- Note
- This function is used in case the graph was saved using the vertex list
- Returns
- A valid vertex pointer if the element was found and a null pointer in other case
Vertex* te::graph::AbstractGraphLoaderStrategy::loadVertexAttrs |
( |
int |
id | ) |
|
|
protected |
Function used to load one vertex given a ID.
- Parameters
-
- Note
- This function is used in case the graph was saved using the edge list
- Returns
- A valid vertex pointer if the element was found and a null pointer in other case
virtual void te::graph::AbstractGraphLoaderStrategy::removeEdge |
( |
int |
id | ) |
|
|
virtual |
virtual void te::graph::AbstractGraphLoaderStrategy::removeVertex |
( |
int |
id | ) |
|
|
virtual |
virtual void te::graph::AbstractGraphLoaderStrategy::saveData |
( |
GraphData * |
data | ) |
|
|
virtual |
void te::graph::AbstractGraphLoaderStrategy::saveEdgeAttributes |
( |
GraphData * |
data | ) |
|
|
protected |
Used to save the edges elements attributes from a graph data.
- Parameters
-
data | Pointer to a valid graph data |
void te::graph::AbstractGraphLoaderStrategy::saveGraphEdgeList |
( |
GraphData * |
data | ) |
|
|
protected |
Used to save the edge elements from a graph data.
- Parameters
-
data | Pointer to a valid graph data |
void te::graph::AbstractGraphLoaderStrategy::saveGraphVertexList |
( |
GraphData * |
data | ) |
|
|
protected |
Used to save the vertex elements from a graph data.
- Parameters
-
data | Pointer to a valid graph data |
void te::graph::AbstractGraphLoaderStrategy::saveVertexAttributes |
( |
GraphData * |
data | ) |
|
|
protected |
Used to save the vertex elements attributes from a graph data.
- Parameters
-
data | Pointer to a valid graph data |
The documentation for this class was generated from the following file: