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

Expression wrap of tmp to List. More...

#include <ListExpression.H>

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

Public Types

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

Public Member Functions

 ListTmpWrap (const tmp< T > &elems)
 ListTmpWrap (tmp< T > &elems)
template<typename E>
 ListTmpWrap (tmp< T > &elems, const ListExpression< E > &expr)
template<typename E>
void operator= (const ListExpression< E > &expr)
 Assignment.
const Tdata () const
value_type operator[] (const label i) const
auto size () const noexcept
auto cbegin () const
auto cend () const
auto begin ()
auto end ()
Public Member Functions inherited from ListExpression< ListTmpWrap< 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 = false
 Have expressions use copy to maintain tmp refCount.
Static Public Attributes inherited from ListExpression< ListTmpWrap< T > >
static constexpr bool is_leaf

Detailed Description

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

Expression wrap of tmp to List.

Definition at line 534 of file ListExpression.H.

Member Typedef Documentation

◆ value_type

template<class T>
typedef T::value_type value_type

Definition at line 547 of file ListExpression.H.

◆ const_iterator

template<class T>
typedef T::const_iterator const_iterator

Definition at line 599 of file ListExpression.H.

◆ iterator

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

Definition at line 608 of file ListExpression.H.

Constructor & Destructor Documentation

◆ ListTmpWrap() [1/3]

template<class T>
ListTmpWrap ( const tmp< T > & elems)
inline

Definition at line 550 of file ListExpression.H.

◆ ListTmpWrap() [2/3]

template<class T>
ListTmpWrap ( tmp< T > & elems)
inline

Definition at line 556 of file ListExpression.H.

◆ ListTmpWrap() [3/3]

template<class T>
template<typename E>
ListTmpWrap ( tmp< T > & elems,
const ListExpression< E > & expr )
inline

Definition at line 563 of file ListExpression.H.

Member Function Documentation

◆ operator=()

template<class T>
template<typename E>
void operator= ( const ListExpression< E > & expr)
inline

Assignment.

Definition at line 578 of file ListExpression.H.

◆ data()

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

Definition at line 584 of file ListExpression.H.

◆ operator[]()

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

Definition at line 589 of file ListExpression.H.

◆ size()

template<class T>
auto size ( ) const
inlinenoexcept

Definition at line 594 of file ListExpression.H.

◆ cbegin()

template<class T>
auto cbegin ( ) const
inline

Definition at line 600 of file ListExpression.H.

◆ cend()

template<class T>
auto cend ( ) const
inline

Definition at line 604 of file ListExpression.H.

◆ begin()

template<class T>
auto begin ( )
inline

Definition at line 609 of file ListExpression.H.

◆ end()

template<class T>
auto end ( )
inline

Definition at line 613 of file ListExpression.H.

Member Data Documentation

◆ is_leaf

template<class T>
bool is_leaf = false
staticconstexpr

Have expressions use copy to maintain tmp refCount.

Definition at line 545 of file ListExpression.H.


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