SyFi  0.3
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 58 of file Ptv.h.


Constructor & Destructor Documentation

Definition at line 234 of file Ptv.cpp.

References d, and v.

{
        d = 0 ; v = 0.0; // FIXME: What is this?
}
Ptv_match::Ptv_match ( unsigned int  d_,
double  v_ 
)

Definition at line 240 of file Ptv.cpp.

References d, and v.

{
        d = d_ ; v = v_;
}
virtual Ptv_match::~Ptv_match ( ) [inline, virtual]

Definition at line 67 of file Ptv.h.

{}

Member Function Documentation

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

Definition at line 246 of file Ptv.cpp.

References d, tol, and v.

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

Member Data Documentation

unsigned int Ptv_match::d [protected]

Definition at line 62 of file Ptv.h.

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

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

Definition at line 61 of file Ptv.h.

Referenced by operator()().

double Ptv_match::v [protected]

Definition at line 63 of file Ptv.h.

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


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator