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