Abstract class used to define the main functions of graph struct. All graph implementations must used this class.
More...
#include <AbstractGraph.h>
Abstract class used to define the main functions of graph struct. All graph implementations must used this class.
Definition at line 55 of file AbstractGraph.h.
te::graph::AbstractGraph::AbstractGraph |
( |
| ) |
|
virtual te::graph::AbstractGraph::~AbstractGraph |
( |
| ) |
|
|
virtual |
virtual void te::graph::AbstractGraph::add |
( |
Vertex * |
v | ) |
|
|
pure virtual |
Add a new vertex element to a graph.
- Parameters
-
- Note
- This function turns the dirty flag of current GraphData to true, the new flag of the vertex turns to true.
Implemented in te::graph::Graph.
virtual void te::graph::AbstractGraph::add |
( |
Edge * |
e | ) |
|
|
pure virtual |
Add a new property associated to the edge element.
param p New property to be associated with edge elements.
- Note
- It's important before using this function call the flush() function, its necessary to force the memory clear and the elements will be loaded with the right size of properties.
Implemented in te::graph::Graph.
virtual void te::graph::AbstractGraph::addVertexProperty |
( |
te::dt::Property * |
p | ) |
|
|
pure virtual |
Add a new property associated to the vertex element.
param p New property to be associated with vertex elements.
- Note
- It's important before using this function call the flush() function, its necessary to force the memory clear and the elements will be loaded with the right size of properties.
Implemented in te::graph::Graph.
virtual void te::graph::AbstractGraph::flush |
( |
| ) |
|
|
pure virtual |
Function used to clear the memory cache, all elements was released from memory, if any element was changes it will be saved.
- Returns
Implemented in te::graph::Graph.
It returns the edge element if it's exist.
- Parameters
-
- Returns
- A valid vertex point if the element was found and a null pointer in other case.
Implemented in te::graph::Graph.
Get a edge property given a index.
- Parameters
-
- Returns
- A property associated to the edge element if the index is right and a null pointer in other case.
Implemented in te::graph::Graph.
virtual int te::graph::AbstractGraph::getEdgePropertySize |
( |
| ) |
|
|
pure virtual |
Used to verify the number of properties associated to edge elements.
- Returns
- Integer value with the number of properties.
Implemented in te::graph::Graph.
Function used to access the graph metadata.
- Returns
- A pointer to a class that defines the graph metadata
Implemented in te::graph::Graph.
It returns the vertex element if it's exist.
- Parameters
-
- Returns
- A valid vertex point if the element was found and a null pointer in other case.
Implemented in te::graph::Graph.
virtual te::dt::Property* te::graph::AbstractGraph::getVertexProperty |
( |
int |
idx | ) |
|
|
pure virtual |
Get a vertex property given a index.
- Parameters
-
- Returns
- A property associated to the vertex element if the index is right and a null pointer in other case.
Implemented in te::graph::Graph.
virtual int te::graph::AbstractGraph::getVertexPropertySize |
( |
| ) |
|
|
pure virtual |
Used to verify the number of properties associated to vertex elements.
- Returns
- Integer value with the number of properties.
Implemented in te::graph::Graph.
virtual void te::graph::AbstractGraph::removeEdge |
( |
int |
id | ) |
|
|
pure virtual |
virtual void te::graph::AbstractGraph::removeEdgeProperty |
( |
int |
idx | ) |
|
|
pure virtual |
Remove a property associated to the edge element.
- Parameters
-
Implemented in te::graph::Graph.
virtual void te::graph::AbstractGraph::removeVertex |
( |
int |
id | ) |
|
|
pure virtual |
This function removes the vertex element from graph, also was removed in data source.
- Parameters
-
Implemented in te::graph::Graph.
virtual void te::graph::AbstractGraph::removeVertexProperty |
( |
int |
idx | ) |
|
|
pure virtual |
Remove a property associated to the vertex element.
- Parameters
-
Implemented in te::graph::Graph.
virtual void te::graph::AbstractGraph::update |
( |
Vertex * |
v | ) |
|
|
pure virtual |
Update the vertex element.
- Parameters
-
- Note
- This function turns the dirty flag of current GraphData to true and also the dirty flag of the vertex.
Implemented in te::graph::Graph.
virtual void te::graph::AbstractGraph::update |
( |
Edge * |
e | ) |
|
|
pure virtual |
Update the edge element.
- Parameters
-
- Note
- This function turns the dirty flag of current GraphData to true and also the dirty flag of the edge.
Implemented in te::graph::Graph.
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/graph/core/AbstractGraph.h