UniformList< T > 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...

Inheritance diagram for UniformList< T >:
[legend]

Public Member Functions

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

Detailed Description

template<class T>
class Foam::UniformList< T >

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 54 of file UniformList.H.

Constructor & Destructor Documentation

◆ UniformList() [1/2]

UniformList ( const T val)
inlineexplicitnoexcept

Construct from given value.

Definition at line 66 of file UniformList.H.

◆ UniformList() [2/2]

UniformList ( T &&  val)
inlineexplicitnoexcept

Move construct from given value.

Definition at line 72 of file UniformList.H.

Member Function Documentation

◆ value() [1/2]

const T & value ( ) const
inlinenoexcept

Return the value.

Definition at line 81 of file UniformList.H.

Referenced by Foam::max(), and Foam::min().

Here is the caller graph for this function:

◆ value() [2/2]

T & value ( )
inlinenoexcept

Non-const access to the value.

Definition at line 87 of file UniformList.H.

◆ operator const T &()

operator const T & ( ) const
inlinenoexcept

Implicit cast to the value.

Definition at line 96 of file UniformList.H.

◆ operator[]()

const T & operator[] ( const  label) const
inlinenoexcept

Return the value.

Definition at line 102 of file UniformList.H.


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