oneFieldField Class Reference

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...

Inheritance diagram for oneFieldField:
Collaboration diagram for oneFieldField:

Public Member Functions

 oneFieldField ()
 Construct null. More...
 
oneField operator[] (const label) const
 
- Public Member Functions inherited from one
 one ()
 Construct null. More...
 
 operator label () const
 Return 1 for label. More...
 
 operator float () const
 Return 1 for float. More...
 
 operator double () const
 Return 1 for double. More...
 
 operator long double () const
 Return 1 for double. More...
 

Additional Inherited Members

- Public Types inherited from one
typedef one value_type
 

Detailed Description

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 50 of file oneFieldField.H.

Constructor & Destructor Documentation

◆ oneFieldField()

oneFieldField ( )
inline

Construct null.

Definition at line 60 of file oneFieldField.H.

Member Function Documentation

◆ operator[]()

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

Definition at line 30 of file oneFieldFieldI.H.


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