00001 /* @HEADER@ */ 00002 // 00003 /* @HEADER@ */ 00004 00005 00006 #ifndef PLAYA_TESTSPECIFIER_HPP 00007 #define PLAYA_TESTSPECIFIER_HPP 00008 00009 namespace Playa 00010 { 00011 /** */ 00012 template <class Scalar> 00013 class TestSpecifier 00014 { 00015 public: 00016 /** \brief Local typedef for promoted scalar magnitude */ 00017 typedef typename Teuchos::ScalarTraits<Scalar>::magnitudeType ScalarMag; 00018 00019 /** 00020 * 00021 */ 00022 TestSpecifier(bool doTest, 00023 const ScalarMag& warningTol, 00024 const ScalarMag& errorTol) 00025 : doTest_(doTest), 00026 warningTol_(warningTol), 00027 errorTol_(errorTol) 00028 {;} 00029 00030 /** */ 00031 bool doTest() const {return doTest_;} 00032 00033 /** */ 00034 const ScalarMag& warningTol() const {return warningTol_;} 00035 00036 /** */ 00037 const ScalarMag& errorTol() const {return errorTol_;} 00038 00039 private: 00040 00041 bool doTest_; 00042 00043 double warningTol_; 00044 00045 double errorTol_; 00046 }; 00047 } 00048 #endif