<agrum/FMDP/learning/datastructure/leaves/fusionContext.h>
More...
#include <fusionContext.h>
template<bool isInitial = false>
class gum::FusionContext< isInitial >
<agrum/FMDP/learning/datastructure/leaves/fusionContext.h>
Contains leaves situation after a merging have been made
Definition at line 56 of file fusionContext.h.
◆ FusionContext()
Default constructor.
Definition at line 44 of file fusionContext_tpl.h.
FusionContext(AbstractLeaf *)
Default constructor.
◆ ~FusionContext()
Default destructor.
Definition at line 52 of file fusionContext_tpl.h.
56 delete leafIter.val();
FusionContext(AbstractLeaf *)
Default constructor.
HashTable< AbstractLeaf *, LeafPair *> _leaf2Pair_
◆ _associatedPairs_() [1/2]
Definition at line 174 of file fusionContext_tpl.h.
175 Set< LeafPair* > retBag;
177 retBag << pairIter.val();
HashTable< AbstractLeaf *, LeafPair *> _leaf2Pair_
◆ _associatedPairs_() [2/2]
template<bool isInitial = false>
◆ _associateLeaf_() [1/2]
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 69 of file fusionContext_tpl.h.
72 LeafPair* p =
new LeafPair(l,
_leaf_);
MultiPriorityQueue< LeafPair *, double, std::less< double > > _pairsHeap_
HashTable< AbstractLeaf *, LeafPair *> _leaf2Pair_
◆ _associateLeaf_() [2/2]
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 110 of file fusionContext.h.
◆ _containsAssociatedLeaf_() [1/2]
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 97 of file fusionContext.h.
HashTable< AbstractLeaf *, LeafPair *> _leaf2Pair_
◆ _containsAssociatedLeaf_() [2/2]
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 100 of file fusionContext.h.
◆ _deassociateLeaf_() [1/2]
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 115 of file fusionContext_tpl.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > _pairsHeap_
HashTable< AbstractLeaf *, LeafPair *> _leaf2Pair_
◆ _deassociateLeaf_() [2/2]
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 145 of file fusionContext.h.
◆ _updateAllAssociatedLeaves_() [1/2]
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 97 of file fusionContext_tpl.h.
100 for (HashTableConstIteratorSafe< AbstractLeaf*, LeafPair* > pairIter =
_leaf2Pair_.cbeginSafe();
103 pairIter.val()->updateLikelyhood();
104 _pairsHeap_.setPriority(pairIter.val(), pairIter.val()->likelyhood());
MultiPriorityQueue< LeafPair *, double, std::less< double > > _pairsHeap_
HashTable< AbstractLeaf *, LeafPair *> _leaf2Pair_
◆ _updateAllAssociatedLeaves_() [2/2]
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 132 of file fusionContext.h.
◆ _updateAssociatedLeaf_() [1/2]
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 84 of file fusionContext_tpl.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > _pairsHeap_
HashTable< AbstractLeaf *, LeafPair *> _leaf2Pair_
◆ _updateAssociatedLeaf_() [2/2]
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 123 of file fusionContext.h.
◆ addPair()
Definition at line 134 of file fusionContext_tpl.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > _pairsHeap_
◆ associatedPairs()
template<bool isInitial = false>
Definition at line 212 of file fusionContext.h.
Set< LeafPair *> _associatedPairs_(Int2Type< false >)
◆ associateLeaf()
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 106 of file fusionContext.h.
bool _associateLeaf_(AbstractLeaf *, Int2Type< false >)
◆ beginPairs()
template<bool isInitial = false>
Definition at line 171 of file fusionContext.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > _pairsHeap_
◆ containsAssociatedLeaf()
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 92 of file fusionContext.h.
bool _containsAssociatedLeaf_(AbstractLeaf *l, Int2Type< false >)
◆ deassociateLeaf()
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 141 of file fusionContext.h.
bool _deassociateLeaf_(AbstractLeaf *, Int2Type< false >)
◆ endPairs()
template<bool isInitial = false>
Definition at line 172 of file fusionContext.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > _pairsHeap_
◆ leaf()
template<bool isInitial = false>
◆ leafAssociatedPair()
template<bool isInitial = false>
Definition at line 206 of file fusionContext.h.
HashTable< AbstractLeaf *, LeafPair *> _leaf2Pair_
◆ operator delete()
template<bool isInitial = false>
Default constructor.
Definition at line 77 of file fusionContext.h.
FusionContext(AbstractLeaf *)
Default constructor.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
static SmallObjectAllocator & instance()
◆ operator new()
template<bool isInitial = false>
Allocators and Deallocators redefinition.
Definition at line 76 of file fusionContext.h.
void * allocate(const size_t &objectSize)
Allocates a block.
static SmallObjectAllocator & instance()
◆ removePair()
Definition at line 156 of file fusionContext_tpl.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > _pairsHeap_
◆ top()
template<bool isInitial = false>
Definition at line 184 of file fusionContext.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > _pairsHeap_
◆ topLikelyhood()
template<bool isInitial = false>
Definition at line 189 of file fusionContext.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > _pairsHeap_
◆ toString()
Definition at line 184 of file fusionContext_tpl.h.
185 std::stringstream ss;
188 <<
"Leaves Heap : " << std::endl;
MultiPriorityQueue< LeafPair *, double, std::less< double > > _pairsHeap_
virtual std::string toString()=0
◆ updateAllAssociatedLeaves()
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 126 of file fusionContext.h.
bool _updateAllAssociatedLeaves_(Int2Type< false >)
◆ updateAssociatedLeaf()
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 117 of file fusionContext.h.
bool _updateAssociatedLeaf_(AbstractLeaf *, Int2Type< false >)
◆ updatePair()
Definition at line 145 of file fusionContext_tpl.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > _pairsHeap_
◆ _leaf2Pair_
template<bool isInitial = false>
◆ _leaf_
template<bool isInitial = false>
◆ _pairsHeap_
template<bool isInitial = false>
The documentation for this class was generated from the following files: