<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 57 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.
58 delete leafIter.val();
FusionContext(AbstractLeaf *)
Default constructor.
HashTable< AbstractLeaf *, LeafPair *> leaf2Pair__
◆ addPair()
Definition at line 140 of file fusionContext_tpl.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > pairsHeap__
◆ associatedPairs()
template<bool isInitial = false>
Definition at line 225 of file fusionContext.h.
Set< LeafPair *> associatedPairs__(Int2Type< false >)
◆ associatedPairs__() [1/2]
Definition at line 181 of file fusionContext_tpl.h.
182 Set< LeafPair* > retBag;
186 retBag << pairIter.val();
HashTable< AbstractLeaf *, LeafPair *> leaf2Pair__
◆ associatedPairs__() [2/2]
template<bool isInitial = false>
◆ associateLeaf()
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 111 of file fusionContext.h.
bool associateLeaf__(AbstractLeaf *, Int2Type< false >)
◆ associateLeaf__() [1/2]
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 71 of file fusionContext_tpl.h.
75 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 117 of file fusionContext.h.
◆ beginPairs()
template<bool isInitial = false>
Definition at line 180 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 95 of file fusionContext.h.
bool containsAssociatedLeaf__(AbstractLeaf *l, Int2Type< false >)
◆ containsAssociatedLeaf__() [1/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.
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 103 of file fusionContext.h.
◆ deassociateLeaf()
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 148 of file fusionContext.h.
bool deassociateLeaf__(AbstractLeaf *, Int2Type< false >)
◆ deassociateLeaf__() [1/2]
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 120 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 154 of file fusionContext.h.
◆ endPairs()
template<bool isInitial = false>
Definition at line 181 of file fusionContext.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > pairsHeap__
◆ leaf()
template<bool isInitial = false>
◆ leafAssociatedPair()
template<bool isInitial = false>
Definition at line 217 of file fusionContext.h.
HashTable< AbstractLeaf *, LeafPair *> leaf2Pair__
◆ operator delete()
template<bool isInitial = false>
Default constructor.
Definition at line 80 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 77 of file fusionContext.h.
void * allocate(const size_t &objectSize)
Allocates a block.
static SmallObjectAllocator & instance()
◆ removePair()
Definition at line 162 of file fusionContext_tpl.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > pairsHeap__
◆ top()
template<bool isInitial = false>
Definition at line 193 of file fusionContext.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > pairsHeap__
◆ topLikelyhood()
template<bool isInitial = false>
Definition at line 198 of file fusionContext.h.
MultiPriorityQueue< LeafPair *, double, std::less< double > > pairsHeap__
◆ toString()
Definition at line 193 of file fusionContext_tpl.h.
194 std::stringstream ss;
197 <<
"Leaves Heap : " << std::endl;
205 ss <<
"Top pair : " <<
pairsHeap__.top()->toString() << 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 133 of file fusionContext.h.
bool updateAllAssociatedLeaves__(Int2Type< false >)
◆ updateAllAssociatedLeaves__() [1/2]
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 101 of file fusionContext_tpl.h.
104 for (HashTableConstIteratorSafe< AbstractLeaf*, LeafPair* > pairIter
108 pairIter.val()->updateLikelyhood();
109 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 139 of file fusionContext.h.
◆ updateAssociatedLeaf()
template<bool isInitial = false>
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 124 of file fusionContext.h.
bool updateAssociatedLeaf__(AbstractLeaf *, Int2Type< false >)
◆ updateAssociatedLeaf__() [1/2]
- Warning
- : won't delete Associated Pair created (because subsequent fusioncontexts might be using it)
Definition at line 87 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 130 of file fusionContext.h.
◆ updatePair()
Definition at line 151 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: