![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Link of a chain list allocated using the SmallObjectAllocator. More...
#include <agrum/tools/multidim/FunctionGraphUtilities/link.h>
Public Member Functions | |
Constructors and Destructors | |
Link (const T &elem) | |
Constructor. More... | |
Link (const T &elem, Link< T > *nextLink) | |
Constructor that insert link before the given link. More... | |
~Link () | |
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... | |
Getters and setters | |
const T & | element () const |
Returns the element stored in this link. More... | |
T & | element () |
Returns the element stored in this link. More... | |
const Link< T > * | nextLink () const |
Returns next link. More... | |
Link< T > * | nextLink () |
Returns next link. More... | |
void | setNextLink (Link< T > *newLink) |
Sets the next link. More... | |
Link of a chain list allocated using the SmallObjectAllocator.
T | The type stored by the chain list. |
INLINE const T & gum::Link< T >::element | ( | ) | const |
INLINE T & gum::Link< T >::element | ( | ) |
INLINE void gum::Link< T >::operator delete | ( | void * | p | ) |
Operator delete overload to use the SmallObjectAllocator.
Definition at line 61 of file link_tpl.h.
INLINE void * gum::Link< T >::operator new | ( | size_t | s | ) |
Operator new overload to use the SmallObjectAllocator.
Definition at line 56 of file link_tpl.h.
|
private |