42 void* Parent::operator
new(
size_t s) {
47 void Parent::operator
delete(
void* p) {
69 void* InternalNode::operator
new(
size_t s) {
74 void InternalNode::operator
delete(
void* p) {
97 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.
Headers of the InternalNode class.
Link< Parent > * parents()
Returns the list of parents.
Base class for discrete random variable.
gum is the global namespace for all aGrUM entities
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.