A class representing the concept of a field of 1 used to avoid unnecessary manipulations for objects which are known to be one at compile-time. More...
Public Types | |
typedef oneField | FieldType |
![]() | |
typedef one | value_type |
Public Member Functions | |
oneField () noexcept=default | |
oneField | field () const noexcept |
one | operator[] (const label) const noexcept |
![]() | |
constexpr | one () noexcept |
constexpr | one (Istream &) noexcept |
constexpr | operator label () const noexcept |
constexpr | operator float () const noexcept |
constexpr | operator double () const noexcept |
A class representing the concept of a field of 1 used to avoid unnecessary manipulations for objects which are known to be one at compile-time.
Used for example as the density argument to a function written for compressible to be used for incompressible flow.
Definition at line 47 of file oneField.H.
Definition at line 55 of file oneField.H.
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 66 of file oneField.H.
|
inlinenoexcept |
Definition at line 74 of file oneField.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.