Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and destiny information, a set of properties if exist and flags to inform his state (new or dirty). More...
#include <Edge.h>
Public Member Functions | |
| void | addAttribute (int idx, te::dt::AbstractData *ad) | 
| Add a new attribute to this element.  More... | |
| Edge (int id, int vFrom, int vTo, bool isNew=true) | |
| Constructor.  More... | |
| Edge (te::graph::Edge *rhs) | |
| Copy constructor.  More... | |
| std::vector < te::dt::AbstractData * > &  | getAttributes () | 
| It returns the vector of attributes associated with this element.  More... | |
| int | getId () | 
| It returns the edge identification.  More... | |
| int | getIdFrom () | 
| It returns the vertex origin identification.  More... | |
| int | getIdTo () | 
| It returns the vertex destiny identification.  More... | |
| bool | isDirty () | 
| Used to verify the edge state.  More... | |
| bool | isNew () | 
| Flag used to indicate that this element was a new one.  More... | |
| void | removeAttribute (int idx) | 
| Remove a attribute associated with this element.  More... | |
| void | setAttributeVecSize (int size) | 
| This function is used to set the number of attributes associated with the edge elements.  More... | |
| void | setDirty (bool flag) | 
| Flag used to indicate that this element was changed.  More... | |
| ~Edge () | |
| Default destructor.  More... | |
Protected Attributes | |
| std::vector < te::dt::AbstractData * >  | m_attrs | 
| This is the list of all edge attributes.  More... | |
| bool | m_dirty | 
| Flag used to indicate that edge was changed.  More... | |
| int | m_edgeId | 
| This is the edge unique identifier.  More... | |
| bool | m_new | 
| Flag used to indicate if this element is a new one.  More... | |
| int | m_vertexIdFrom | 
| Origin vertex identifier from this edge.  More... | |
| int | m_vertexIdTo | 
| Destiny vertex identifier from this edge.  More... | |
Class used to define the edge struct of a graph. Its compose with a identifier, the vertex origin and destiny information, a set of properties if exist and flags to inform his state (new or dirty).
| te::graph::Edge::Edge | ( | int | id, | 
| int | vFrom, | ||
| int | vTo, | ||
| bool | isNew = true  | 
        ||
| ) | 
| te::graph::Edge::Edge | ( | te::graph::Edge * | rhs | ) | 
Copy constructor.
Definition at line 43 of file Edge.cpp.
References getAttributes(), getId(), getIdFrom(), and getIdTo().
| te::graph::Edge::~Edge | ( | ) | 
| void te::graph::Edge::addAttribute | ( | int | idx, | 
| te::dt::AbstractData * | ad | ||
| ) | 
Add a new attribute to this element.
| idx | Index of the new attribute (must be a valid position) | 
| ad | AbstractData (can be any type of data) | 
Definition at line 91 of file Edge.cpp.
Referenced by te::graph::SequenceLoaderStrategy::loadDataByEdgeId(), te::graph::BoxLoaderStrategy::loadDataByEdgeId(), and te::graph::AbstractGraphLoaderStrategy::loadEdge().
| std::vector< te::dt::AbstractData * > & te::graph::Edge::getAttributes | ( | ) | 
It returns the vector of attributes associated with this element.
Definition at line 81 of file Edge.cpp.
Referenced by te::graph::LayerRenderer::draw(), and Edge().
| int te::graph::Edge::getId | ( | ) | 
It returns the edge identification.
Definition at line 66 of file Edge.cpp.
Referenced by te::graph::DirectedGraph::add(), te::graph::UndirectedGraph::add(), te::graph::BidirectionalGraph::add(), te::graph::Graph::add(), and Edge().
| int te::graph::Edge::getIdFrom | ( | ) | 
It returns the vertex origin identification.
Definition at line 71 of file Edge.cpp.
Referenced by te::graph::DirectedGraph::add(), te::graph::UndirectedGraph::add(), te::graph::BidirectionalGraph::add(), te::graph::AddDeepAttribute::calculateDeepValue(), te::graph::LayerRenderer::draw(), Edge(), te::graph::GetSubGraph::getPredecessor(), te::graph::GetSubGraph::GetSubGraph(), te::graph::BidirectionalGraph::getVertexNeighborhood(), te::graph::UndirectedGraph::getVertexNeighborhood(), te::graph::BoxLoaderStrategy::loadDataByEdgeId(), te::graph::DirectedGraph::removeEdge(), te::graph::UndirectedGraph::removeEdge(), and te::graph::BidirectionalGraph::removeEdge().
| int te::graph::Edge::getIdTo | ( | ) | 
It returns the vertex destiny identification.
Definition at line 76 of file Edge.cpp.
Referenced by te::graph::UndirectedGraph::add(), te::graph::BidirectionalGraph::add(), te::graph::LayerRenderer::draw(), Edge(), te::graph::DirectedGraph::getVertexNeighborhood(), te::graph::BidirectionalGraph::getVertexNeighborhood(), te::graph::UndirectedGraph::getVertexNeighborhood(), te::graph::UndirectedGraph::removeEdge(), and te::graph::BidirectionalGraph::removeEdge().
| bool te::graph::Edge::isDirty | ( | ) | 
Used to verify the edge state.
Definition at line 113 of file Edge.cpp.
Referenced by te::graph::Graph::add().
| bool te::graph::Edge::isNew | ( | ) | 
Flag used to indicate that this element was a new one.
Definition at line 118 of file Edge.cpp.
Referenced by te::graph::Graph::add().
| void te::graph::Edge::removeAttribute | ( | int | idx | ) | 
| void te::graph::Edge::setAttributeVecSize | ( | int | size | ) | 
This function is used to set the number of attributes associated with the edge elements.
| size | Integer value to define the attribute size | 
Definition at line 86 of file Edge.cpp.
Referenced by te::graph::SequenceLoaderStrategy::loadDataByEdgeId(), te::graph::BoxLoaderStrategy::loadDataByEdgeId(), and te::graph::AbstractGraphLoaderStrategy::loadEdge().
| void te::graph::Edge::setDirty | ( | bool | flag | ) | 
Flag used to indicate that this element was changed.
| flag | Boolean value used to indicate the edge state | 
Definition at line 108 of file Edge.cpp.
Referenced by te::graph::Graph::update().
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected |