#include <SequenceIterator.h>
Public Member Functions | |
SequenceIterator (te::graph::AbstractGraph *g) | |
Default constructor. More... | |
virtual | ~SequenceIterator () |
Virtual destructor. More... | |
Vertex Access Methods | |
Method used to access vertex elements from a graph. | |
virtual te::graph::Vertex * | getFirstVertex () |
It returns a pointer to the first vertex element of a graph. More... | |
virtual te::graph::Edge * | getFirstEdge () |
It returns a pointer to the first edge element of a graph. More... | |
Vertex Iterator Methods | |
Method used to access vertex elements from a graph. | |
virtual te::graph::Vertex * | getNextVertex () |
It returns a pointer to the next vertex element of a graph. More... | |
virtual te::graph::Vertex * | getPreviousVertex () |
It returns a pointer to the previous vertex element of a graph. More... | |
virtual bool | isVertexIteratorAfterEnd () |
Used to check the iterator position. More... | |
virtual size_t | getVertexInteratorCount () |
It returns the number of elements of this iterator. More... | |
void | listIsolatedVertex (bool flag) |
Used to set that the isolated vertex must be listed. More... | |
virtual te::graph::Edge * | getNextEdge () |
It returns a pointer to the next edge element of a graph. More... | |
virtual te::graph::Edge * | getPreviousEdge () |
It returns a pointer to the previous edge element of a graph. More... | |
virtual bool | isEdgeIteratorAfterEnd () |
Used to check the iterator position. More... | |
virtual size_t | getEdgeInteratorCount () |
It returns the number of elements of this iterator. More... | |
Protected Attributes | |
std::auto_ptr< te::da::DataSet > | m_edgeQuery |
Attribute used to keep the edge iterator. More... | |
te::graph::AbstractGraph * | m_graph |
Pointer to a abstract graph used to access the elements. More... | |
bool | m_listIsolatedVertex |
Flag used to indicated that the isolated vertex will be listed. More... | |
std::auto_ptr< te::da::DataSet > | m_vertexQuery |
Attribute used to keep the vertex iterator. More... | |
Definition at line 65 of file SequenceIterator.h.
te::graph::SequenceIterator::SequenceIterator | ( | te::graph::AbstractGraph * | g | ) |
Default constructor.
Definition at line 39 of file SequenceIterator.cpp.
|
virtual |
Virtual destructor.
Definition at line 43 of file SequenceIterator.cpp.
|
virtualinherited |
It returns the number of elements of this iterator.
Reimplemented in te::graph::MemoryIterator.
Definition at line 166 of file AbstractIterator.cpp.
References TE_TR.
Referenced by te::graph::QueryGraphBuilder::build().
|
virtual |
It returns a pointer to the first edge element of a graph.
Implements te::graph::AbstractIterator.
Definition at line 158 of file SequenceIterator.cpp.
References te::graph::Globals::sm_tableEdgeModelAttrId, and TE_TR.
|
virtual |
It returns a pointer to the first vertex element of a graph.
Implements te::graph::AbstractIterator.
Definition at line 47 of file SequenceIterator.cpp.
References te::da::Field::getExpression(), te::graph::Globals::sm_tableEdgeModelAttrVFrom, te::graph::Globals::sm_tableEdgeModelAttrVTo, te::graph::Globals::sm_tableVertexModelAttrId, and TE_TR.
Referenced by te::graph::AddDeepAttribute::AddDeepAttribute(), and te::graph::AddRasterAttribute::AddRasterAttribute().
|
virtualinherited |
It returns a pointer to the next edge element of a graph.
Reimplemented in te::graph::MemoryIterator.
Definition at line 114 of file AbstractIterator.cpp.
References te::graph::Globals::sm_tableEdgeModelAttrId, and TE_TR.
Referenced by te::graph::QueryGraphBuilder::build(), and te::graph::LayerRenderer::drawDataSourceGraph().
|
virtualinherited |
It returns a pointer to the next vertex element of a graph.
Reimplemented in te::graph::MemoryIterator.
Definition at line 47 of file AbstractIterator.cpp.
References te::graph::Globals::sm_tableVertexModelAttrId, and TE_TR.
Referenced by te::graph::AddDeepAttribute::AddDeepAttribute(), te::graph::AddRasterAttribute::AddRasterAttribute(), and te::graph::QueryGraphBuilder::build().
|
virtualinherited |
It returns a pointer to the previous edge element of a graph.
Reimplemented in te::graph::MemoryIterator.
Definition at line 135 of file AbstractIterator.cpp.
References te::graph::Globals::sm_tableEdgeModelAttrId, and TE_TR.
|
virtualinherited |
It returns a pointer to the previous vertex element of a graph.
Reimplemented in te::graph::MemoryIterator.
Definition at line 68 of file AbstractIterator.cpp.
References te::graph::Globals::sm_tableVertexModelAttrId, and TE_TR.
|
virtualinherited |
It returns the number of elements of this iterator.
Reimplemented in te::graph::MemoryIterator.
Definition at line 99 of file AbstractIterator.cpp.
References TE_TR.
Referenced by te::graph::AddDeepAttribute::AddDeepAttribute(), te::graph::AddRasterAttribute::AddRasterAttribute(), and te::graph::QueryGraphBuilder::build().
|
virtualinherited |
Used to check the iterator position.
Reimplemented in te::graph::MemoryIterator.
Definition at line 156 of file AbstractIterator.cpp.
References TE_TR.
Referenced by te::graph::QueryGraphBuilder::build(), and te::graph::LayerRenderer::drawDataSourceGraph().
|
virtualinherited |
Used to check the iterator position.
Reimplemented in te::graph::MemoryIterator.
Definition at line 89 of file AbstractIterator.cpp.
References TE_TR.
Referenced by te::graph::AddDeepAttribute::AddDeepAttribute(), te::graph::AddRasterAttribute::AddRasterAttribute(), and te::graph::QueryGraphBuilder::build().
|
inherited |
Used to set that the isolated vertex must be listed.
flag | Flag used to set. |
Definition at line 109 of file AbstractIterator.cpp.
|
protectedinherited |
Attribute used to keep the edge iterator.
Definition at line 168 of file AbstractIterator.h.
|
protectedinherited |
Pointer to a abstract graph used to access the elements.
Definition at line 165 of file AbstractIterator.h.
|
protectedinherited |
Flag used to indicated that the isolated vertex will be listed.
Definition at line 170 of file AbstractIterator.h.
|
protectedinherited |
Attribute used to keep the vertex iterator.
Definition at line 167 of file AbstractIterator.h.