Ptv_match Class Reference

#include <Ptv.h>

List of all members.

Public Member Functions

 Ptv_match ()
 Ptv_match (unsigned int d_, double v_)
virtual ~Ptv_match ()
bool operator() (const Ptv &p)

Protected Attributes

unsigned int d
double v

Static Protected Attributes

static double tol = 1.0e-9


Detailed Description

Definition at line 44 of file Ptv.h.


Constructor & Destructor Documentation

Ptv_match::Ptv_match (  ) 

Definition at line 217 of file Ptv.cpp.

References d, and v.

00218 {
00219         d = 0 ; v = 0.0;
00220 }

Ptv_match::Ptv_match ( unsigned int  d_,
double  v_ 
)

Definition at line 223 of file Ptv.cpp.

References d, and v.

00224 {
00225         d = d_ ; v = v_;
00226 }

virtual Ptv_match::~Ptv_match (  )  [inline, virtual]

Definition at line 53 of file Ptv.h.

00053 {}


Member Function Documentation

bool Ptv_match::operator() ( const Ptv p  ) 

Definition at line 229 of file Ptv.cpp.

References d, tol, and v.

00230 {
00231         if ( v + tol >= p[d] && v - tol <= p[d] ) return true;
00232         else return false;
00233 }


Member Data Documentation

unsigned int Ptv_match::d [protected]

Definition at line 48 of file Ptv.h.

Referenced by operator()(), and Ptv_match().

double Ptv_match::tol = 1.0e-9 [static, protected]

Definition at line 47 of file Ptv.h.

Referenced by operator()().

double Ptv_match::v [protected]

Definition at line 49 of file Ptv.h.

Referenced by operator()(), and Ptv_match().


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

Generated on Mon Aug 31 16:17:05 2009 for SyFi by  doxygen 1.5.9