Go to the documentation of this file.
30 #ifndef __TERRALIB_GRAPH_INTERNAL_VERTEX_H
31 #define __TERRALIB_GRAPH_INTERNAL_VERTEX_H
34 #include "../Config.h"
49 namespace dt {
class AbstractData; }
208 #endif // __TERRALIB_GRAPH_INTERNAL_VERTEX_H
std::set< int > & getPredecessors()
Returns the Predecessors vector.
std::set< int > m_predecessors
List of all input edges (used in bidirectional graph).
~Vertex()
Default destructor.
std::set< int > & getNeighborhood()
Returns the Neighborhood vector.
Vertex(int id, bool isNew=true)
Constructor.
std::set< int > & getSuccessors()
Returns the Successors vector.
Vertex(te::graph::Vertex *rhs)
Copy constructor.
std::vector< te::dt::AbstractData * > & getAttributes()
It returns the vector of attributes associated with this element.
void removeAttribute(int idx)
Remove a attribute associated with this element.
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.
bool isNew()
Flag used to indicate that this element was a new one.
bool m_new
Flag used to indicate if this element is a new one.
std::set< int > m_neighborhood
List of all neighbors edges (used in undirectional graph).
int m_vertexId
This is the vertex unique identifier.
bool m_dirty
Flag used to indicate that vertex was changed.
int getId()
It returns the vertex id.
A base class for values that can be retrieved from the data access module.
void setDirty(bool flag)
Flag used to indicate that this element was changed.
bool isDirty()
Used to verify the vertex state.
std::set< int > m_successors
List of all output edges (used in directional graph).
std::vector< te::dt::AbstractData * > m_attrs
This is the list of all vertex attributes.
void addAttribute(int idx, te::dt::AbstractData *ad)
Add a new attribute to this element.
void setAttributeVecSize(int size)
This function is used to set the number of attributes associated with the vertex elements.