FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

FieldField.C File Reference

Generic fieldField type. More...


Detailed Description

Generic fieldField type.

Definition in file FieldField.C.

#include "src/OpenFOAM/fields/FieldFields/FieldField/FieldField.H"
#include "src/OpenFOAM/fields/FieldFields/FieldField/FieldFieldFunctions.C"
Include dependency graph for FieldField.C:

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)

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 346 of file FieldField.C.