Loading...
Searching...
No Matches
UniformList< Type > Class Template Reference

A single value that is represented as a list with an operator[] to access the value. This can be useful for templated operations expecting a list accessor. More...

#include <UniformList.H>

Inheritance diagram for UniformList< Type >:

Public Member Functions

 UniformList (const Type &val) noexcept
 Construct from given value.
 UniformList (Type &&val) noexcept
 Move construct from given value.
const Type & value () const noexcept
 Return the value.
Type & value () noexcept
 Non-const access to the value.
 operator const Type & () const noexcept
 Implicit cast to the value.
const Type & operator[] (const label) const noexcept
 Return the value.

Detailed Description

template<class Type>
class Foam::UniformList< Type >

A single value that is represented as a list with an operator[] to access the value. This can be useful for templated operations expecting a list accessor.

Note
The list currently has no sizing associated with it.

Definition at line 48 of file UniformList.H.

Constructor & Destructor Documentation

◆ UniformList() [1/2]

template<class Type>
UniformList ( const Type & val)
inlineexplicitnoexcept

Construct from given value.

Definition at line 64 of file UniformList.H.

References Foam::noexcept.

◆ UniformList() [2/2]

template<class Type>
UniformList ( Type && val)
inlineexplicitnoexcept

Move construct from given value.

Definition at line 72 of file UniformList.H.

References Foam::noexcept.

Member Function Documentation

◆ value() [1/2]

template<class Type>
const Type & value ( ) const
inlinenoexcept

Return the value.

Definition at line 83 of file UniformList.H.

References Foam::noexcept.

Referenced by UniformField< Type >::field(), Foam::max(), Foam::max(), Foam::max(), Foam::min(), Foam::min(), and Foam::min().

Here is the caller graph for this function:

◆ value() [2/2]

template<class Type>
Type & value ( )
inlinenoexcept

Non-const access to the value.

Definition at line 91 of file UniformList.H.

References Foam::noexcept.

◆ operator const Type &()

template<class Type>
operator const Type & ( ) const
inlinenoexcept

Implicit cast to the value.

Definition at line 102 of file UniformList.H.

◆ operator[]()

template<class Type>
const Type & operator[] ( const label ) const
inlinenoexcept

Return the value.

Definition at line 110 of file UniformList.H.


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