OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

FieldField.C File Reference

Generic fieldField type. More...

Go to the source code of this file.


Namespaces

namespace  Foam
 Namespace for OpenFOAM.

Defines

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


Define 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;                                             \
    }                                                                         \
}

Definition at line 339 of file FieldField.C.

Copyright © 2000-2009 OpenCFD Ltd