Loading...
Searching...
No Matches
LList< LListBase, T >::link Struct Reference

The storage of T with linked nodes. More...

#include <LList.H>

Inheritance diagram for LList< LListBase, T >::link:
Collaboration diagram for LList< LListBase, T >::link:

Public Member Functions

 link (const T &elem)
 Copy construct from given object.
 link (T &&elem)
 Move construct from given object.

Static Public Member Functions

static T remove (typename LListBase::link *node)
 Delete linked item and return the element value.
static constexpr Tptr (typename LListBase::link *node)
 Dereference LListBase::link to obtain address of stored object.
static constexpr const Tptr (const typename LListBase::link *node)
 Dereference LListBase::link to obtain address of stored object.
static constexpr Tref (typename LListBase::link *node)
 Dereference LListBase::link to obtain the stored object.
static constexpr const Tref (const typename LListBase::link *node)
 Dereference LListBase::link to obtain the stored object.

Public Attributes

T val_
 Stored object.

Detailed Description

template<class LListBase, class T>
struct Foam::LList< LListBase, T >::link

The storage of T with linked nodes.

Definition at line 124 of file LList.H.

Constructor & Destructor Documentation

◆ link() [1/2]

template<class LListBase, class T>
link ( const T & elem)
inline

Copy construct from given object.

Definition at line 136 of file LList.H.

References Foam::T(), and val_.

Referenced by ptr(), ptr(), ref(), ref(), and remove().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ link() [2/2]

template<class LListBase, class T>
link ( T && elem)
inline

Move construct from given object.

Definition at line 144 of file LList.H.

References Foam::T(), and val_.

Here is the call graph for this function:

Member Function Documentation

◆ remove()

template<class LListBase, class T>
T remove ( typename LListBase::link * node)
inlinestatic

Delete linked item and return the element value.

Definition at line 153 of file LList.H.

References link(), p, and Foam::T().

Referenced by LList< LListBase, T * >::remove(), LList< LListBase, T * >::remove(), and LList< LListBase, T * >::removeHead().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ptr() [1/2]

template<class LListBase, class T>
constexpr T * ptr ( typename LListBase::link * node)
inlinestaticconstexpr

Dereference LListBase::link to obtain address of stored object.

Definition at line 164 of file LList.H.

References link(), and Foam::T().

Referenced by LList< LListBase, T >::const_iterator::operator->(), LList< LListBase, T >::const_reverse_iterator::operator->(), LList< LListBase, T >::iterator::operator->(), and LList< LListBase, T >::reverse_iterator::operator->().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ptr() [2/2]

template<class LListBase, class T>
constexpr const T * ptr ( const typename LListBase::link * node)
inlinestaticconstexpr

Dereference LListBase::link to obtain address of stored object.

Definition at line 172 of file LList.H.

References link(), and Foam::T().

Here is the call graph for this function:

◆ ref() [1/2]

template<class LListBase, class T>
constexpr T & ref ( typename LListBase::link * node)
inlinestaticconstexpr

◆ ref() [2/2]

template<class LListBase, class T>
constexpr const T & ref ( const typename LListBase::link * node)
inlinestaticconstexpr

Dereference LListBase::link to obtain the stored object.

Definition at line 188 of file LList.H.

References link(), Foam::T(), and val_.

Here is the call graph for this function:

Member Data Documentation

◆ val_

template<class LListBase, class T>
T val_

Stored object.

Definition at line 131 of file LList.H.

Referenced by link(), link(), ref(), and ref().


The documentation for this struct was generated from the following file:
  • src/OpenFOAM/containers/LinkedLists/accessTypes/LList/LList.H