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:
Collaboration diagram for zeroFieldField:

Public Member Functions

 zeroFieldField ()
 Construct null. More...
 
zeroField operator[] (const label) const
 
- Public Member Functions inherited from zero
 zero ()
 Construct null. More...
 
 operator bool () const
 Return 0 for bool. More...
 
 operator label () const
 Return 0 for label. More...
 
 operator float () const
 Return 0 for float. More...
 
 operator double () const
 Return 0 for double. More...
 
 operator long double () const
 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 50 of file zeroFieldField.H.

Constructor & Destructor Documentation

◆ zeroFieldField()

zeroFieldField ( )
inline

Construct null.

Definition at line 60 of file zeroFieldField.H.

References zeroFieldField::operator[]().

Here is the call graph for this function:

Member Function Documentation

◆ operator[]()

Foam::zeroField operator[] ( const label  ) const
inline

Definition at line 30 of file zeroFieldFieldI.H.

Referenced by zeroFieldField::zeroFieldField().

Here is the caller graph for this function:

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