![]() |
aGrUM 2.3.2
a C++ library for (probabilistic) graphical models
|
Link of a chain list allocated using the SmallObjectAllocator. More...
#include <agrum/base/multidim/FunctionGraphUtilities/link.h>
Public Member Functions | |
Constructors and Destructors | |
| Link (const T &elem) | |
| Constructor. | |
| Link (const T &elem, Link< T > *nextLink) | |
| Constructor that insert link before the given link. | |
| ~Link () | |
| 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. | |
Getters and setters | |
| const T & | element () const |
| Returns the element stored in this link. | |
| T & | element () |
| Returns the element stored in this link. | |
| const Link< T > * | nextLink () const |
| Returns next link. | |
| Link< T > * | nextLink () |
| Returns next link. | |
| void | setNextLink (Link< T > *newLink) |
| Sets the next link. | |
Private Attributes | |
| T | _element_ |
| The element embedded in this link. | |
| Link< T > * | _nextLink_ |
| The next link in the list. | |
Link of a chain list allocated using the SmallObjectAllocator.
| T | The type stored by the chain list. |
|
explicit |
Constructor.
Definition at line 59 of file link_tpl.h.
References Link(), and _element_.
Referenced by Link(), Link(), ~Link(), nextLink(), nextLink(), operator new(), and setNextLink().
| INLINE gum::Link< T >::Link | ( | const T & | elem, |
| Link< T > * | nextLink ) |
Constructor that insert link before the given link.
Definition at line 65 of file link_tpl.h.
References Link(), _element_, _nextLink_, and nextLink().
Destructor.
Definition at line 72 of file link_tpl.h.
References Link().
| INLINE T & gum::Link< T >::element | ( | ) |
Returns the element stored in this link.
Definition at line 92 of file link_tpl.h.
References _element_.
| INLINE const T & gum::Link< T >::element | ( | ) | const |
Returns the element stored in this link.
Definition at line 87 of file link_tpl.h.
References _element_.
Referenced by gum::MultiDimFunctionGraphManager< GUM_SCALAR, TerminalNodePolicy >::_checkIsomorphism_(), gum::MultiDimFunctionGraphOperator< GUM_SCALAR, FUNCTOR, TerminalNodePolicy >::_findRetrogradeVariables_(), gum::Regress< GUM_SCALAR, COMBINEOPERATOR, PROJECTOPERATOR, TerminalNodePolicy >::_findRetrogradeVariables_(), gum::LeastSquareTestPolicy< GUM_SCALAR >::add(), gum::LeastSquareTestPolicy< GUM_SCALAR >::computeScore(), gum::MultiDimFunctionGraphGenerator::generate(), gum::StructuredPlaner< double >::makePlanning(), gum::MultiDimFunctionGraphManager< GUM_SCALAR, TerminalNodePolicy >::migrateNode_(), gum::MultiDimFunctionGraphManager< GUM_SCALAR, TerminalNodePolicy >::reduce_(), gum::MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy >::toDot(), and gum::IncrementalGraphLearner< AttributeSelection, isScalar >::updateVar().
Returns next link.
Definition at line 102 of file link_tpl.h.
References Link(), and _nextLink_.
Returns next link.
Definition at line 97 of file link_tpl.h.
References Link(), and _nextLink_.
Referenced by Link(), gum::LinkedList< NodeId >::LinkedList(), gum::LinkedList< NodeId >::~LinkedList(), gum::MultiDimFunctionGraphManager< GUM_SCALAR, TerminalNodePolicy >::_checkIsomorphism_(), gum::MultiDimFunctionGraphOperator< GUM_SCALAR, FUNCTOR, TerminalNodePolicy >::_findRetrogradeVariables_(), gum::Regress< GUM_SCALAR, COMBINEOPERATOR, PROJECTOPERATOR, TerminalNodePolicy >::_findRetrogradeVariables_(), gum::LeastSquareTestPolicy< GUM_SCALAR >::add(), gum::LinkedList< T >::clear(), gum::LeastSquareTestPolicy< GUM_SCALAR >::computeScore(), gum::MultiDimFunctionGraphGenerator::generate(), gum::StructuredPlaner< double >::makePlanning(), gum::MultiDimFunctionGraphManager< GUM_SCALAR, TerminalNodePolicy >::migrateNode_(), gum::MultiDimFunctionGraphManager< GUM_SCALAR, TerminalNodePolicy >::reduce_(), gum::MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy >::toDot(), and gum::IncrementalGraphLearner< AttributeSelection, isScalar >::updateVar().
| INLINE void gum::Link< T >::operator delete | ( | void * | p | ) |
Operator delete overload to use the SmallObjectAllocator.
Definition at line 82 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 77 of file link_tpl.h.
References Link(), gum::SmallObjectAllocator::allocate(), and gum::SmallObjectAllocator::instance().
Sets the next link.
Definition at line 107 of file link_tpl.h.
References Link(), and _nextLink_.
Referenced by gum::LinkedList< NodeId >::~LinkedList().
|
private |
The next link in the list.
Definition at line 142 of file link.h.
Referenced by Link(), nextLink(), nextLink(), and setNextLink().