29 #ifndef __TERRALIB_GRAPH_INTERNAL_EDGE_H
30 #define __TERRALIB_GRAPH_INTERNAL_EDGE_H
33 #include "../Config.h"
42 namespace dt {
class AbstractData; }
74 Edge(
int id,
int vFrom,
int vTo,
bool isNew =
true);
A base class for values that can be retrieved from the data access module.
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
bool m_dirty
Flag used to indicate that edge was changed.
void setDirty(bool flag)
Flag used to indicate that this element was changed.
void setAttributeVecSize(int size)
This function is used to set the number of attributes associated with the edge elements.
bool isDirty()
Used to verify the edge state.
std::vector< te::dt::AbstractData * > m_attrs
This is the list of all edge attributes.
int m_edgeId
This is the edge unique identifier.
int m_vertexIdFrom
Origin vertex identifier from this edge.
bool isNew()
Flag used to indicate that this element was a new one.
Edge(te::graph::Edge *rhs)
Copy constructor.
void removeAttribute(int idx)
Remove a attribute associated with this element.
~Edge()
Default destructor.
int getIdTo()
It returns the vertex destiny identification.
bool m_new
Flag used to indicate if this element is a new one.
void addAttribute(int idx, te::dt::AbstractData *ad)
Add a new attribute to this element.
std::vector< te::dt::AbstractData * > & getAttributes()
It returns the vector of attributes associated with this element.
int getIdFrom()
It returns the vertex origin identification.
int getId()
It returns the edge identification.
int m_vertexIdTo
Destiny vertex identifier from this edge.
Edge(int id, int vFrom, int vTo, bool isNew=true)
Constructor.
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.