Go to the documentation of this file.
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);
177 #endif // __TERRALIB_GRAPH_INTERNAL_EDGE_H
int getIdFrom()
It returns the vertex origin identification.
bool isDirty()
Used to verify the edge state.
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
void removeAttribute(int idx)
Remove a attribute associated with this element.
int m_edgeId
This is the edge unique identifier.
void setAttributeVecSize(int size)
This function is used to set the number of attributes associated with the edge elements.
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.
~Edge()
Default destructor.
bool m_dirty
Flag used to indicate that edge was changed.
int getIdTo()
It returns the vertex destiny identification.
void addAttribute(int idx, te::dt::AbstractData *ad)
Add a new attribute to this element.
int getId()
It returns the edge identification.
Edge(te::graph::Edge *rhs)
Copy constructor.
void setDirty(bool flag)
Flag used to indicate that this element was changed.
A base class for values that can be retrieved from the data access module.
bool m_new
Flag used to indicate if this element is a new one.
int m_vertexIdFrom
Origin vertex identifier from this edge.
bool isNew()
Flag used to indicate that this element was a new one.
std::vector< te::dt::AbstractData * > & getAttributes()
It returns the vector of attributes associated with this element.
int m_vertexIdTo
Destiny vertex identifier from this edge.
std::vector< te::dt::AbstractData * > m_attrs
This is the list of all edge attributes.