![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Chain list allocated using the SmallObjectAllocator. More...
#include <agrum/tools/multidim/FunctionGraphUtilities/link.h>
Public Member Functions | |
Constructors and Destructors | |
LinkedList () | |
Constructor. More... | |
~LinkedList () | |
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... | |
Misceleanous methods | |
const Link< T > * | list () const |
Returns the first link in the chained list. More... | |
Link< T > * | list () |
Returns the first link in the chained list. More... | |
void | clear () |
Clears the list. More... | |
void | addLink (const T &elem) |
Adds a link. More... | |
void | searchAndRemoveLink (const T &elem) |
Removes a element from the list. More... | |
Chain list allocated using the SmallObjectAllocator.
T | The type stored by the chain list. |
INLINE gum::LinkedList< T >::LinkedList | ( | ) |
Constructor.
Definition at line 92 of file link_tpl.h.
INLINE gum::LinkedList< T >::~LinkedList | ( | ) |
INLINE void gum::LinkedList< T >::addLink | ( | const T & | elem | ) |
Adds a link.
Definition at line 136 of file link_tpl.h.
void gum::LinkedList< T >::clear | ( | ) |
Clears the list.
Definition at line 125 of file link_tpl.h.
INLINE const Link< T > * gum::LinkedList< T >::list | ( | ) | const |
Returns the first link in the chained list.
Definition at line 115 of file link_tpl.h.
INLINE Link< T > * gum::LinkedList< T >::list | ( | ) |
Returns the first link in the chained list.
Definition at line 120 of file link_tpl.h.
INLINE void gum::LinkedList< T >::operator delete | ( | void * | p | ) |
Operator delete overload to use the SmallObjectAllocator.
Definition at line 110 of file link_tpl.h.
INLINE void * gum::LinkedList< T >::operator new | ( | size_t | s | ) |
Operator new overload to use the SmallObjectAllocator.
Definition at line 105 of file link_tpl.h.
INLINE void gum::LinkedList< T >::searchAndRemoveLink | ( | const T & | elem | ) |
Removes a element from the list.
Definition at line 142 of file link_tpl.h.
|
private |