30 #include "../../datatype/AbstractData.h" 31 #include "../../common/STLUtils.h" 36 m_vertexIdFrom(vFrom),
void setAttributeVecSize(int size)
This function is used to set the number of attributes associated with the edge elements.
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and...
int m_vertexIdFrom
Origin vertex identifier from this edge.
bool m_dirty
Flag used to indicate that edge was changed.
int getId()
It returns the edge identification.
std::vector< te::dt::AbstractData * > m_attrs
This is the list of all edge attributes.
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...
~Edge()
Default destructor.
void removeAttribute(int idx)
Remove a attribute associated with this element.
A base class for values that can be retrieved from the data access module.
bool isNew()
Flag used to indicate that this element was a new one.
int getIdFrom()
It returns the vertex origin identification.
void setDirty(bool flag)
Flag used to indicate that this element was changed.
int m_vertexIdTo
Destiny vertex identifier from this edge.
int m_edgeId
This is the edge unique identifier.
Edge(int id, int vFrom, int vTo, bool isNew=true)
Constructor.
void addAttribute(int idx, te::dt::AbstractData *ad)
Add a new attribute to this element.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
bool m_new
Flag used to indicate if this element is a new one.
std::vector< te::dt::AbstractData * > & getAttributes()
It returns the vector of attributes associated with this element.
int getIdTo()
It returns the vertex destiny identification.