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

Expression wrap of non-const reference to List. More...

#include <ListExpression.H>

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

Public Types

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

Public Member Functions

 ListRefWrap (ListRefWrap< T > &w)
 Copy construct.
 ListRefWrap (ListRefWrap< T > &&elems)
 Move construct.
 ListRefWrap (const label size, List< T > &elems)
 Construct from List and expected size. This is to enforce that our size() member function returns the correct size. Use the construct-from-expression otherwise.
template<typename E>
 ListRefWrap (List< T > &elems, const ListExpression< E > &expr)
template<typename E>
void operator= (const ListExpression< E > &expr)
 Assignment.
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< ListRefWrap< 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
Static Public Attributes inherited from ListExpression< ListRefWrap< T > >
static constexpr bool is_leaf

Detailed Description

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

Expression wrap of non-const reference to List.

Definition at line 244 of file ListExpression.H.

Member Typedef Documentation

◆ value_type

template<class T>
typedef T value_type

Definition at line 253 of file ListExpression.H.

◆ const_iterator

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

Definition at line 332 of file ListExpression.H.

◆ iterator

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

Definition at line 342 of file ListExpression.H.

Constructor & Destructor Documentation

◆ ListRefWrap() [1/4]

template<class T>
ListRefWrap ( ListRefWrap< T > & w)
inline

Copy construct.

Definition at line 258 of file ListExpression.H.

◆ ListRefWrap() [2/4]

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

Move construct.

Definition at line 266 of file ListExpression.H.

◆ ListRefWrap() [3/4]

template<class T>
ListRefWrap ( const label size,
List< T > & elems )
inline

Construct from List and expected size. This is to enforce that our size() member function returns the correct size. Use the construct-from-expression otherwise.

Definition at line 276 of file ListExpression.H.

◆ ListRefWrap() [4/4]

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

Definition at line 285 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 300 of file ListExpression.H.

◆ data() [1/2]

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

Definition at line 306 of file ListExpression.H.

◆ data() [2/2]

template<class T>
auto & data ( )
inline

Definition at line 312 of file ListExpression.H.

◆ operator[]() [1/2]

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

Definition at line 317 of file ListExpression.H.

◆ operator[]() [2/2]

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

Definition at line 322 of file ListExpression.H.

◆ size()

template<class T>
auto size ( ) const
inlinenoexcept

Definition at line 327 of file ListExpression.H.

◆ cbegin()

template<class T>
auto cbegin ( ) const
inline

Definition at line 333 of file ListExpression.H.

◆ cend()

template<class T>
auto cend ( ) const
inline

Definition at line 337 of file ListExpression.H.

◆ begin()

template<class T>
auto begin ( )
inline

Definition at line 343 of file ListExpression.H.

◆ end()

template<class T>
auto end ( )
inline

Definition at line 347 of file ListExpression.H.

Member Data Documentation

◆ is_leaf

template<class T>
bool is_leaf = false
staticconstexpr

Definition at line 251 of file ListExpression.H.


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