LList< LListBase, T >::link Struct Reference

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

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

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

T val_
 Stored object. More...
 

Detailed Description

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

The storage of T with linked nodes.

Definition at line 116 of file LList.H.

Constructor & Destructor Documentation

◆ link() [1/2]

link ( const T elem)
inline

Copy construct from given object.

Definition at line 124 of file LList.H.

◆ link() [2/2]

link ( T &&  elem)
inline

Move construct from given object.

Definition at line 130 of file LList.H.

Member Function Documentation

◆ remove()

static T remove ( typename LListBase::link *  node)
inlinestatic

Delete linked item and return the element value.

Definition at line 137 of file LList.H.

References p, and T.

◆ ptr() [1/2]

static constexpr T * ptr ( typename LListBase::link *  node)
inlinestaticconstexpr

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

Definition at line 146 of file LList.H.

References LList< LListBase, T >::link::val_.

Referenced by dictionary::findCompat(), dictionary::findEntry(), and dictionary::findScoped().

Here is the caller graph for this function:

◆ ptr() [2/2]

static constexpr const T * ptr ( const typename LListBase::link *  node)
inlinestaticconstexpr

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

Definition at line 152 of file LList.H.

References LList< LListBase, T >::link::val_.

◆ ref() [1/2]

static constexpr T & ref ( typename LListBase::link *  node)
inlinestaticconstexpr

Dereference LListBase::link to obtain the stored object.

Definition at line 158 of file LList.H.

References LList< LListBase, T >::link::val_.

◆ ref() [2/2]

static constexpr const T & ref ( const typename LListBase::link *  node)
inlinestaticconstexpr

Dereference LListBase::link to obtain the stored object.

Definition at line 164 of file LList.H.

References LList< LListBase, T >::link::val_.

Member Data Documentation

◆ val_

T val_

Stored object.

Definition at line 121 of file LList.H.

Referenced by LList< LListBase, T >::link::ptr(), and LList< LListBase, T >::link::ref().


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