CMTDataComp Class Reference

#include <CMTDataComp.h>

Collaboration diagram for CMTDataComp:

Collaboration graph
[legend]
List of all members.

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 CMTDataCompoperator= (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

Detailed Description

The class CMTDataComp stores the values of the impedance tensor, the error estimates along with the apparent resistivity and phase. Units are $ km/s$ for Z, $ \Omega m $ for $ \rho_a $ 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.


Constructor & Destructor Documentation

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]

The destructor is empty,too.

Definition at line 23 of file CMTDataComp.cpp.

00024 {
00025 }


Member Function Documentation

std::string CMTDataComp::GetName (  )  const [inline]

Definition at line 34 of file CMTDataComp.h.

00034 {return name;}

trealdata CMTDataComp::GetRhoa (  )  const [inline]

Definition at line 35 of file CMTDataComp.h.

00035 {return rhoa;} 

trealdata CMTDataComp::GetPhi (  )  const [inline]

Definition at line 36 of file CMTDataComp.h.

00036 {return phi;}

trealdata CMTDataComp::GetdRhoa (  )  const [inline]

Definition at line 37 of file CMTDataComp.h.

00037 {return drhoa;}

trealdata CMTDataComp::GetdPhi (  )  const [inline]

Definition at line 38 of file CMTDataComp.h.

00038 {return dphi;}

tcompdata CMTDataComp::GetZ (  )  const [inline]

Definition at line 39 of file CMTDataComp.h.

00039 {return Z;}

trealdata CMTDataComp::GetdZ (  )  const [inline]

Definition at line 40 of file CMTDataComp.h.

00040 {return dZ;}

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 }


Friends And Related Function Documentation

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.


The documentation for this class was generated from the following files:
Generated on Thu Nov 22 14:07:44 2007 for GPLIB++ by  doxygen 1.5.1