67 template <
bool isInitial >
75 template <
bool isInitial >
80 delete leafIter.val();
92 template <
bool isInitial >
107 template <
bool isInitial >
120 template <
bool isInitial >
127 pairIter.val()->updateLikelyhood();
128 _pairsHeap_.setPriority(pairIter.val(), pairIter.val()->likelyhood());
130 LeafPair* ctop = _pairsHeap_.empty() ? nullptr : _pairsHeap_.top();
138 template <
bool isInitial >
156 template <
bool isInitial >
167 template <
bool isInitial >
178 template <
bool isInitial >
195 template <
bool isInitial >
199 retBag << pairIter.val();
204 template <
bool isInitial >
207 if (
_leaf_) ss = std::format(
"Associated Leaf : {}\nLeaves Heap : \n",
_leaf_->toString());
215 template <
bool isInitial >
220 template <
bool isInitial >
225 template <
bool isInitial >
230 template <
bool isInitial >
235 template <
bool isInitial >
240 template <
bool isInitial >
245 template <
bool isInitial >
250 template <
bool isInitial >
255 template <
bool isInitial >
260 template <
bool isInitial >
265 template <
bool isInitial >
270 template <
bool isInitial >
275 template <
bool isInitial >
280 template <
bool isInitial >
285 template <
bool isInitial >
290 template <
bool isInitial >
295 template <
bool isInitial >
300 template <
bool isInitial >
305 template <
bool isInitial >
310 template <
bool isInitial >
315 template <
bool isInitial >
<agrum/FMDP/learning/datastructure/leaves/abstractLeaf.h>
bool _containsAssociatedLeaf_(AbstractLeaf *l, Int2Type< false >)
bool addPair(LeafPair *p)
bool removePair(LeafPair *p)
Set< LeafPair * > _associatedPairs_(Int2Type< false >)
FusionContext(AbstractLeaf *)
Default constructor.
MultiPriorityQueue< LeafPair *, double, std::less< double > > _pairsHeap_
bool updatePair(LeafPair *p)
bool updateAllAssociatedLeaves()
bool updateAssociatedLeaf(AbstractLeaf *l)
bool _deassociateLeaf_(AbstractLeaf *, Int2Type< false >)
LeafPair * leafAssociatedPair(AbstractLeaf *l)
bool _updateAllAssociatedLeaves_(Int2Type< false >)
bool containsAssociatedLeaf(AbstractLeaf *l)
~FusionContext()
Default destructor.
bool deassociateLeaf(AbstractLeaf *l)
pair_iterator beginPairs()
Set< LeafPair * > associatedPairs()
bool _updateAssociatedLeaf_(AbstractLeaf *, Int2Type< false >)
bool associateLeaf(AbstractLeaf *l)
bool _associateLeaf_(AbstractLeaf *, Int2Type< false >)
HashTable< AbstractLeaf *, LeafPair * > _leaf2Pair_
Safe Const Iterators for hashtables.
<agrum/FMDP/learning/datastructure/leaves/leafPair.h>
double likelyhood()
Updates GStatistic.
static SmallObjectAllocator & instance()
void * allocate(const size_t &objectSize)
Allocates a block.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
Headers of the Fusion Context class.
gum is the global namespace for all aGrUM entities
HashTableConstIteratorSafe< LeafPair *, std::vector< Size > > pair_iterator