Loading...
Searching...
No Matches
AMICache.H File Reference
Include dependency graph for AMICache.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AMICache
 Provides caching of weights and addressing to AMIInterpolation. More...

Namespaces

namespace  Foam
 Namespace for OpenFOAM.

Macros

#define defineMethods01(Src, Tgt, idx)
#define defineMethodsIndex(Src, Tgt)

Detailed Description

Original source file AMICache.H

Definition in file AMICache.H.

Macro Definition Documentation

◆ defineMethods01

#define defineMethods01 ( Src,
Tgt,
idx )
Value:
const labelListList& c##Src##Address##idx() const \
{ \
checkBounds(index##idx##_); \
return toSource_ ? \
cached##Src##Address_[index##idx##_] \
: cached##Tgt##Address_[index##idx##_]; \
} \
const scalarListList& c##Src##Weights##idx() const \
{ \
checkBounds(index##idx##_); \
return toSource_ ? \
cached##Src##Weights_[index##idx##_] \
: cached##Tgt##Weights_[index##idx##_]; \
} \
const scalarField& c##Src##WeightsSum##idx() const \
{ \
checkBounds(index##idx##_); \
return toSource_ ? \
cached##Src##WeightsSum_[index##idx##_] \
: cached##Tgt##WeightsSum_[index##idx##_]; \
} \
const autoPtr<mapDistribute>& c##Src##MapPtr##idx() const \
{ \
checkBounds(index##idx##_); \
return toSource_ ? \
cached##Src##MapPtr_[index##idx##_] \
: cached##Tgt##MapPtr_[index##idx##_]; \
}
const dimensionedScalar c
Speed of light in a vacuum.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.

Definition at line 431 of file AMICache.H.

Referenced by AMICache::cSrcAddress1(), AMICache::cTgtAddress0(), and AMICache::cTgtAddress1().

◆ defineMethodsIndex

#define defineMethodsIndex ( Src,
Tgt )
Value:
const labelListList& c##Src##Address(const label index) const \
{ \
checkBounds(index); \
return toSource_ ? \
cached##Src##Address_[index] \
: cached##Tgt##Address_[index]; \
} \
const scalarListList& c##Src##Weights(const label index) const \
{ \
checkBounds(index); \
return toSource_ ? \
cached##Src##Weights_[index] \
: cached##Tgt##Weights_[index]; \
} \
const scalarField& c##Src##WeightsSum(const label index) const \
{ \
checkBounds(index); \
return toSource_ ? \
cached##Src##WeightsSum_[index] \
: cached##Tgt##WeightsSum_[index]; \
} \
const autoPtr<mapDistribute>& c##Src##MapPtr(const label index) \
const \
{ \
checkBounds(index); \
return toSource_ ? \
cached##Src##MapPtr_[index] \
: cached##Tgt##MapPtr_[index]; \
}

Definition at line 470 of file AMICache.H.

Referenced by AMICache::cTgtAddress().