A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to be one at compile-time. It is also used for tagged dispatch. More...
#include <one.H>

Public Types | |
| typedef one | value_type |
| The value type. | |
Public Member Functions | |
| constexpr | one () noexcept |
| Default construct. | |
| constexpr | one (Istream &) noexcept |
| Construct from Istream consumes no content. | |
| constexpr | operator label () const noexcept |
| Return 1 for label. | |
| constexpr | operator float () const noexcept |
| Return 1 for float. | |
| constexpr | operator double () const noexcept |
| Return 1 for double. | |
| one | operator[] (const label) const noexcept |
| Component-wise or element-wise access returns one. | |
A class representing the concept of 1 (one) that can be used to avoid manipulating objects known to be one at compile-time. It is also used for tagged dispatch.
| typedef one value_type |
|
inlineconstexprnoexcept |
Default construct.
Definition at line 68 of file one.H.
References Foam::noexcept.
Referenced by geometricOneField::operator[](), operator[](), and oneFieldField::operator[]().

|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlinenoexcept |