ALib C++ Library
Library Version: 2412 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
ListElement< T > Struct Template Reference

Description:

template<typename T>
struct alib::containers::detail::ListElement< T >

Extents BidiNodeBase by an value of type T.

Definition at line 34 of file list.hpp.

#include <list.hpp>

Inheritance diagram for ListElement< T >:
[legend]
Collaboration diagram for ListElement< T >:
[legend]

Public Field Index:

data
 The custom data object.
 
- Public Field Index: inherited from BidiNodeBase< ListElement< T > >
ListElement< T > * p
 
- Public Field Index: inherited from SidiNodeBase< ListElement< T > >
ListElement< T > * n
 

Additional Inherited Members

- Public Type Index: inherited from BidiNodeBase< ListElement< T > >
using FWDNode
 Alias name for an instantiation of the base template.
 
- Public Method Index: inherited from BidiNodeBase< ListElement< T > >
 BidiNodeBase () noexcept=default
 Default constructor. (Does not initialize the pointer!)
 
 BidiNodeBase (BidiNodeBase &&) noexcept=default
 Defaulted move constructor.
 
 BidiNodeBase (const BidiNodeBase &)=delete
 
 BidiNodeBase (ListElement< T > *next, ListElement< T > *prev) noexcept
 
void addBefore (ListElement< T > *elem) noexcept
 
void addBehind (ListElement< T > *elem) noexcept
 
BidiNodeBaseoperator= (BidiNodeBase &&) noexcept=default
 
BidiNodeBaseoperator= (const BidiNodeBase &)=delete
 
ListElement< T > * prev () const noexcept
 
void prev (BidiNodeBase *previous) noexcept
 
void remove () noexcept
 Unhooks this node from a list.
 
void remove (ListElement< T > *last) noexcept
 
- Public Method Index: inherited from SidiNodeBase< ListElement< T > >
 SidiNodeBase () noexcept=default
 Default constructor. (Does not initialize the pointer.)
 
 SidiNodeBase (const SidiNodeBase &)=delete
 
 SidiNodeBase (ListElement< T > *next) noexcept
 
 SidiNodeBase (SidiNodeBase &&) noexcept=default
 Defaulted move constructor.
 
ListElement< T > * addBehind (ListElement< T > *elem) noexcept
 
integer count (SidiNodeBase *end=nullptr) const noexcept
 
bool hasNext () const
 
ListElement< T > * next () const
 
void next (SidiNodeBase *p)
 
SidiNodeBaseoperator= (const SidiNodeBase &)=delete
 
SidiNodeBaseoperator= (SidiNodeBase &&) noexcept=default
 
bool pointsTo (const SidiNodeBase *elem) const
 
ListElement< T > * removeNext () noexcept
 
ListElement< T > * removeRangeBehind (ListElement< T > *last) noexcept
 

Field Details:

◆ data

template<typename T >
T data

The custom data object.

Definition at line 36 of file list.hpp.


The documentation for this struct was generated from the following file: