![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
<agrum/FMDP/learning/datastructure/leaves/fusionContext.h> More...
#include <fusionContext.h>
Public Member Functions | |
| std::string | toString () |
Constructor & destructor. | |
| FusionContext (AbstractLeaf *) | |
| Default constructor. | |
| ~FusionContext () | |
| Default destructor. | |
| void * | operator new (size_t s) |
| Allocators and Deallocators redefinition. | |
| void | operator delete (void *p) |
| Default constructor. | |
Pair handling methods | |
| bool | addPair (LeafPair *p) |
| bool | updatePair (LeafPair *p) |
| bool | removePair (LeafPair *p) |
| pair_iterator | beginPairs () |
| pair_iterator | endPairs () |
Best Pair access methods | |
| LeafPair * | top () |
| double | topLikelyhood () |
Private Attributes | |
| MultiPriorityQueue< LeafPair *, double, std::less< double > > | _pairsHeap_ |
| HashTable< AbstractLeaf *, LeafPair * > | _leaf2Pair_ |
| AbstractLeaf * | _leaf_ |
Associated Leaves Handling methods | |
| bool | containsAssociatedLeaf (AbstractLeaf *l) |
| bool | associateLeaf (AbstractLeaf *l) |
| bool | updateAssociatedLeaf (AbstractLeaf *l) |
| bool | updateAllAssociatedLeaves () |
| bool | deassociateLeaf (AbstractLeaf *l) |
| bool | _containsAssociatedLeaf_ (AbstractLeaf *l, Int2Type< false >) |
| bool | _containsAssociatedLeaf_ (AbstractLeaf *, Int2Type< true >) |
| bool | _associateLeaf_ (AbstractLeaf *, Int2Type< false >) |
| bool | _associateLeaf_ (AbstractLeaf *, Int2Type< true >) |
| bool | _updateAssociatedLeaf_ (AbstractLeaf *, Int2Type< false >) |
| bool | _updateAssociatedLeaf_ (AbstractLeaf *, Int2Type< true >) |
| bool | _updateAllAssociatedLeaves_ (Int2Type< false >) |
| bool | _updateAllAssociatedLeaves_ (Int2Type< true >) |
| bool | _deassociateLeaf_ (AbstractLeaf *, Int2Type< false >) |
| bool | _deassociateLeaf_ (AbstractLeaf *, Int2Type< true >) |
FusionContext Leaf and associated pairs handling methods | |
| AbstractLeaf * | leaf () |
| LeafPair * | leafAssociatedPair (AbstractLeaf *l) |
| Set< LeafPair * > | associatedPairs () |
| Set< LeafPair * > | _associatedPairs_ (Int2Type< false >) |
| Set< LeafPair * > | _associatedPairs_ (Int2Type< true >) |
<agrum/FMDP/learning/datastructure/leaves/fusionContext.h>
Contains leaves situation after a merging have been made
Definition at line 73 of file fusionContext.h.
| gum::FusionContext< isInitial >::FusionContext | ( | AbstractLeaf * | leaf | ) |
Default constructor.
Definition at line 67 of file fusionContext_tpl.h.
References FusionContext(), _leaf_, and leaf().
Referenced by FusionContext(), ~FusionContext(), and operator delete().
| gum::FusionContext< isInitial >::~FusionContext | ( | ) |
Default destructor.
Definition at line 75 of file fusionContext_tpl.h.
References FusionContext(), _leaf2Pair_, and _leaf_.
|
private |
Definition at line 195 of file fusionContext_tpl.h.
References _leaf2Pair_.
Referenced by associatedPairs().
|
inlineprivate |
Definition at line 243 of file fusionContext.h.
|
private |
Definition at line 92 of file fusionContext_tpl.h.
References _leaf2Pair_, _leaf_, _pairsHeap_, and gum::LeafPair::likelyhood().
Referenced by associateLeaf().
|
inlineprivate |
Definition at line 132 of file fusionContext.h.
|
inlineprivate |
Definition at line 120 of file fusionContext.h.
|
inlineprivate |
Definition at line 116 of file fusionContext.h.
References _leaf2Pair_.
Referenced by containsAssociatedLeaf().
|
private |
Definition at line 138 of file fusionContext_tpl.h.
References _leaf2Pair_, and _pairsHeap_.
Referenced by deassociateLeaf().
|
inlineprivate |
Definition at line 170 of file fusionContext.h.
|
private |
Definition at line 120 of file fusionContext_tpl.h.
References _leaf2Pair_, and _pairsHeap_.
Referenced by updateAllAssociatedLeaves().
|
inlineprivate |
Definition at line 156 of file fusionContext.h.
|
private |
Definition at line 107 of file fusionContext_tpl.h.
References _leaf2Pair_, and _pairsHeap_.
Referenced by updateAssociatedLeaf().
|
inlineprivate |
Definition at line 146 of file fusionContext.h.
| bool gum::FusionContext< isInitial >::addPair | ( | LeafPair * | p | ) |
Definition at line 156 of file fusionContext_tpl.h.
References _pairsHeap_, and gum::LeafPair::likelyhood().
Referenced by gum::LeafAggregator::update().
|
inline |
Definition at line 238 of file fusionContext.h.
References _associatedPairs_().
|
inline |
Definition at line 127 of file fusionContext.h.
References _associateLeaf_().
Referenced by gum::LeafAggregator::update().
|
inline |
|
inline |
Definition at line 111 of file fusionContext.h.
References _containsAssociatedLeaf_().
Referenced by gum::LeafAggregator::update().
|
inline |
Definition at line 165 of file fusionContext.h.
References _deassociateLeaf_().
|
inline |
|
inline |
Definition at line 226 of file fusionContext.h.
References _leaf_.
Referenced by FusionContext().
|
inline |
|
inline |
Default constructor.
Definition at line 95 of file fusionContext.h.
References FusionContext(), gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
|
inline |
Allocators and Deallocators redefinition.
Definition at line 93 of file fusionContext.h.
References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
| bool gum::FusionContext< isInitial >::removePair | ( | LeafPair * | p | ) |
|
inline |
|
inline |
| std::string gum::FusionContext< isInitial >::toString | ( | ) |
Definition at line 204 of file fusionContext_tpl.h.
References _leaf_, and _pairsHeap_.
|
inline |
Definition at line 149 of file fusionContext.h.
References _updateAllAssociatedLeaves_().
|
inline |
Definition at line 139 of file fusionContext.h.
References _updateAssociatedLeaf_().
| bool gum::FusionContext< isInitial >::updatePair | ( | LeafPair * | p | ) |
Definition at line 167 of file fusionContext_tpl.h.
|
private |
Definition at line 253 of file fusionContext.h.
Referenced by ~FusionContext(), _associatedPairs_(), _associateLeaf_(), _containsAssociatedLeaf_(), _deassociateLeaf_(), _updateAllAssociatedLeaves_(), _updateAssociatedLeaf_(), and leafAssociatedPair().
|
private |
Definition at line 255 of file fusionContext.h.
Referenced by FusionContext(), ~FusionContext(), _associateLeaf_(), leaf(), and toString().
|
private |
Definition at line 251 of file fusionContext.h.
Referenced by _associateLeaf_(), _deassociateLeaf_(), _updateAllAssociatedLeaves_(), _updateAssociatedLeaf_(), addPair(), beginPairs(), endPairs(), removePair(), top(), topLikelyhood(), and toString().