![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
<agrum/FMDP/learning/datastructure/leaves/abstractLeaf.h> More...
#include <abstractLeaf.h>
Public Member Functions | |
| virtual double | effectif (Idx) const =0 |
| Gaves the leaf effectif for given modality. | |
| virtual double | total () const =0 |
| virtual bool | contains (NodeId testedId) const |
| Returns true if abstractleaf has leaf in it. | |
| NodeId | id () |
| virtual Idx | nbModa () const =0 |
| virtual std::string | toString ()=0 |
Constructor & destructor. | |
| AbstractLeaf (NodeId leafId) | |
| Default constructor. | |
| virtual | ~AbstractLeaf () |
| Default destructor. | |
| void * | operator new (size_t s) |
| Allocators and Deallocators redefinition. | |
| void | operator delete (void *p) |
| Default constructor. | |
Private Attributes | |
| NodeId | _leafId_ |
<agrum/FMDP/learning/datastructure/leaves/abstractLeaf.h>
Abstract Class implementing a Leaf
Definition at line 72 of file abstractLeaf.h.
|
inline |
Default constructor.
Definition at line 82 of file abstractLeaf.h.
References AbstractLeaf(), and _leafId_.
Referenced by AbstractLeaf(), gum::ComposedLeaf::ComposedLeaf(), gum::ConcreteLeaf< AttributeSelection, isScalar >::ConcreteLeaf(), ~AbstractLeaf(), and operator delete().
|
inlinevirtual |
Default destructor.
Definition at line 87 of file abstractLeaf.h.
References AbstractLeaf().
Returns true if abstractleaf has leaf in it.
Reimplemented in gum::ComposedLeaf.
Definition at line 112 of file abstractLeaf.h.
References _leafId_.
Referenced by gum::ComposedLeaf::contains(), and gum::LeafAggregator::update().
Gaves the leaf effectif for given modality.
Implemented in gum::ComposedLeaf, and gum::ConcreteLeaf< AttributeSelection, isScalar >.
Referenced by gum::IMDDI< AttributeSelection, isScalar >::_insertLeafInFunctionGraph_(), and gum::IMDDI< AttributeSelection, isScalar >::_insertLeafInFunctionGraph_().
|
inline |
Definition at line 114 of file abstractLeaf.h.
References _leafId_.
Referenced by gum::ComposedLeaf::toString(), gum::ConcreteLeaf< AttributeSelection, isScalar >::toString(), and gum::LeafAggregator::updateLeaf().
|
pure virtual |
Implemented in gum::ComposedLeaf, and gum::ConcreteLeaf< AttributeSelection, isScalar >.
Referenced by gum::IMDDI< AttributeSelection, isScalar >::_insertLeafInFunctionGraph_().
|
inline |
Default constructor.
Definition at line 97 of file abstractLeaf.h.
References AbstractLeaf(), gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
|
inline |
Allocators and Deallocators redefinition.
Definition at line 95 of file abstractLeaf.h.
References gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
|
pure virtual |
Implemented in gum::ComposedLeaf, and gum::ConcreteLeaf< AttributeSelection, isScalar >.
|
pure virtual |
Implemented in gum::ComposedLeaf, and gum::ConcreteLeaf< AttributeSelection, isScalar >.
Referenced by gum::IMDDI< AttributeSelection, isScalar >::_insertLeafInFunctionGraph_(), and gum::IMDDI< AttributeSelection, isScalar >::_insertLeafInFunctionGraph_().
|
private |
Definition at line 121 of file abstractLeaf.h.
Referenced by AbstractLeaf(), contains(), and id().