33 #endif // GUM_NOINLINE 39 __holes_size(holes_size), __holes_resize_policy(holes_resize_policy),
40 __endIteratorSafe(*this), __boundVal(0) {
128 stream <<
set.toString();
176 if (_pos >= _nodes->bound()) {
177 _pos = _nodes->bound();
bool contains(const Key &k) const
Indicates whether a given elements belong to the set.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual void addNodeWithId(const NodeId id)
try to insert a node with the given id
bool empty() const noexcept
Indicates whether the set is the empty set.
NodeSet * __holes
the set of nodes not contained in the NodeGraphPart in the interval 1..__max
NodeGraphPartIteratorSafe __endIteratorSafe
the end iterator (used to speed-up parsings of the NodeGraphPart)
#define GUM_EMIT1(signal, arg1)
Set< NodeId > NodeSet
Some typdefs and define for shortcuts ...
bool __holes_resize_policy
value for __holes configuration
void __addHole(NodeId id)
to add a hole.
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.
bool __inHoles(NodeId id) const
virtual ~NodeGraphPart()
destructor
NodeId __boundVal
the id below which NodeIds may belong to the NodeGraphPart
Size __holes_size
value for __holes configuration
std::ostream & operator<<(std::ostream &output, const BayesNet< GUM_SCALAR > &bn)
Prints map's DAG in output using the Graphviz-dot format.
void __updateEndIteratorSafe()
updating endIterator (always at __max+1)
NodeGraphPart(Size holes_size=HashTableConst::default_size, bool holes_resize_policy=true)
default constructor
Signaler1< NodeId > onNodeAdded
std::string toString() const
a function to display the set of nodes
Class for node sets in graph.
virtual void clear()
alias for clearNodes
NodeId bound() const
returns a number n such that all node ids are strictly lower than n
void populateNodes(const NodeGraphPart &s)
populateNodes clears *this and fills it with the same nodes as "s"
void __eraseHole(NodeId id)
to delete hole.
void __clearNodes()
code for clearing nodes (called twice)
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Signaler1< NodeId > onNodeDeleted
void whenNodeDeleted(const void *src, NodeId id)
called when a node is deleted in the iterated NodeGraphPart
Size NodeId
Type for node ids.
void insert(const Key &k)
Inserts a new element into the set.
#define GUM_ERROR(type, msg)