![]() |
aGrUM
0.20.3
a C++ library for (probabilistic) graphical models
|
Bucket for a chained list. More...
#include <agrum/tools/core/list.h>
Public Member Functions | |
template<typename... Args> | |
INLINE | ListBucket (typename ListBucket< Val >::Emplace, Args &&... args) |
Constructors / Destructors | |
ListBucket ()=delete | |
Removes empty constructor. More... | |
ListBucket (const Val &v) | |
Default constructor. More... | |
ListBucket (Val &&v) noexcept | |
Constructor for Val rvalues. More... | |
template<typename... Args> | |
ListBucket (Emplace, Args &&... args) | |
Emplace (universal) constructor. More... | |
ListBucket (const ListBucket< Val > &src) | |
Copy constructor. More... | |
ListBucket (ListBucket< Val > &&src)=delete | |
Move constructor should be useless. More... | |
~ListBucket () | |
Class destructor. More... | |
Operators | |
ListBucket< Val > & | operator= (const ListBucket< Val > &src) |
Copy operator. More... | |
ListBucket< Val > & | operator= (ListBucket< Val > &&src)=delete |
Move operator. More... | |
bool | operator== (const ListBucket< Val > &src) const |
Equality check. More... | |
bool | operator!= (const ListBucket< Val > &src) const |
Inequality check. More... | |
Accessors / Modifiers | |
Val & | operator* () noexcept |
Dereferencing operator. More... | |
const Val & | operator* () const noexcept |
Dereferencing operator. More... | |
const ListBucket< Val > * | next () const noexcept |
Returns the bucket toward the next element. More... | |
const ListBucket< Val > * | previous () const noexcept |
Returns the bucket toward the preceding element. More... | |
Friends | |
template<typename T , typename A > | |
class | List |
All the list containers and iterators should be able to access the buckets. More... | |
class | ListIterator< Val > |
class | ListConstIterator< Val > |
class | ListIteratorSafe< Val > |
class | ListConstIteratorSafe< Val > |
Bucket for a chained list.
In aGrUM, each box of a chained list is called a bucket. Lists are doubly linked bucket lists so as to enable efficient rbegin/rend iterators.
Val | The values type stored in the gum::ListBucket. |
|
strongprivate |
|
delete |
Removes empty constructor.
|
explicit |
Default constructor.
v | The value stored in the gum::ListBucket. |
Definition at line 42 of file list_tpl.h.
|
explicitnoexcept |
Constructor for Val rvalues.
v | The value stored in the gum::ListBucket. |
Definition at line 49 of file list_tpl.h.
|
explicit |
Emplace (universal) constructor.
Args | The emplace values type. |
args | The emplace values. |
INLINE gum::ListBucket< Val >::ListBucket | ( | const ListBucket< Val > & | src | ) |
Copy constructor.
src | The gum::ListBucket to copy. |
Definition at line 65 of file list_tpl.h.
|
delete |
Move constructor should be useless.
src | The gum::ListBucket to move. |
INLINE gum::ListBucket< Val >::~ListBucket | ( | ) |
Class destructor.
Definition at line 84 of file list_tpl.h.
INLINE gum::ListBucket< Val >::ListBucket | ( | typename ListBucket< Val >::Emplace | , |
Args &&... | args | ||
) |
Definition at line 57 of file list_tpl.h.
|
noexcept |
Returns the bucket toward the next element.
Definition at line 115 of file list_tpl.h.
INLINE bool gum::ListBucket< Val >::operator!= | ( | const ListBucket< Val > & | src | ) | const |
Inequality check.
src | The gum::ListBucket to test for inequality. |
Definition at line 97 of file list_tpl.h.
|
noexcept |
Dereferencing operator.
Definition at line 109 of file list_tpl.h.
|
noexcept |
Dereferencing operator.
Definition at line 103 of file list_tpl.h.
INLINE ListBucket< Val > & gum::ListBucket< Val >::operator= | ( | const ListBucket< Val > & | src | ) |
Copy operator.
src | The gum::ListBucket to copy. |
Definition at line 72 of file list_tpl.h.
|
delete |
INLINE bool gum::ListBucket< Val >::operator== | ( | const ListBucket< Val > & | src | ) | const |
Equality check.
src | The gum::ListBucket to test for equality. |
Definition at line 91 of file list_tpl.h.
|
noexcept |
Returns the bucket toward the preceding element.
Definition at line 121 of file list_tpl.h.
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |