Garfield++ v1r0
A toolkit for the detailed simulation of particle detectors based on ionisation measurement in gases and semiconductors
Loading...
Searching...
No Matches
VirtEqualStepCoorMesh< T > Class Template Reference

#include <tline.h>

+ Inheritance diagram for VirtEqualStepCoorMesh< T >:

Public Member Functions

virtual long get_qi (void) const
 
virtual T get_xmin (void) const
 
virtual T get_xmax (void) const
 
virtual void get_scoor (long n, T &b) const
 
virtual int get_interval (long n, T &b1, T &b2) const
 
virtual int get_interval (T x, long &n1) const
 
virtual int get_interval (T x, long &n1, T &b1, long &n2, T &b2) const
 
virtual int get_interval_extrap (T x, long &n1, T &b1, long &n2, T &b2) const
 
virtual int get_step (long n, T &fstep) const
 
 VirtEqualStepCoorMesh (void)
 
 VirtEqualStepCoorMesh (long fq, T fxmin, T fxmax)
 
virtual void print (std::ostream &file) const
 
 macro_copy_total (VirtEqualStepCoorMesh< T >)
 
virtual ~VirtEqualStepCoorMesh ()
 
virtual int operator== (const AbsCoorMesh< T > &m2)
 
virtual int operator!= (const AbsCoorMesh< T > &m2)
 
virtual int apeq_mant (const AbsCoorMesh< T > &m2, T prec)
 
- Public Member Functions inherited from AbsCoorMesh< T >
virtual long get_qi (void) const =0
 
virtual T get_xmin (void) const =0
 
virtual T get_xmax (void) const =0
 
virtual void get_scoor (long n, T &b) const =0
 
virtual int get_interval (long n, T &b1, T &b2) const =0
 
virtual int get_interval (T x, long &n1) const =0
 
virtual int get_interval (T x, long &n1, T &b1, long &n2, T &b2) const =0
 
virtual int get_interval_extrap (T x, long &n1, T &b1, long &n2, T &b2) const =0
 
virtual int get_step (long n, T &fstep) const =0
 
virtual void print (std::ostream &file) const
 
 macro_copy_total_zero (AbsCoorMesh< T >)
 
virtual ~AbsCoorMesh ()
 
virtual int operator== (const AbsCoorMesh< T > &)
 
virtual int operator!= (const AbsCoorMesh< T > &)
 
virtual int apeq_mant (const AbsCoorMesh< T > &, T)
 
- Public Member Functions inherited from EqualStepCoorMesh< T >
long get_qi (void) const
 
get_xmin (void) const
 
get_xmax (void) const
 
void get_scoor (long n, T &b) const
 
int get_interval (long n, T &b1, T &b2) const
 
virtual int get_interval (T x, long &n1) const
 
virtual int get_interval (T x, long &n1, T &b1, long &n2, T &b2) const
 
virtual int get_interval_extrap (T x, long &n1, T &b1, long &n2, T &b2) const
 
int get_step (long n, T &fstep) const
 
 EqualStepCoorMesh (void)
 
 EqualStepCoorMesh (long fq, T fxmin, T fxmax)
 
void print (std::ostream &file) const
 

Detailed Description

template<class T>
class VirtEqualStepCoorMesh< T >

Definition at line 1279 of file tline.h.

Constructor & Destructor Documentation

◆ VirtEqualStepCoorMesh() [1/2]

template<class T >
VirtEqualStepCoorMesh< T >::VirtEqualStepCoorMesh ( void  )
inline

Definition at line 1318 of file tline.h.

◆ VirtEqualStepCoorMesh() [2/2]

template<class T >
VirtEqualStepCoorMesh< T >::VirtEqualStepCoorMesh ( long  fq,
fxmin,
fxmax 
)
inline

Definition at line 1318 of file tline.h.

1324 : EqualStepCoorMesh<T>(fq, fxmin, fxmax) {}

◆ ~VirtEqualStepCoorMesh()

template<class T >
virtual VirtEqualStepCoorMesh< T >::~VirtEqualStepCoorMesh ( )
inlinevirtual

Definition at line 1334 of file tline.h.

1335{}

Member Function Documentation

◆ apeq_mant()

template<class T >
virtual int VirtEqualStepCoorMesh< T >::apeq_mant ( const AbsCoorMesh< T > &  m2,
prec 
)
inlinevirtual

Reimplemented from AbsCoorMesh< T >.

Definition at line 1354 of file tline.h.

1354 {
1355 mfunname("virtual int apeq_mant(const AbsCoorMesh<T>& m2, T prec)");
1356 const VirtEqualStepCoorMesh<T>* tm2;
1357 if (!verify_types(this, &m2, &tm2)) return 0;
1358 // The previous condition makes type of m2 equal to that of this.
1359 if (this == &m2) return 1; // addresses coincide, what means that it is
1360 // the same object. Put here but not in the first line in order
1361 // to detect missing operators== for derived casses as soon as possible.
1362 return ::apeq_mant(static_cast<const EqualStepCoorMesh<T> >(*this),
1363 static_cast<const EqualStepCoorMesh<T> >(*tm2), prec);
1364 }
#define mfunname(string)
Definition: FunNameStack.h:67
int verify_types(const T *ths, const B *b2, const T **tb2)
Definition: tline.h:1179

◆ get_interval() [1/3]

template<class T >
virtual int VirtEqualStepCoorMesh< T >::get_interval ( long  n,
T &  b1,
T &  b2 
) const
inlinevirtual

