![]() |
aGrUM 3.0.0
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 68 of file fusionContext_tpl.h.
References FusionContext(), _leaf_, and leaf().
Referenced by FusionContext(), and ~FusionContext().
| gum::FusionContext< isInitial >::~FusionContext | ( | ) |
Default destructor.
Definition at line 76 of file fusionContext_tpl.h.
References FusionContext(), _leaf2Pair_, and _leaf_.
|
private |
Definition at line 196 of file fusionContext_tpl.h.
References _leaf2Pair_.
Referenced by associatedPairs().
|
private |
Definition at line 316 of file fusionContext_tpl.h.
|
private |
Definition at line 93 of file fusionContext_tpl.h.
References _pairsHeap_.
Referenced by associateLeaf().
|
private |
Definition at line 246 of file fusionContext_tpl.h.
|
private |
Definition at line 236 of file fusionContext_tpl.h.
|
private |
Definition at line 231 of file fusionContext_tpl.h.
Referenced by containsAssociatedLeaf().
|
private |
Definition at line 139 of file fusionContext_tpl.h.
References _pairsHeap_.
Referenced by deassociateLeaf().
|
private |
Definition at line 276 of file fusionContext_tpl.h.
|
private |
Definition at line 121 of file fusionContext_tpl.h.
References _pairsHeap_.
Referenced by updateAllAssociatedLeaves().
|
private |
Definition at line 266 of file fusionContext_tpl.h.
|
private |
Definition at line 108 of file fusionContext_tpl.h.
Referenced by updateAssociatedLeaf().
|
private |
Definition at line 256 of file fusionContext_tpl.h.
| bool gum::FusionContext< isInitial >::addPair | ( | LeafPair * | p | ) |
Definition at line 157 of file fusionContext_tpl.h.
Referenced by gum::LeafAggregator::update().
| Set< LeafPair * > gum::FusionContext< isInitial >::associatedPairs | ( | ) |
Definition at line 311 of file fusionContext_tpl.h.
References _associatedPairs_().
| bool gum::FusionContext< isInitial >::associateLeaf | ( | AbstractLeaf * | l | ) |
Definition at line 241 of file fusionContext_tpl.h.
References _associateLeaf_().
Referenced by gum::LeafAggregator::update().
| pair_iterator gum::FusionContext< isInitial >::beginPairs | ( | ) |
Definition at line 281 of file fusionContext_tpl.h.
References _pairsHeap_.
| bool gum::FusionContext< isInitial >::containsAssociatedLeaf | ( | AbstractLeaf * | l | ) |
Definition at line 226 of file fusionContext_tpl.h.
References _containsAssociatedLeaf_().
Referenced by gum::LeafAggregator::update().
| bool gum::FusionContext< isInitial >::deassociateLeaf | ( | AbstractLeaf * | l | ) |
Definition at line 271 of file fusionContext_tpl.h.
References _deassociateLeaf_().
| pair_iterator gum::FusionContext< isInitial >::endPairs | ( | ) |
Definition at line 286 of file fusionContext_tpl.h.
References _pairsHeap_.
| AbstractLeaf * gum::FusionContext< isInitial >::leaf | ( | ) |
Definition at line 301 of file fusionContext_tpl.h.
References _leaf_.
Referenced by FusionContext().
| LeafPair * gum::FusionContext< isInitial >::leafAssociatedPair | ( | AbstractLeaf * | l | ) |
Definition at line 306 of file fusionContext_tpl.h.
References _leaf2Pair_.
| void gum::FusionContext< isInitial >::operator delete | ( | void * | p | ) |
Default constructor.
Definition at line 221 of file fusionContext_tpl.h.
| void * gum::FusionContext< isInitial >::operator new | ( | size_t | s | ) |
Allocators and Deallocators redefinition.
Definition at line 216 of file fusionContext_tpl.h.
| bool gum::FusionContext< isInitial >::removePair | ( | LeafPair * | p | ) |
| LeafPair * gum::FusionContext< isInitial >::top | ( | ) |
Definition at line 291 of file fusionContext_tpl.h.
References _pairsHeap_.
| double gum::FusionContext< isInitial >::topLikelyhood | ( | ) |
Definition at line 296 of file fusionContext_tpl.h.
References _pairsHeap_.
| std::string gum::FusionContext< isInitial >::toString | ( | ) |
Definition at line 205 of file fusionContext_tpl.h.
References _leaf_, and _pairsHeap_.
| bool gum::FusionContext< isInitial >::updateAllAssociatedLeaves | ( | ) |
Definition at line 261 of file fusionContext_tpl.h.
References _updateAllAssociatedLeaves_().
| bool gum::FusionContext< isInitial >::updateAssociatedLeaf | ( | AbstractLeaf * | l | ) |
Definition at line 251 of file fusionContext_tpl.h.
References _updateAssociatedLeaf_().
| bool gum::FusionContext< isInitial >::updatePair | ( | LeafPair * | p | ) |
Definition at line 168 of file fusionContext_tpl.h.
References _pairsHeap_, and gum::LeafPair::likelyhood().
|
private |
Definition at line 243 of file fusionContext.h.
Referenced by ~FusionContext(), _associatedPairs_(), and leafAssociatedPair().
|
private |
Definition at line 245 of file fusionContext.h.
Referenced by FusionContext(), ~FusionContext(), leaf(), and toString().
|
private |
Definition at line 241 of file fusionContext.h.
Referenced by _associateLeaf_(), _deassociateLeaf_(), _updateAllAssociatedLeaves_(), beginPairs(), endPairs(), removePair(), top(), topLikelyhood(), toString(), and updatePair().