![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Class used to manipulate context during Function Graph Operations. More...
#include <agrum/tools/multidim/FunctionGraphUtilities/o4DGContext.h>
Public Member Functions | |
Constructors, Destructors. | |
O4DGContext (Idx *, Idx) | |
Default constructor. More... | |
~O4DGContext () | |
Default destructor. More... | |
void * | operator new (size_t s) |
Operator new overload to use the SmallObjectAllocator. More... | |
void | operator delete (void *p) |
Operator delete overload to use the SmallObjectAllocator. More... | |
Diagrams current nodes setters & getters. | |
void | setDG1Node (const NodeId &) |
Set DG1 diagram current explored Node. More... | |
const NodeId & | DG1Node () const |
Get DG1 diagram current explored Node. More... | |
void | setDG2Node (const NodeId &) |
Set DG2 diagram current explored Node. More... | |
const NodeId & | DG2Node () const |
Get DG2 diagram current explored Node. More... | |
Variables modalities handlers | |
void | chgVarModality (Idx, Idx) |
Changes given variable modality. More... | |
Idx | varModality (Idx) |
Changes given variable modality. More... | |
O4DG Handling methods | |
const double & | key (short int *instNeeded) |
Returns o4DGContext key. More... | |
Class used to manipulate context during Function Graph Operations.
Definition at line 49 of file o4DGContext.h.
Default constructor.
Definition at line 68 of file o4DGContext.cpp.
References gum::Set< Key, Alloc >::emplace().
gum::O4DGContext::~O4DGContext | ( | ) |
Default destructor.
Definition at line 76 of file o4DGContext.cpp.
References gum::Set< Key, Alloc >::emplace().
Changes given variable modality.
Definition at line 46 of file o4DGContext_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
inline |
Get DG1 diagram current explored Node.
Definition at line 86 of file o4DGContext.h.
|
inline |
Get DG2 diagram current explored Node.
Definition at line 92 of file o4DGContext.h.
INLINE const double & gum::O4DGContext::key | ( | short int * | instNeeded | ) |
Returns o4DGContext key.
Definition at line 54 of file o4DGContext_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE void gum::O4DGContext::operator delete | ( | void * | p | ) |
Operator delete overload to use the SmallObjectAllocator.
Definition at line 67 of file o4DGContext_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE void * gum::O4DGContext::operator new | ( | size_t | s | ) |
Operator new overload to use the SmallObjectAllocator.
Definition at line 63 of file o4DGContext_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE void gum::O4DGContext::setDG1Node | ( | const NodeId & | exploredNode | ) |
Set DG1 diagram current explored Node.
Definition at line 36 of file o4DGContext_inl.h.
References gum::Set< Key, Alloc >::emplace().
INLINE void gum::O4DGContext::setDG2Node | ( | const NodeId & | exploredNode | ) |
Set DG2 diagram current explored Node.
Definition at line 41 of file o4DGContext_inl.h.
References gum::Set< Key, Alloc >::emplace().
Changes given variable modality.
Definition at line 51 of file o4DGContext_inl.h.
References gum::Set< Key, Alloc >::emplace().
|
private |
DG1 Diagram current explored node.
Definition at line 119 of file o4DGContext.h.
|
private |
DG2 Diagram current explored node.
Definition at line 122 of file o4DGContext.h.
|
private |
The key use to store the context as a key in the hashtable.
Definition at line 130 of file o4DGContext.h.
|
staticprivate |
Table containing the log2 of prime numbers.
Definition at line 133 of file o4DGContext.h.
|
staticprivate |
Definition at line 134 of file o4DGContext.h.
|
private |
Definition at line 127 of file o4DGContext.h.
|
staticprivate |
Definition at line 134 of file o4DGContext.h.
|
staticprivate |
Definition at line 134 of file o4DGContext.h.
|
staticprivate |
Definition at line 134 of file o4DGContext.h.
|
private |
Vector containing for each retrograde variable its current modality 0 meaning no instantiation done => there's an offset.
Definition at line 126 of file o4DGContext.h.