Namespaces | Macros | Functions
FieldField.C File Reference

Generic fieldField type. More...

Include dependency graph for FieldField.C:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 

Macros

#define COMPUTED_ASSIGNMENT(TYPE, op)
 

Functions

template<template< class > class Field, class Type1 , class Type2 >
void checkFields (const FieldField< Field, Type1 > &, const FieldField< Field, Type2 > &, const char *op)
 
template<template< class > class Field, class Type1 , class Type2 , class Type3 >
void checkFields (const FieldField< Field, Type1 > &, const FieldField< Field, Type2 > &, const FieldField< Field, Type3 > &, const char *op)
 
template<template< class > class Field, class Type >
Ostream & operator<< (Ostream &os, const FieldField< Field, Type > &f)
 
template<template< class > class Field, class Type >
Ostream & operator<< (Ostream &os, const tmp< FieldField< Field, Type >> &tf)
 

Detailed Description

Generic fieldField type.

Original source file FieldField.C

Definition in file FieldField.C.

Macro Definition Documentation

#define COMPUTED_ASSIGNMENT (   TYPE,
  op 
)
Value:
\
template<template<class> class Field, class Type> \
void FieldField<Field, Type>::operator op(const FieldField<Field, TYPE>& f) \
{ \
forAll(*this, i) \
{ \
this->operator[](i) op f[i]; \
} \
} \
\
template<template<class> class Field, class Type> \
void FieldField<Field, Type>::operator op \
( \
const tmp<FieldField<Field, TYPE>>& tf \
) \
{ \
operator op(tf()); \
tf.clear(); \
} \
\
template<template<class> class Field, class Type> \
void FieldField<Field, Type>::operator op(const TYPE& t) \
{ \
forAll(*this, i) \
{ \
this->operator[](i) op t; \
} \
}
#define forAll(list, i)
Loop across all elements in list.
Definition: UList.H:428
const tensorField & tf
labelList f(nPoints)

Definition at line 327 of file FieldField.C.