92 for (
const auto arc :
set)
125 for (
const auto& arc :
set)
bool contains(const Key &k) const
Indicates whether a given elements belong to the set.
void __checkParents(const NodeId id) const
when the ArcGraphPart contains no arc ingoing into a given node, this function adds an empty set entr...
virtual void addArc(const NodeId tail, const NodeId head)
insert a new arc into the ArcGraphPart
bool empty() const noexcept
Indicates whether the set is the empty set.
Classes for directed edge sets.
virtual void eraseArc(const Arc &arc)
removes an arc from the ArcGraphPart
void erase(const Key &k)
Erases an element from the set.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
NodeId head() const
returns the head of the arc
void __checkChildren(const NodeId id) const
when the ArcGraphPart contains no arc outgoing from a given node, this function adds an empty set ent...
const iterator_safe & endSafe() const noexcept
The usual safe end iterator to parse the set.
void _eraseSetOfArcs(const ArcSet &set)
a (virtualized) function to remove a given set of arcs
bool emptyArcs() const
indicates wether the ArcGraphPart contains any arc
bool operator!=(const ArcGraphPart &p) const
tests whether two ArcGraphParts contain different arcs
#define GUM_EMIT2(signal, arg1, arg2)
Size sizeArcs() const
indicates the number of arcs stored within the ArcGraphPart
The base class for all directed edgesThis class is used as a basis for manipulating all directed edge...
const NodeSet & parents(const NodeId id) const
returns the set of nodes with arc ingoing to a given node
bool operator==(const ArcGraphPart &p) const
tests whether two ArcGraphParts contain the same arcs
void _unvirtualizedEraseSetOfArcs(const ArcSet &set)
similar to _eraseSetOfArcs except that it is unvirtualized
void eraseChildren(const NodeId id)
removes all the children of a given node
NodeProperty< NodeSet *> __parents
for each arc, the sets of its parents
const NodeSet & children(const NodeId id) const
returns the set of nodes with arc outgoing from a given node
Signaler2< NodeId, NodeId > onArcAdded
const ArcSet & arcs() const
returns the set of arcs stored within the ArcGraphPart
NodeProperty< NodeSet *> __children
for each arc, the set of its children
iterator_safe beginSafe() const
The usual safe begin iterator to parse the set.
void unvirtualizedEraseChildren(const NodeId id)
same function as eraseChildren but without any virtual call to an erase
void unvirtualizedEraseParents(const NodeId id)
same function as eraseParents but without any virtual call to an erase
Signaler2< NodeId, NodeId > onArcDeleted
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size size() const noexcept
Returns the number of elements in the set.
Set< Arc > __arcs
the set of all the arcs contained within the ArcGraphPart
bool existsArc(const Arc &arc) const
indicates whether a given arc exists
Size NodeId
Type for node ids.
void insert(const Key &k)
Inserts a new element into the set.
NodeId tail() const
returns the tail of the arc
void eraseParents(const NodeId id)
erase all the parents of a given node