concepts::CmplxPart Class Referenceabstract
Abstract class for a function, which is one part of an complex function. More...
#include <complex.hh>
Public Member Functions | |
virtual Function< Real > & | add (const Function< Real > &fnc, Real a) |
Adds a times fnc to this function. More... | |
CmplxPart (const Function< Cmplx > &fnc) | |
Constructor. More... | |
CmplxPart (Function< Cmplx > &fnc) | |
uint | dim () const |
Returns the dimension of the function. More... | |
virtual Real | operator() (uint i) const=0 |
Index operator. More... | |
virtual Real & | operator() (uint i)=0 |
Index operator. More... | |
virtual Function< Real > & | operator*= (Real a) |
Scaling operator. More... | |
virtual Function< Real > & | operator+= (const Function< Real > &fnc) |
Addition operator. More... | |
virtual Function< Real > & | operator+= (Real c) |
Addition operator. More... | |
virtual Function< Real > & | operator-= (const Function< Real > &fnc) |
Subtraction operator. More... | |
virtual Function< Real > & | operator-= (Real c) |
Subtraction operator. More... | |
virtual Function< Real > & | operator= (const Function< Real > &fnc) |
Assignment operator. More... | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Protected Attributes | |
const Function< Cmplx > * | cfnc_ |
uint | dim_ |
Dimension of the function (or of the space the function is defined) More... | |
Function< Cmplx > * | fnc_ |
Detailed Description
Abstract class for a function, which is one part of an complex function.
Derived in RealPart and ImagPart.
Definition at line 25 of file complex.hh.
Constructor & Destructor Documentation
◆ CmplxPart() [1/2]
Constructor.
Definition at line 28 of file complex.hh.
◆ CmplxPart() [2/2]
Definition at line 30 of file complex.hh.
Member Function Documentation
◆ add()
|
virtualinherited |
Adds a
times fnc
to this function.
◆ dim()
|
inlineinherited |
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Function< Real >.
Reimplemented in concepts::ImagPart, and concepts::RealPart.
◆ operator()() [1/2]
|
pure virtualinherited |
Index operator.
Implemented in concepts::ImagPart, and concepts::RealPart.
◆ operator()() [2/2]
|
pure virtualinherited |
Index operator.
Implemented in concepts::ImagPart, and concepts::RealPart.
◆ operator*=()
|
virtualinherited |
Scaling operator.
◆ operator+=() [1/2]
|
virtualinherited |
Addition operator.
◆ operator+=() [2/2]
|
virtualinherited |
Addition operator.
◆ operator-=() [1/2]
|
virtualinherited |
Subtraction operator.
◆ operator-=() [2/2]
|
virtualinherited |
Subtraction operator.
◆ operator=()
|
inlinevirtual |
Assignment operator.
Implements concepts::Function< Real >.
Definition at line 34 of file complex.hh.
Member Data Documentation
◆ cfnc_
Definition at line 40 of file complex.hh.
◆ dim_
|
protectedinherited |
◆ fnc_
Definition at line 41 of file complex.hh.
The documentation for this class was generated from the following file:
- function/complex.hh