![]() |
aGrUM 3.1.1
a C++ library for (probabilistic) graphical models
|
<agrum/FMDP/learning/datastructure/leaves/composedLeaf.h> More...
#include <composedLeaf.h>
Public Member Functions | |
| double | effectif (Idx moda) const override |
| Gaves the leaf effectif for given modality. | |
| double | total () const override |
| bool | contains (NodeId testedId) const override |
| Returns true if abstractleaf has leaf in it. | |
| Idx | nbModa () const override |
| std::string | toString () override |
| NodeId | id () |
Constructor & destructor. | |
| ComposedLeaf (NodeId leafId, AbstractLeaf *l1, AbstractLeaf *l2) | |
| Default constructor. | |
| ~ComposedLeaf () override | |
| Default destructor. | |
| void * | operator new (size_t s) |
| Allocators and Deallocators redefinition. | |
| void | operator delete (void *p) |
| Default constructor. | |
Private Attributes | |
| AbstractLeaf * | _l1_ |
| AbstractLeaf * | _l2_ |
| NodeId | _leafId_ |
<agrum/FMDP/learning/datastructure/leaves/composedLeaf.h>
A leaf that has leaves inside
Definition at line 68 of file composedLeaf.h.
| INLINE gum::ComposedLeaf::ComposedLeaf | ( | NodeId | leafId, |
| AbstractLeaf * | l1, | ||
| AbstractLeaf * | l2 ) |
Default constructor.
Definition at line 48 of file composedLeaf_inl.h.
References gum::AbstractLeaf::AbstractLeaf(), ComposedLeaf(), _l1_, and _l2_.
Referenced by ComposedLeaf(), ~ComposedLeaf(), and operator delete().
|
override |
Default destructor.
Definition at line 53 of file composedLeaf_inl.h.
References ComposedLeaf().
Returns true if abstractleaf has leaf in it.
Reimplemented from gum::AbstractLeaf.
Definition at line 72 of file composedLeaf_inl.h.
References _l1_, _l2_, and gum::AbstractLeaf::contains().
Gaves the leaf effectif for given modality.
Implements gum::AbstractLeaf.
Definition at line 66 of file composedLeaf_inl.h.
|
inherited |
Definition at line 67 of file abstractLeaf_inl.h.
References _leafId_.
Referenced by gum::LeafAggregator::updateLeaf().
|
overridevirtual |
| INLINE void gum::ComposedLeaf::operator delete | ( | void * | p | ) |
Default constructor.
Definition at line 62 of file composedLeaf_inl.h.
References ComposedLeaf(), gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
| INLINE void * gum::ComposedLeaf::operator new | ( | size_t | s | ) |
Allocators and Deallocators redefinition.
Definition at line 58 of file composedLeaf_inl.h.
References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
|
overridevirtual |
Implements gum::AbstractLeaf.
Definition at line 60 of file composedLeaf.cpp.
|
overridevirtual |
Implements gum::AbstractLeaf.
Definition at line 70 of file composedLeaf_inl.h.
|
private |
Definition at line 111 of file composedLeaf.h.
Referenced by ComposedLeaf(), contains(), effectif(), nbModa(), toString(), and total().
|
private |
Definition at line 112 of file composedLeaf.h.
Referenced by ComposedLeaf(), contains(), effectif(), toString(), and total().
|
privateinherited |
Definition at line 116 of file abstractLeaf.h.
Referenced by AbstractLeaf(), contains(), and id().