MINT2
Public Member Functions | Private Attributes | List of all members
MINT::BasicComplex Class Reference

#include <BasicComplex.h>

Inheritance diagram for MINT::BasicComplex:
MINT::IReturnComplex

Public Member Functions

 BasicComplex (double initVal=0)
 
 BasicComplex (const std::complex< double > &initVal)
 
 BasicComplex (const BasicComplex &other)
 
 BasicComplex (IReturnComplex *other)
 
virtual std::complex< double > ComplexVal ()
 
virtual void setVal (std::complex< double > &val)
 
virtual std::complex< double > getVal () const
 
virtual ~BasicComplex ()
 
- Public Member Functions inherited from MINT::IReturnComplex
virtual ~IReturnComplex ()
 

Private Attributes

std::complex< double > _z
 

Additional Inherited Members

- Protected Member Functions inherited from MINT::IReturnComplex
 IReturnComplex ()
 

Detailed Description

Definition at line 8 of file BasicComplex.h.

Constructor & Destructor Documentation

◆ BasicComplex() [1/4]

BasicComplex::BasicComplex ( double  initVal = 0)

Definition at line 7 of file BasicComplex.cpp.

8  : _z(initVal, 0)
9 {
10 }
std::complex< double > _z
Definition: BasicComplex.h:9

◆ BasicComplex() [2/4]

BasicComplex::BasicComplex ( const std::complex< double > &  initVal)

Definition at line 11 of file BasicComplex.cpp.

12  : _z(initVal)
13 {
14 }
std::complex< double > _z
Definition: BasicComplex.h:9

◆ BasicComplex() [3/4]

BasicComplex::BasicComplex ( const BasicComplex other)

Definition at line 15 of file BasicComplex.cpp.

16  : IReturnComplex()
17  , _z(other._z)
18 {
19 }
std::complex< double > _z
Definition: BasicComplex.h:9

◆ BasicComplex() [4/4]

BasicComplex::BasicComplex ( IReturnComplex other)

Definition at line 20 of file BasicComplex.cpp.

21  : _z(irc->ComplexVal())
22 {
23 }
std::complex< double > _z
Definition: BasicComplex.h:9

◆ ~BasicComplex()

virtual MINT::BasicComplex::~BasicComplex ( )
inlinevirtual

Definition at line 20 of file BasicComplex.h.

20 {};

Member Function Documentation

◆ ComplexVal()

std::complex< double > BasicComplex::ComplexVal ( )
virtual

Implements MINT::IReturnComplex.

Definition at line 25 of file BasicComplex.cpp.

25  {
26  return getVal();
27 }
virtual std::complex< double > getVal() const

◆ getVal()

std::complex< double > BasicComplex::getVal ( ) const
virtual

Definition at line 31 of file BasicComplex.cpp.

31  {
32  return _z;
33 }
std::complex< double > _z
Definition: BasicComplex.h:9

◆ setVal()

void BasicComplex::setVal ( std::complex< double > &  val)
virtual

Definition at line 28 of file BasicComplex.cpp.

28  {
29  _z=val;
30 }
std::complex< double > _z
Definition: BasicComplex.h:9

Member Data Documentation

◆ _z

std::complex<double> MINT::BasicComplex::_z
private

Definition at line 9 of file BasicComplex.h.


The documentation for this class was generated from the following files: