Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

FastShower::TestStat Class Reference

#include <TestStat.h>

Collaboration diagram for FastShower::TestStat:

Collaboration graph
[legend]
List of all members.

Public Methods

 TestStat ()
 TestStat (int pass, int test)
TestStat & operator+= (const TestStat &t)
void incPass ()
void incFail ()
void incFail (std::string &s)
bool operator! () const
void reset ()
int npass () const
int ntest () const

Private Attributes

int m_npass
int m_ntest
std::string m_mess

Constructor & Destructor Documentation

FastShower::TestStat::TestStat   [inline]
 

Definition at line 15 of file TestStat.h.

References m_mess, m_npass, and m_ntest.

00015 :m_npass(0),m_ntest(0),m_mess("Failed: "){}

FastShower::TestStat::TestStat int    pass,
int    test
[inline]
 

Definition at line 16 of file TestStat.h.

References m_mess, m_npass, and m_ntest.

00016                                 :
00017       m_npass(pass),
00018       m_ntest(test),
00019       m_mess("Failed: "){}
    TestStat& operator+=(const TestStat& t);

Member Function Documentation

TestStat & FastShower::TestStat::operator+= const TestStat &    t
 

Definition at line 5 of file TestStat.cxx.

References m_npass, and m_ntest.

00005                                                    {
00006     m_npass+=rhs.m_npass;
00007     m_ntest+=rhs.m_ntest;
00008     return *this;
00009   }

void FastShower::TestStat::incPass   [inline]
 

Definition at line 21 of file TestStat.h.

References m_npass, and m_ntest.

Referenced by FastShower::UpdatingGaussianTester::test(), FastShower::ProcessedNormalTester::test1(), FastShower::ProcessedFlatTester::test1(), and FastShower::LinearProcessorTester::test1().

00021 {++m_npass; ++m_ntest;}

void FastShower::TestStat::incFail   [inline]
 

Definition at line 22 of file TestStat.h.

References m_ntest.

Referenced by FastShower::UpdatingGaussianTester::test(), FastShower::ProcessedNormalTester::test1(), FastShower::ProcessedFlatTester::test1(), and FastShower::LinearProcessorTester::test1().

00022 {           ++m_ntest;}

void FastShower::TestStat::incFail std::string &    s [inline]
 

Definition at line 23 of file TestStat.h.

References m_mess, and m_ntest.

00023                                            {
00024       ++m_ntest; cout<<m_mess<<s<<endl;}

bool FastShower::TestStat::operator!   const [inline]
 

Definition at line 25 of file TestStat.h.

References m_npass, and m_ntest.

00025 {return m_npass!=m_ntest;}

void FastShower::TestStat::reset   [inline]
 

Definition at line 26 of file TestStat.h.

References m_npass, and m_ntest.

00026 {m_npass=0; m_ntest=0;}

int FastShower::TestStat::npass   const [inline]
 

Definition at line 27 of file TestStat.h.

References m_npass.

Referenced by FastShower::operator<<().

00027 {return m_npass;}

int FastShower::TestStat::ntest   const [inline]
 

Definition at line 28 of file TestStat.h.

References m_ntest.

Referenced by FastShower::operator<<().

00028 {return m_ntest;}

Member Data Documentation

int FastShower::TestStat::m_npass [private]
 

Definition at line 30 of file TestStat.h.

Referenced by incPass(), npass(), operator!(), operator+=(), reset(), and TestStat().

int FastShower::TestStat::m_ntest [private]
 

Definition at line 31 of file TestStat.h.

Referenced by incFail(), incPass(), ntest(), operator!(), operator+=(), reset(), and TestStat().

std::string FastShower::TestStat::m_mess [private]
 

Definition at line 32 of file TestStat.h.

Referenced by incFail(), and TestStat().


The documentation for this class was generated from the following files:
Generated on Tue Mar 18 11:58:35 2003 for FastShowerUtils by doxygen1.3-rc1