Loading...
Searching...
No Matches
ListWrap< T > Class Template Reference

Expression wrap of a List. More...

#include <ListExpression.H>

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

Public Types

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

Public Member Functions

 ListWrap (const ListWrap< T > &elems)
 Copy construct.
 ListWrap (ListWrap< T > &&elems)
 Move construct.
 ListWrap (std::initializer_list< T > elems)
 Construct from initializer list.
 ListWrap (const UList< T > &elems)
template<typename E>
 ListWrap (const ListExpression< E > &expr)
const auto & data () const
auto & data ()
value_type operator[] (const label i) const
value_typeoperator[] (const label i)
auto size () const noexcept
auto cbegin () const
auto cend () const
auto begin ()
auto end ()
Public Member Functions inherited from ListExpression< ListWrap< T > >
auto operator[] (const label i) const
auto size () const noexcept
Container & fill (Container &lst) const
 Helper: assign to passed in list.
Container & evaluate (Container &lst) const
 Helper: assign to passed in list.

Static Public Attributes

static constexpr bool is_leaf = true
Static Public Attributes inherited from ListExpression< ListWrap< T > >
static constexpr bool is_leaf

Detailed Description

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

Expression wrap of a List.

Definition at line 138 of file ListExpression.H.

Member Typedef Documentation

◆ value_type

template<class T>
typedef T value_type

Definition at line 147 of file ListExpression.H.

◆ const_iterator

template<class T>
typedef List<T>::const_iterator const_iterator

Definition at line 214 of file ListExpression.H.

◆ iterator

template<class T>
typedef List<T>::iterator iterator

Definition at line 224 of file ListExpression.H.

Constructor & Destructor Documentation

◆ ListWrap() [1/5]

template<class T>
ListWrap ( const ListWrap< T > & elems)
inline

Copy construct.

Definition at line 152 of file ListExpression.H.

References data(), and ListWrap().

Referenced by ListWrap(), and ListWrap().

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

◆ ListWrap() [2/5]

template<class T>
ListWrap ( ListWrap< T > && elems)
inline

Move construct.

Definition at line 160 of file ListExpression.H.

References data(), and ListWrap().

Here is the call graph for this function:

◆ ListWrap() [3/5]

template<class T>
ListWrap ( std::initializer_list< T > elems)
inline

Construct from initializer list.

Definition at line 168 of file ListExpression.H.

◆ ListWrap() [4/5]

template<class T>
ListWrap ( const UList< T > & elems)
inline

Definition at line 173 of file ListExpression.H.

◆ ListWrap() [5/5]

template<class T>
template<typename E>
ListWrap ( const ListExpression< E > & expr)
inline

Definition at line 180 of file ListExpression.H.

References size().

Here is the call graph for this function:

Member Function Documentation

◆ data() [1/2]

template<class T>
const auto & data ( ) const
inline

Definition at line 188 of file ListExpression.H.

Referenced by ListWrap(), and ListWrap().

Here is the caller graph for this function:

◆ data() [2/2]

template<class T>
auto & data ( )
inline

Definition at line 194 of file ListExpression.H.

◆ operator[]() [1/2]

template<class T>
value_type operator[] ( const label i) const
inline

Definition at line 199 of file ListExpression.H.

◆ operator[]() [2/2]

template<class T>
value_type & operator[] ( const label i)
inline

Definition at line 204 of file ListExpression.H.

◆ size()

template<class T>
auto size ( ) const
inlinenoexcept

Definition at line 209 of file ListExpression.H.

References Foam::noexcept.

Referenced by ListWrap().

Here is the caller graph for this function:

◆ cbegin()

template<class T>
auto cbegin ( ) const
inline

Definition at line 215 of file ListExpression.H.

◆ cend()

template<class T>
auto cend ( ) const
inline

Definition at line 219 of file ListExpression.H.

◆ begin()

template<class T>
auto begin ( )
inline

Definition at line 225 of file ListExpression.H.

◆ end()

template<class T>
auto end ( )
inline

Definition at line 229 of file ListExpression.H.

Member Data Documentation

◆ is_leaf

template<class T>
bool is_leaf = true
staticconstexpr

Definition at line 145 of file ListExpression.H.


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