ListConstRefWrap< T > Class Template Reference

Expression wrap of const reference to UList. More...

Inheritance diagram for ListConstRefWrap< T >:
Collaboration diagram for ListConstRefWrap< T >:

Public Types

typedef T value_type
 
typedef List< T >::const_iterator const_iterator
 

Public Member Functions

 ListConstRefWrap (const UList< T > &elems)
 
const auto & data () const noexcept
 
value_type operator[] (const label i) const
 
auto size () const noexcept
 
bool is_alias (const void *lst) const noexcept
 
auto cbegin () const
 
auto cend () const
 
- Public Member Functions inherited from ListExpression< ListConstRefWrap< T > >
auto operator[] (const label i) const
 
auto size () const noexcept
 
Container & fill (Container &lst) const
 Helper: assign to passed in list. More...
 
Container & evaluate (Container &lst) const
 Helper: assign to passed in list. More...
 

Static Public Attributes

static constexpr bool is_leaf = false
 
- Static Public Attributes inherited from ListExpression< ListConstRefWrap< T > >
static constexpr bool is_leaf
 

Detailed Description

template<class T>
class Foam::Expression::ListConstRefWrap< T >

Expression wrap of const reference to UList.

Definition at line 81 of file UList.H.

Member Typedef Documentation

◆ value_type

typedef T value_type

Definition at line 448 of file ListExpression.H.

◆ const_iterator

Definition at line 477 of file ListExpression.H.

Constructor & Destructor Documentation

◆ ListConstRefWrap()

ListConstRefWrap ( const UList< T > &  elems)
inline

Definition at line 451 of file ListExpression.H.

Member Function Documentation

◆ data()

const auto& data ( ) const
inlinenoexcept

Definition at line 457 of file ListExpression.H.

◆ operator[]()

value_type operator[] ( const label  i) const
inline

Definition at line 462 of file ListExpression.H.

◆ size()

auto size ( ) const
inlinenoexcept

Definition at line 467 of file ListExpression.H.

References UList< T >::size().

Referenced by incompressibleKEpsilon::correct(), and fvMesh::storeOldVol().

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

◆ is_alias()

bool is_alias ( const void *  lst) const
inlinenoexcept

Definition at line 472 of file ListExpression.H.

Referenced by ListExpression< List_pow3< E1 > >::fill().

Here is the caller graph for this function:

◆ cbegin()

auto cbegin ( ) const
inline

Definition at line 594 of file ListExpression.H.

References UList< T >::cbegin().

Referenced by ListExpression< List_pow3< E1 > >::fill().

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

◆ cend()

auto cend ( ) const
inline

Definition at line 598 of file ListExpression.H.

References UList< T >::cend().

Here is the call graph for this function:

Member Data Documentation

◆ is_leaf

constexpr bool is_leaf = false
static

Definition at line 446 of file ListExpression.H.


The documentation for this class was generated from the following files: