Public Member Functions | List of all members
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 >:
Inheritance graph
[legend]

Public Member Functions

 UniformList (const T &val) noexcept
 
 UniformList (T &&val) noexcept
 
const Tvalue () const noexcept
 
Tvalue () noexcept
 
 operator const T & () const noexcept
 
const Toperator[] (const label) const noexcept
 

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

Constructor & Destructor Documentation

◆ UniformList() [1/2]

UniformList ( const T val)
inlineexplicitnoexcept

Definition at line 60 of file UniformList.H.

◆ UniformList() [2/2]

UniformList ( T &&  val)
inlineexplicitnoexcept

Definition at line 66 of file UniformList.H.

Member Function Documentation

◆ value() [1/2]

const T& value ( ) const
inlinenoexcept

Definition at line 75 of file UniformList.H.

◆ value() [2/2]

T& value ( )
inlinenoexcept

Definition at line 81 of file UniformList.H.

◆ operator const T &()

operator const T & ( ) const
inlinenoexcept

Definition at line 90 of file UniformList.H.

◆ operator[]()

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

Definition at line 96 of file UniformList.H.


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