Abstract class for a function, which is one part of an complex function. More...

#include <complex.hh>

Inheritance diagram for concepts::CmplxPart:
concepts::Function< Real > concepts::OutputOperator concepts::ImagPart concepts::RealPart

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 Realoperator() (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.

Author
Kersten Schmidt, 2005

Definition at line 25 of file complex.hh.

Constructor & Destructor Documentation

◆ CmplxPart() [1/2]

concepts::CmplxPart::CmplxPart ( const Function< Cmplx > &  fnc)
inline

Constructor.

Definition at line 28 of file complex.hh.

◆ CmplxPart() [2/2]

concepts::CmplxPart::CmplxPart ( Function< Cmplx > &  fnc)
inline

Definition at line 30 of file complex.hh.

Member Function Documentation

◆ add()

virtual Function<Real >& concepts::Function< Real >::add ( const Function< Real > &  fnc,
Real  a 
)
virtualinherited

Adds a times fnc to this function.

◆ dim()

uint concepts::Function< Real >::dim
inlineinherited

Returns the dimension of the function.

Definition at line 53 of file basis.hh.

◆ info()

virtual std::ostream& concepts::CmplxPart::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::Function< Real >.

Reimplemented in concepts::ImagPart, and concepts::RealPart.

◆ operator()() [1/2]

virtual Real concepts::Function< Real >::operator() ( uint  i) const
pure virtualinherited

Index operator.

Implemented in concepts::ImagPart, and concepts::RealPart.

◆ operator()() [2/2]

virtual Real & concepts::Function< Real >::operator() ( uint  i)
pure virtualinherited

Index operator.

Implemented in concepts::ImagPart, and concepts::RealPart.

◆ operator*=()

virtual Function<Real >& concepts::Function< Real >::operator*= ( Real  a)
virtualinherited

Scaling operator.

◆ operator+=() [1/2]

virtual Function<Real >& concepts::Function< Real >::operator+= ( const Function< Real > &  fnc)
virtualinherited

Addition operator.

◆ operator+=() [2/2]

virtual Function<Real >& concepts::Function< Real >::operator+= ( Real  c)
virtualinherited

Addition operator.

◆ operator-=() [1/2]

virtual Function<Real >& concepts::Function< Real >::operator-= ( const Function< Real > &  fnc)
virtualinherited

Subtraction operator.

◆ operator-=() [2/2]

virtual Function<Real >& concepts::Function< Real >::operator-= ( Real  c)
virtualinherited

Subtraction operator.

◆ operator=()

virtual Function<Real>& concepts::CmplxPart::operator= ( const Function< Real > &  fnc)
inlinevirtual

Assignment operator.

Implements concepts::Function< Real >.

Definition at line 34 of file complex.hh.

Member Data Documentation

◆ cfnc_

const Function<Cmplx>* concepts::CmplxPart::cfnc_
protected

Definition at line 40 of file complex.hh.

◆ dim_

uint concepts::Function< Real >::dim_
protectedinherited

Dimension of the function (or of the space the function is defined)

Definition at line 57 of file basis.hh.

◆ fnc_

Function<Cmplx>* concepts::CmplxPart::fnc_
protected

Definition at line 41 of file complex.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich