MINT2
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 
8  : _z(initVal, 0)
9 {
10 }
11 BasicComplex::BasicComplex(const std::complex<double>& initVal)
12  : _z(initVal)
13 {
14 }
16  : IReturnComplex()
17  , _z(other._z)
18 {
19 }
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 }
virtual std::complex< double > getVal() const
virtual std::complex< double > ComplexVal()
BasicComplex(double initVal=0)
Definition: BasicComplex.cpp:7
virtual void setVal(std::complex< double > &val)
std::complex< double > _z
Definition: BasicComplex.h:9