31 #ifndef GUM_ABSTRACT_LEAF_H 32 #define GUM_ABSTRACT_LEAF_H 75 void*
operator new(
size_t s) {
78 void operator delete(
void* p) {
88 virtual double total()
const = 0;
109 #endif // GUM_ABSTRACT_LEAF_H virtual bool contains(NodeId testedId) const
Returns true if abstractleaf has leaf in it.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual double effectif(Idx) const =0
Gaves the leaf effectif for given modality.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
<agrum/FMDP/learning/datastructure/leaves/abstractLeaf.h>
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual std::string toString()=0
virtual Idx nbModa() const =0
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
Size Idx
Type for indexes.
void * allocate(const size_t &objectSize)
Allocates a block.
static SmallObjectAllocator & instance()
virtual double total() const =0
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
virtual ~AbstractLeaf()
Default destructor.
Size NodeId
Type for node ids.
AbstractLeaf(NodeId leafId)
Default constructor.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.