FDomainComplement Class Reference

#include <fdomaincomplement.h>

Inheritance diagram for FDomainComplement:
Inheritance graph
[legend]
Collaboration diagram for FDomainComplement:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FDomainComplement (Function3D *fValue, Function3D *fComp, bool bDelObjs=false)
 ~FDomainComplement ()
virtual double operator() (const VecDouble &p, const unsigned int component=0) const
virtual bool isInDomain (const VecDouble &p, unsigned component=0) const

Private Attributes

Function3DfValue
Function3DfComp
bool bDelObjs

Detailed Description

This function receives two functions (f1,f2) as parameters in the constructor. The first function defines the value returned by the function while the the second one defines the domain of the function prescribing that the domain is equal to the domain's complement of f2. So we can say that this::value == f1::value this::isInDomain == !(f2::isInDomain)

Definition at line 13 of file fdomaincomplement.h.


Constructor & Destructor Documentation

FDomainComplement::FDomainComplement ( Function3D fValue,
Function3D fComp,
bool  bDelObjs = false 
)

Definition at line 4 of file fdomaincomplement.cpp.

00005   :fValue(fValue),fComp(fComp),bDelObjs(bDelObjs)
00006  {
00007 
00008 }

FDomainComplement::~FDomainComplement (  ) 

Definition at line 21 of file fdomaincomplement.cpp.

00022 {
00023   if (bDelObjs)
00024   {
00025     delete fComp;
00026     delete fValue;
00027 
00028   }
00029 }


Member Function Documentation

bool FDomainComplement::isInDomain ( const VecDouble p,
unsigned  component = 0 
) const [virtual]

Reimplemented from GeneralFunctionInterface.

Definition at line 15 of file fdomaincomplement.cpp.

00016 {
00017   return !fComp->isInDomain(p,component);
00018 }

double FDomainComplement::operator() ( const VecDouble p,
const unsigned int  component = 0 
) const [virtual]

Implements GeneralFunctionInterface.

Definition at line 10 of file fdomaincomplement.cpp.

00011 {
00012   return (*fValue)(p,component);
00013 }


Member Data Documentation

Definition at line 17 of file fdomaincomplement.h.

Definition at line 16 of file fdomaincomplement.h.

Definition at line 16 of file fdomaincomplement.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Sun Apr 8 23:13:05 2012 for CO2INJECTION by  doxygen 1.6.3