Loading...
Searching...
No Matches
GeometricFieldConstTmpWrap< GeoField > Class Template Reference

Expression wrap of const tmp to GeometricField. More...

#include <GeometricFieldExpression.H>

Inheritance diagram for GeometricFieldConstTmpWrap< GeoField >:
Collaboration diagram for GeometricFieldConstTmpWrap< GeoField >:

Public Types

typedef GeoField this_type
 The GeometricField type.
typedef GeoField::value_type value_type
 Type to return for internal field.
typedef ListConstRefWrap< value_typeIntExpr
 Type to return for patchField.
typedef ListConstRefWrap< value_typeUncoupledPatchExpr
typedef ListConstTmpWrap< Field< value_type > > CoupledPatchExpr

Public Member Functions

 GeometricFieldConstTmpWrap (const tmp< this_type > &elems)
 GeometricFieldConstTmpWrap (const GeometricFieldConstTmpWrap< GeoField > &w)
 ~GeometricFieldConstTmpWrap ()
const auto & data () const
value_type operator[] (const label i) const
auto size () const noexcept
IntExpr internalField () const
UncoupledPatchExpr patchField (const label i) const
CoupledPatchExpr coupledPatchField (const label i) const
template<class AccessOp>
auto access (const AccessOp &cop, const label i) const
Public Member Functions inherited from GeometricFieldExpression< GeometricFieldConstTmpWrap< GeoField >, ListConstRefWrap< GeoField::value_type >, ListConstRefWrap< GeoField::value_type >, ListConstTmpWrap< Field< GeoField::value_type > >, GeoField::value_type >
 GeometricFieldExpression (const dimensionSet &dimensions, const orientedType oriented)
GeoField::value_type operator[] (const label i) const
auto size () const noexcept
const dimensionSetdimensions () const noexcept
const orientedTypeoriented () const noexcept
ListConstRefWrap< GeoField::value_type > internalField () const
ListConstRefWrap< GeoField::value_type > patchField (const label i)
ListConstTmpWrap< Field< GeoField::value_type > > coupledPatchField (const label i)
auto access (const Op &cop, const label i) const
GeoField & evaluate (GeoField &fld, const bool force=false) const
 Helper to evaluate a GeometricField.

Static Public Attributes

static constexpr bool is_leaf = false
 Have expressions use copy to maintain tmp refCount.
Static Public Attributes inherited from GeometricFieldExpression< GeometricFieldConstTmpWrap< GeoField >, ListConstRefWrap< GeoField::value_type >, ListConstRefWrap< GeoField::value_type >, ListConstTmpWrap< Field< GeoField::value_type > >, GeoField::value_type >
static constexpr bool is_leaf

Additional Inherited Members

Protected Attributes inherited from GeometricFieldExpression< GeometricFieldConstTmpWrap< GeoField >, ListConstRefWrap< GeoField::value_type >, ListConstRefWrap< GeoField::value_type >, ListConstTmpWrap< Field< GeoField::value_type > >, GeoField::value_type >
const dimensionSet dimensions_
const orientedType oriented_

Detailed Description

template<class GeoField>
class Foam::Expression::GeometricFieldConstTmpWrap< GeoField >

Expression wrap of const tmp to GeometricField.

Definition at line 765 of file GeometricFieldExpression.H.

Member Typedef Documentation

◆ this_type

template<class GeoField>
typedef GeoField this_type

The GeometricField type.

Definition at line 786 of file GeometricFieldExpression.H.

◆ value_type

template<class GeoField>
typedef GeoField::value_type value_type

Type to return for internal field.

Definition at line 791 of file GeometricFieldExpression.H.

◆ IntExpr

template<class GeoField>
typedef ListConstRefWrap<value_type> IntExpr

Type to return for patchField.

Definition at line 796 of file GeometricFieldExpression.H.

◆ UncoupledPatchExpr

template<class GeoField>
typedef ListConstRefWrap<value_type> UncoupledPatchExpr

Definition at line 797 of file GeometricFieldExpression.H.

◆ CoupledPatchExpr

template<class GeoField>
typedef ListConstTmpWrap<Field<value_type> > CoupledPatchExpr

Definition at line 798 of file GeometricFieldExpression.H.

Constructor & Destructor Documentation

◆ GeometricFieldConstTmpWrap() [1/2]

◆ GeometricFieldConstTmpWrap() [2/2]

◆ ~GeometricFieldConstTmpWrap()

template<class GeoField>
~GeometricFieldConstTmpWrap ( )
inline

Definition at line 862 of file GeometricFieldExpression.H.

Member Function Documentation

◆ data()

template<class GeoField>
const auto & data ( ) const
inline

Definition at line 872 of file GeometricFieldExpression.H.

◆ operator[]()

template<class GeoField>
value_type operator[] ( const label i) const
inline

Definition at line 877 of file GeometricFieldExpression.H.

◆ size()

template<class GeoField>
auto size ( ) const
inlinenoexcept

Definition at line 883 of file GeometricFieldExpression.H.

References Foam::noexcept.

◆ internalField()

template<class GeoField>
IntExpr internalField ( ) const
inline

Definition at line 888 of file GeometricFieldExpression.H.

◆ patchField()

template<class GeoField>
UncoupledPatchExpr patchField ( const label i) const
inline

Definition at line 893 of file GeometricFieldExpression.H.

References fld(), Foam::isA(), and List< T >::null().

Here is the call graph for this function:

◆ coupledPatchField()

template<class GeoField>
CoupledPatchExpr coupledPatchField ( const label i) const
inline

Definition at line 918 of file GeometricFieldExpression.H.

References fld(), Foam::isA(), and List< T >::null().

Here is the call graph for this function:

◆ access()

template<class GeoField>
template<class AccessOp>
auto access ( const AccessOp & cop,
const label i ) const
inline

Definition at line 943 of file GeometricFieldExpression.H.

Member Data Documentation

◆ is_leaf

template<class GeoField>
bool is_leaf = false
staticconstexpr

Have expressions use copy to maintain tmp refCount.

Definition at line 781 of file GeometricFieldExpression.H.


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