A class representing the concept of a field of oneFields used to avoid unnecessary manipulations for objects which are known to be one at compile-time. More...
Public Member Functions | |
| oneFieldField ()=default | |
| Construct null. More... | |
| oneField | operator[] (const label) const |
Public Member Functions inherited from one | |
| constexpr | one () noexcept |
| Default construct. More... | |
| constexpr | one (Istream &) noexcept |
| Construct from Istream consumes no content. More... | |
| constexpr | operator label () const noexcept |
| Return 1 for label. More... | |
| constexpr | operator float () const noexcept |
| Return 1 for float. More... | |
| constexpr | operator double () const noexcept |
| Return 1 for double. More... | |
Additional Inherited Members | |
Public Types inherited from one | |
| typedef one | value_type |
A class representing the concept of a field of oneFields 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 53 of file oneFieldField.H.
|
default |
Construct null.
|
inline |
Definition at line 67 of file oneFieldField.H.