44 void* Parent::operator
new(
size_t s) {
49 void Parent::operator
delete(
void* p) {
71 void* InternalNode::operator
new(
size_t s) {
76 void InternalNode::operator
delete(
void* p) {
99 return __nodeParents.list();
bool operator==(const Parent &comp) const
const DiscreteVariable * nodeVar() const
Returns the node variable.
Idx nbSons() const
Returns the number of sons.
void setSon(Idx modality, NodeId son)
Sets the node's son.
NodeId son(Idx modality) const
Returns the son at a given index.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Link< Parent > * parents()
Returns the list of parents.
Base class for discrete random variable.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
bool operator!=(const Parent &comp) const
Parent & operator=(const Parent &src)
Structure used to represent a node internal structure.
Link of a chain list allocated using the SmallObjectAllocator.
Parent(NodeId pi, Idx m)
Class constructor.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
Represent a node's parent.
Size Idx
Type for indexes.
void * allocate(const size_t &objectSize)
Allocates a block.
static SmallObjectAllocator & instance()
Size NodeId
Type for node ids.