zeroFieldField Class Reference

A class representing the concept of a field of zeroFields used to avoid unnecessary manipulations for objects which are known to be zero at compile-time. More...

Inheritance diagram for zeroFieldField:
[legend]
Collaboration diagram for zeroFieldField:
[legend]

Public Member Functions

 zeroFieldField ()=default
 Construct null. More...
 
zeroField operator[] (const label) const
 
- Public Member Functions inherited from zero
constexpr zero () noexcept
 Null constructible. More...
 
constexpr zero (Istream &) noexcept
 Construct from Istream consumes no content. More...
 
constexpr operator bool () const noexcept
 Return false (0) for bool. More...
 
constexpr operator label () const noexcept
 Return 0 for label. More...
 
constexpr operator float () const noexcept
 Return 0 for float. More...
 
constexpr operator double () const noexcept
 Return 0 for double. More...
 

Additional Inherited Members

- Public Types inherited from zero
typedef zero value_type
 

Detailed Description

A class representing the concept of a field of zeroFields used to avoid unnecessary manipulations for objects which are known to be zero 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 zeroFieldField.H.

Constructor & Destructor Documentation

◆ zeroFieldField()

zeroFieldField ( )
default

Construct null.

Member Function Documentation

◆ operator[]()

zeroField operator[] ( const  label) const
inline

Definition at line 68 of file zeroFieldField.H.

References Foam::vtk::Tools::zeroField().

Here is the call graph for this function:

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