MINT2
src
Mint
IReturnIntefaces
BasicComplex.cpp
Go to the documentation of this file.
1
// author: Jonas Rademacker (Jonas.Rademacker@bristol.ac.uk)
2
// status: Mon 9 Feb 2009 19:17:55 GMT
3
4
#include "
Mint/BasicComplex.h
"
5
using namespace
MINT
;
6
7
BasicComplex::BasicComplex
(
double
initVal)
8
: _z(initVal, 0)
9
{
10
}
11
BasicComplex::BasicComplex
(
const
std::complex<double>& initVal)
12
: _z(initVal)
13
{
14
}
15
BasicComplex::BasicComplex
(
const
BasicComplex
& other)
16
:
IReturnComplex
()
17
, _z(other._z)
18
{
19
}
20
BasicComplex::BasicComplex
(
IReturnComplex
* irc)
21
: _z(irc->ComplexVal())
22
{
23
}
24
25
std::complex<double>
BasicComplex::ComplexVal
(){
26
return
getVal
();
27
}
28
void
BasicComplex::setVal
(std::complex<double>& val){
29
_z
=val;
30
}
31
std::complex<double>
BasicComplex::getVal
()
const
{
32
return
_z
;
33
}
MINT::BasicComplex::getVal
virtual std::complex< double > getVal() const
Definition:
BasicComplex.cpp:31
BasicComplex.h
MINT::BasicComplex::ComplexVal
virtual std::complex< double > ComplexVal()
Definition:
BasicComplex.cpp:25
MINT::IReturnComplex
Definition:
IReturnComplex.h:9
MINT::BasicComplex
Definition:
BasicComplex.h:8
MINT::BasicComplex::BasicComplex
BasicComplex(double initVal=0)
Definition:
BasicComplex.cpp:7
MINT::BasicComplex::setVal
virtual void setVal(std::complex< double > &val)
Definition:
BasicComplex.cpp:28
MINT
Definition:
BasicComplex.h:7
MINT::BasicComplex::_z
std::complex< double > _z
Definition:
BasicComplex.h:9
Generated by
1.8.15