33 #define ALLOCATE(x) SmallObjectAllocator::instance().allocate(x) 34 #define DEALLOCATE(x, y) SmallObjectAllocator::instance().deallocate(x, y) void addParent(NodeId parent, Idx modality)
Adds a parent.
void setNode(const DiscreteVariable *v, NodeId *sons)
Allows you to respecify the node, changing its attached variable as well as its son map...
void __setNodeVar(const DiscreteVariable *v)
Set the node variable.
void removeParent(NodeId parent, Idx modality)
Removes a parent.
LinkedList< Parent > __nodeParents
The list of the node's parent.
static NodeId * allocateNodeSons(const DiscreteVariable *v)
Allocates a table of nodeid of the size given in parameter.
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.
~InternalNode()
Class destructors.
Base class for discrete random variable.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
static void deallocateNodeSons(const DiscreteVariable *v, NodeId *s)
Deallocates a NodeSons table.
void setNodeVar(const DiscreteVariable *v)
Set the node variable.
virtual Size domainSize() const =0
NodeId * __nodeSons
Table of sons of the node.
Structure used to represent a node internal structure.
const DiscreteVariable * __nodeVar
Variable associated to such node.
Represent a node's parent.
Size Idx
Type for indexes.
Size NodeId
Type for node ids.
InternalNode()
Default Constructor Creates an empty node with no variable attached.