29 #ifndef __TERRALIB_GRAPH_INTERNAL_MEMORYITERATOR_H
30 #define __TERRALIB_GRAPH_INTERNAL_MEMORYITERATOR_H
33 #include "../Config.h"
This class defines a commun interface to represents a graph iterator class. The main diferency to ano...
Abstract class used to define the main functions of graph struct. All graph implementations must used...
This class defines a commun interface to represents a graph iterator class. The main diferency to ano...
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
MemoryIterator(te::graph::AbstractGraph *g)
Default constructor.
virtual bool isEdgeIteratorAfterEnd()
Used to check the iterator position.
virtual te::graph::Edge * getNextEdge()
It returns a pointer to the next edge element of a graph.
virtual te::graph::Vertex * getPreviousVertex()
It returns a pointer to the previous vertex element of a graph.
std::map< int, Edge * > m_edgeMap
This map contains all edges from this graph.
virtual bool isVertexIteratorAfterEnd()
Used to check the iterator position.
virtual size_t getVertexInteratorCount()
It returns the number of elements of this iterator.
virtual te::graph::Edge * getPreviousEdge()
It returns a pointer to the previous edge element of a graph.
virtual ~MemoryIterator()
Virtual destructor.
virtual te::graph::Vertex * getNextVertex()
It returns a pointer to the next vertex element of a graph.
std::map< int, Vertex * > m_vertexMap
This map contains all vertexs from this graph.
std::map< int, Edge * >::iterator m_edgeMapIt
Iterator for all edges from this graph.
virtual te::graph::Edge * getFirstEdge()
It returns a pointer to the first edge element of a graph.
virtual size_t getEdgeInteratorCount()
It returns the number of elements of this iterator.
std::map< int, Vertex * >::iterator m_vertexMapIt
Iterator for all vertexs from this graph.
virtual te::graph::Vertex * getFirstVertex()
It returns a pointer to the first vertex element of a graph.
From the point of view of graph theory, vertices are treated as featureless and indivisible objects,...
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.