oneField Class Reference

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

Inheritance diagram for oneField:
Collaboration diagram for oneField:

Public Types

typedef oneField FieldType
 
- Public Types inherited from one
typedef one value_type
 

Public Member Functions

 oneField ()
 Construct null. More...
 
one operator[] (const label) const
 
oneField primitiveField () 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...
 

Detailed Description

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

Member Typedef Documentation

◆ FieldType

Definition at line 59 of file oneField.H.

Constructor & Destructor Documentation

◆ oneField()

oneField ( )
inline

Construct null.

Definition at line 65 of file oneField.H.

Member Function Documentation

◆ operator[]()

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

Definition at line 30 of file oneFieldI.H.

References one::one().

Here is the call graph for this function:

◆ primitiveField()

Foam::oneField primitiveField ( ) const
inline

Definition at line 36 of file oneFieldI.H.


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