#include <fdomaincomplement.h>
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 | |
Function3D * | fValue |
Function3D * | fComp |
bool | bDelObjs |
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.
FDomainComplement::FDomainComplement | ( | Function3D * | fValue, | |
Function3D * | fComp, | |||
bool | bDelObjs = false | |||
) |
FDomainComplement::~FDomainComplement | ( | ) |
Definition at line 21 of file fdomaincomplement.cpp.
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 }
bool FDomainComplement::bDelObjs [private] |
Definition at line 17 of file fdomaincomplement.h.
Function3D * FDomainComplement::fComp [private] |
Definition at line 16 of file fdomaincomplement.h.
Function3D* FDomainComplement::fValue [private] |
Definition at line 16 of file fdomaincomplement.h.