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 &obj)
 Copy construct from given object. More...
 
 link (T &&obj)
 Move construct from given object. More...
 

Static Public Member Functions

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 obj_
 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 obj)
inline

Copy construct from given object.

Definition at line 124 of file LList.H.

◆ link() [2/2]

link ( T &&  obj)
inline

Move construct from given object.

Definition at line 130 of file LList.H.

Member Function Documentation

◆ ptr() [1/2]

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

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

Definition at line 137 of file LList.H.

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

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

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 143 of file LList.H.

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

◆ ref() [1/2]

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

◆ 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 155 of file LList.H.

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

Member Data Documentation

◆ obj_

T obj_

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: