66 void Parent::operator
delete(
void* p) {
72 if ((comp.
parentId == this->parentId) && (comp.
modality == this->modality))
return true;
87 void* InternalNode::operator
new(
size_t s) {
92 void InternalNode::operator
delete(
void* p) {
Base class for discrete random variable.
InternalNode()
Default Constructor Creates an empty node with no variable attached.
const DiscreteVariable * nodeVar() const
Returns the node variable.
NodeId * _nodeSons_
Table of sons of the node.
const DiscreteVariable * _nodeVar_
Variable associated to such node.
Idx nbSons() const
Returns the number of sons.
NodeId son(Idx modality) const
Returns the son at a given index.
Link< Parent > * parents()
Returns the list of parents.
void setSon(Idx modality, NodeId son)
Sets the node's son.
LinkedList< Parent > _nodeParents_
The list of the node's parent.
Link of a chain list allocated using the SmallObjectAllocator.
static SmallObjectAllocator & instance()
void * allocate(const size_t &objectSize)
Allocates a block.
void deallocate(void *pDeallocatedObject, const size_t &objectSize)
Deallocates an object.
Size Idx
Type for indexes.
Size NodeId
Type for node ids.
Headers of the InternalNode class.
gum is the global namespace for all aGrUM entities
bool operator==(const Parent &comp) const
bool operator!=(const Parent &comp) const
Parent & operator=(const Parent &src)
Parent(NodeId pi, Idx m)
Class constructor.