![]() |
aGrUM 2.3.2
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 |
| Gaves the leaf effectif for given modality. | |
| double | total () const |
| bool | contains (NodeId testedId) const |
| Returns true if abstractleaf has leaf in it. | |
| Idx | nbModa () const |
| std::string | toString () |
| NodeId | id () |
Constructor & destructor. | |
| ComposedLeaf (NodeId leafId, AbstractLeaf *l1, AbstractLeaf *l2) | |
| Default constructor. | |
| ~ComposedLeaf () | |
| 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 |
Default constructor.
Definition at line 78 of file composedLeaf.h.
References gum::AbstractLeaf::AbstractLeaf(), ComposedLeaf(), _l1_, and _l2_.
Referenced by ComposedLeaf(), ~ComposedLeaf(), and operator delete().
|
inline |
Default destructor.
Definition at line 86 of file composedLeaf.h.
References ComposedLeaf().
Returns true if abstractleaf has leaf in it.
Reimplemented from gum::AbstractLeaf.
Definition at line 112 of file composedLeaf.h.
References _l1_, _l2_, and gum::AbstractLeaf::contains().
Gaves the leaf effectif for given modality.
Implements gum::AbstractLeaf.
Definition at line 105 of file composedLeaf.h.
|
inlineinherited |
Definition at line 114 of file abstractLeaf.h.
References _leafId_.
Referenced by gum::ComposedLeaf::toString(), gum::ConcreteLeaf< AttributeSelection, isScalar >::toString(), and gum::LeafAggregator::updateLeaf().
|
inlinevirtual |
|
inline |
Default constructor.
Definition at line 96 of file composedLeaf.h.
References ComposedLeaf(), gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
|
inline |
Allocators and Deallocators redefinition.
Definition at line 94 of file composedLeaf.h.
References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
|
virtual |
Implements gum::AbstractLeaf.
Definition at line 56 of file composedLeaf.cpp.
References _l1_, _l2_, and gum::AbstractLeaf::id().
|
inlinevirtual |
Implements gum::AbstractLeaf.
Definition at line 107 of file composedLeaf.h.
|
private |
Definition at line 122 of file composedLeaf.h.
Referenced by ComposedLeaf(), contains(), effectif(), nbModa(), toString(), and total().
|
private |
Definition at line 123 of file composedLeaf.h.
Referenced by ComposedLeaf(), contains(), effectif(), toString(), and total().
|
privateinherited |
Definition at line 121 of file abstractLeaf.h.
Referenced by AbstractLeaf(), contains(), and id().