Implements AbsCoorMesh< T >.

Definition at line 1292 of file tline.h.

1292 {
1293 return EqualStepCoorMesh<T>::get_interval(n, b1, b2);
1294 }
int get_interval(long n, T &b1, T &b2) const
Definition: tline.h:72

◆ get_interval() [2/3]

template<class T >
virtual int VirtEqualStepCoorMesh< T >::get_interval ( x,
long &  n1 
) const
inlinevirtual

Reimplemented from EqualStepCoorMesh< T >.

Definition at line 1296 of file tline.h.

1298 {
1300 }

◆ get_interval() [3/3]

template<class T >
virtual int VirtEqualStepCoorMesh< T >::get_interval ( x,
long &  n1,
T &  b1,
long &  n2,
T &  b2 
) const
inlinevirtual

Reimplemented from EqualStepCoorMesh< T >.

Definition at line 1303 of file tline.h.

1306 {
1307 return EqualStepCoorMesh<T>::get_interval(x, n1, b1, n2, b2);
1308 }

◆ get_interval_extrap()

template<class T >
virtual int VirtEqualStepCoorMesh< T >::get_interval_extrap ( x,
long &  n1,
T &  b1,
long &  n2,
T &  b2 
) const
inlinevirtual

Reimplemented from EqualStepCoorMesh< T >.

Definition at line 1310 of file tline.h.

1310 {
1311 return EqualStepCoorMesh<T>::get_interval_extrap(x, n1, b1, n2, b2);
1312 }
virtual int get_interval_extrap(T x, long &n1, T &b1, long &n2, T &b2) const
Definition: tline.h:205

◆ get_qi()

template<class T >
virtual long VirtEqualStepCoorMesh< T >::get_qi ( void  ) const
inlinevirtual

Implements AbsCoorMesh< T >.

Definition at line 1282 of file tline.h.

1282{ return EqualStepCoorMesh<T>::get_qi(); }
long get_qi(void) const
Definition: tline.h:62

◆ get_scoor()

template<class T >
virtual void VirtEqualStepCoorMesh< T >::get_scoor ( long  n,
T &  b 
) const
inlinevirtual

Implements AbsCoorMesh< T >.

Definition at line 1288 of file tline.h.

1288 {
1290 }
void get_scoor(long n, T &b) const
Definition: tline.h:70

◆ get_step()

template<class T >
virtual int VirtEqualStepCoorMesh< T >::get_step ( long  n,
T &  fstep 
) const
inlinevirtual

Implements AbsCoorMesh< T >.

Definition at line 1318 of file tline.h.

1318 {
1319 return EqualStepCoorMesh<T>::get_step(n, fstep);
1320 }
int get_step(long n, T &fstep) const
Definition: tline.h:96

◆ get_xmax()

template<class T >
virtual T VirtEqualStepCoorMesh< T >::get_xmax ( void  ) const
inlinevirtual

Implements AbsCoorMesh< T >.

Definition at line 1284 of file tline.h.

T get_xmax(void) const
Definition: tline.h:66

◆ get_xmin()

template<class T >
virtual T VirtEqualStepCoorMesh< T >::get_xmin ( void  ) const
inlinevirtual

Implements AbsCoorMesh< T >.

Definition at line 1283 of file tline.h.

T get_xmin(void) const
Definition: tline.h:65

◆ macro_copy_total()

template<class T >
VirtEqualStepCoorMesh< T >::macro_copy_total ( VirtEqualStepCoorMesh< T >  )

◆ operator!=()

template<class T >
virtual int VirtEqualStepCoorMesh< T >::operator!= ( const AbsCoorMesh< T > &  m2)
inlinevirtual

Reimplemented from AbsCoorMesh< T >.

Definition at line 1348 of file tline.h.

1348 {
1349 if (operator==(m2) == 1)
1350 return 0;
1351 else
1352 return 1;
1353 }

◆ operator==()

template<class T >
virtual int VirtEqualStepCoorMesh< T >::operator== ( const AbsCoorMesh< T > &  m2)
inlinevirtual

Reimplemented from AbsCoorMesh< T >.

Definition at line 1336 of file tline.h.

1336 {
1337 mfunname("virtual int VirtEqualStepCoorMesh<T>::operator==(const "
1338 "AbsCoorMesh<T>& m2)");
1339 const VirtEqualStepCoorMesh<T>* tm2;
1340 if (!verify_types(this, &m2, &tm2)) return 0;
1341 // The previous condition makes type of m2 equal to that of this.
1342 if (this == &m2) return 1; // addresses coincide, what means that it is
1343 // the same object. Put here but not in the first line in order
1344 // to detect missing operators== for derived casses as soon as possible.
1345 return ::operator==(static_cast<const EqualStepCoorMesh<T> >(*this),
1346 static_cast<const EqualStepCoorMesh<T> >(*tm2));
1347 }

◆ print()

template<class T >
virtual void VirtEqualStepCoorMesh< T >::print ( std::ostream &  file) const
inlinevirtual

Reimplemented from AbsCoorMesh< T >.

Definition at line 1326 of file tline.h.

1326 {
1327 Ifile << "VirtEqualStepCoorMesh<T>: \n";
1328 indn.n += 2;
1329 // two blanks there above are necessary for correct reading
1331 indn.n -= 2;
1332 }
void print(std::ostream &file) const
Definition: tline.h:248
indentation indn
Definition: prstream.cpp:13
#define Ifile
Definition: prstream.h:207

Referenced by operator<<().


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