#include <CMTDataComp.h>
Collaboration diagram for CMTDataComp:

Public Member Functions | |
| std::string | GetName () const |
| trealdata | GetRhoa () const |
| trealdata | GetPhi () const |
| trealdata | GetdRhoa () const |
| trealdata | GetdPhi () const |
| tcompdata | GetZ () const |
| trealdata | GetdZ () const |
| CMTDataComp (const int nfreq=0) | |
| The constructor is empty. | |
| virtual | ~CMTDataComp () |
| The destructor is empty,too. | |
| virtual CMTDataComp & | operator= (const CMTDataComp &source) |
| virtual void | erase (const int index) |
Friends | |
| class | CMTStation |
| CMTStation needs to access the Update method, so we declare it a friend. | |
| class | C1DMTSynthData |
| class | JParser |
| class | EDIParser |
for Z,
for
and degree for the phase. The corresponding frequencies are not stored because normally it is used by CMTData or a derived class.
Definition at line 13 of file CMTDataComp.h.
| CMTDataComp::CMTDataComp | ( | const int | nfreq = 0 |
) |
The constructor is empty.
Definition at line 11 of file CMTDataComp.cpp.
00011 : 00012 name("unknown"), 00013 rhoa(nfreq), 00014 phi(nfreq), 00015 drhoa(nfreq), 00016 dphi(nfreq), 00017 Z(nfreq), 00018 dZ(nfreq) 00019 { 00020 00021 }
| CMTDataComp::~CMTDataComp | ( | ) | [virtual] |
| std::string CMTDataComp::GetName | ( | ) | const [inline] |
| trealdata CMTDataComp::GetRhoa | ( | ) | const [inline] |
| trealdata CMTDataComp::GetPhi | ( | ) | const [inline] |
| trealdata CMTDataComp::GetdRhoa | ( | ) | const [inline] |
| trealdata CMTDataComp::GetdPhi | ( | ) | const [inline] |
| tcompdata CMTDataComp::GetZ | ( | ) | const [inline] |
| trealdata CMTDataComp::GetdZ | ( | ) | const [inline] |
| CMTDataComp & CMTDataComp::operator= | ( | const CMTDataComp & | source | ) | [virtual] |
Definition at line 37 of file CMTDataComp.cpp.
References dphi, drhoa, dZ, name, phi, rhoa, and Z.
00038 { 00039 this->rhoa.assign(source.Z.size(),0); 00040 this->phi.assign(source.Z.size(),0); 00041 this->dphi.assign(source.Z.size(),0); 00042 this->drhoa.assign(source.Z.size(),0); 00043 this->Z.assign(source.Z.size(),0); 00044 this->dZ.assign(source.Z.size(),0); 00045 this->name = source.name; 00046 copy(source.rhoa.begin(),source.rhoa.end(),this->rhoa.begin()); 00047 copy(source.phi.begin(),source.phi.end(),this->phi.begin()); 00048 copy(source.drhoa.begin(),source.drhoa.end(),this->drhoa.begin()); 00049 copy(source.dphi.begin(),source.dphi.end(),this->dphi.begin()); 00050 copy(source.Z.begin(),source.Z.end(),this->Z.begin()); 00051 copy(source.dZ.begin(),source.dZ.end(),this->dZ.begin()); 00052 return *this; 00053 }
| void CMTDataComp::erase | ( | const int | index | ) | [virtual] |
If we want to erase one entry, we have to erase all the corresponding derived quantities as well
Definition at line 81 of file CMTDataComp.cpp.
00082 { 00083 rhoa.erase(rhoa.begin()+index); 00084 phi.erase(phi.begin()+index); 00085 drhoa.erase(drhoa.begin()+index); 00086 dphi.erase(dphi.begin()+index); 00087 Z.erase(Z.begin()+index); 00088 dZ.erase(dZ.begin()+index); 00089 }
friend class CMTStation [friend] |
CMTStation needs to access the Update method, so we declare it a friend.
Definition at line 46 of file CMTDataComp.h.
friend class C1DMTSynthData [friend] |
Definition at line 47 of file CMTDataComp.h.
friend class JParser [friend] |
Definition at line 48 of file CMTDataComp.h.
friend class EDIParser [friend] |
Definition at line 49 of file CMTDataComp.h.
1.5.1