30 #ifndef GUM_COMPOSED_LEAF_H 31 #define GUM_COMPOSED_LEAF_H 33 #include <agrum/FMDP/learning/datastructure/leaves/abstractLeaf.h> 59 GUM_CONSTRUCTOR(ComposedLeaf);
71 return SmallObjectAllocator::instance().allocate(s);
74 SmallObjectAllocator::instance().deallocate(p,
sizeof(ComposedLeaf));
83 return l1__->effectif(moda) + l2__->effectif(moda);
85 double total()
const {
return l1__->total() + l2__->total(); }
91 return AbstractLeaf::contains(testedId) || l1__->contains(testedId)
92 || l2__->contains(testedId);
double effectif(Idx moda) const
Gaves the leaf effectif for given modality.
void operator delete(void *p)
Default constructor.
INLINE void emplace(Args &&... args)
bool contains(NodeId testedId) const
Returns true if abstractleaf has leaf in it.
~ComposedLeaf()
Default destructor.
ComposedLeaf(NodeId leafId, AbstractLeaf *l1, AbstractLeaf *l2)
Default constructor.
void * operator new(size_t s)
Allocators and Deallocators redefinition.
<agrum/FMDP/learning/datastructure/leaves/composedLeaf.h>