![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Chain list allocated using the SmallObjectAllocator. More...
#include <agrum/base/multidim/FunctionGraphUtilities/link.h>
Public Member Functions | |
Constructors and Destructors | |
| LinkedList () | |
| Constructor. | |
| ~LinkedList () | |
| Destructor. | |
| void * | operator new (size_t s) |
| Operator new overload to use the SmallObjectAllocator. | |
| void | operator delete (void *p) |
| Operator delete overload to use the SmallObjectAllocator. | |
Misceleanous methods | |
| const Link< T > * | list () const |
| Returns the first link in the chained list. | |
| Link< T > * | list () |
| Returns the first link in the chained list. | |
| void | clear () |
| Clears the list. | |
| void | addLink (const T &elem) |
| Adds a link. | |
| void | searchAndRemoveLink (const T &elem) |
| Removes a element from the list. | |
Private Attributes | |
| Link< T > * | _firstLink_ |
| The first link of our list. | |
Chain list allocated using the SmallObjectAllocator.
| T | The type stored by the chain list. |
| INLINE gum::LinkedList< T >::LinkedList | ( | ) |
Constructor.
Definition at line 113 of file link_tpl.h.
Referenced by ~LinkedList(), operator delete(), and operator new().
| INLINE gum::LinkedList< T >::~LinkedList | ( | ) |
Destructor.
Definition at line 120 of file link_tpl.h.
References LinkedList(), and clear().
| INLINE void gum::LinkedList< T >::addLink | ( | const T & | elem | ) |
Adds a link.
Definition at line 157 of file link_tpl.h.
References _firstLink_.
Referenced by gum::MultiDimFunctionGraphGenerator::generate().
| void gum::LinkedList< T >::clear | ( | ) |
Clears the list.
Definition at line 146 of file link_tpl.h.
References _firstLink_, and gum::Link< T >::nextLink().
Referenced by ~LinkedList().
| INLINE Link< T > * gum::LinkedList< T >::list | ( | ) |
Returns the first link in the chained list.
Definition at line 141 of file link_tpl.h.
References _firstLink_.
| INLINE const Link< T > * gum::LinkedList< T >::list | ( | ) | const |
Returns the first link in the chained list.
Definition at line 136 of file link_tpl.h.
References _firstLink_.
Referenced by gum::MultiDimFunctionGraphGenerator::generate().
| INLINE void gum::LinkedList< T >::operator delete | ( | void * | p | ) |
Operator delete overload to use the SmallObjectAllocator.
Definition at line 131 of file link_tpl.h.
References LinkedList(), gum::SmallObjectAllocator::deallocate(), and gum::SmallObjectAllocator::instance().
| INLINE void * gum::LinkedList< T >::operator new | ( | size_t | s | ) |
Operator new overload to use the SmallObjectAllocator.
Definition at line 126 of file link_tpl.h.
References LinkedList(), gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
| INLINE void gum::LinkedList< T >::searchAndRemoveLink | ( | const T & | elem | ) |
Removes a element from the list.
Definition at line 163 of file link_tpl.h.
References _firstLink_.
|
private |