List of all members | Public Member Functions | Private Member Functions | Private Attributes
TestShowerParticleIterator Class Reference
Inheritance diagram for TestShowerParticleIterator:
Inheritance graph
[legend]

Public Member Functions

void setUp ()
 
void tearDown ()
 
void TestComparison ()
 
void TestDereferenceAfterLast ()
 
void TestDereferenceEmpty ()
 
void TestEmptyList ()
 
void TestEmptyListSkip ()
 
void TestEmptyListSkipThrow ()
 
void TestEmptyListThrow ()
 
void TestGetTooMany ()
 
void TestIncrementEmpty ()
 
void TestRetrieval ()
 
void TestRetrievalTwice ()
 
void TestSTLCopy ()
 
void TestSTLEqual ()
 

Private Member Functions

void AddParticle (testShowerFileParticleIterator &where)
 
void AddParticles (testShowerFileParticleIterator &where)
 
 CPPUNIT_TEST (TestComparison)
 
 CPPUNIT_TEST (TestRetrieval)
 
 CPPUNIT_TEST (TestRetrievalTwice)
 
 CPPUNIT_TEST (TestSTLCopy)
 
 CPPUNIT_TEST (TestSTLEqual)
 
 CPPUNIT_TEST (TestEmptyList)
 
 CPPUNIT_TEST (TestEmptyListSkip)
 
 CPPUNIT_TEST_EXCEPTION (TestDereferenceEmpty, utl::InvalidIteratorException)
 
 CPPUNIT_TEST_EXCEPTION (TestIncrementEmpty, utl::InvalidIteratorException)
 
 CPPUNIT_TEST_EXCEPTION (TestGetTooMany, utl::InvalidIteratorException)
 
 CPPUNIT_TEST_EXCEPTION (TestDereferenceAfterLast, utl::InvalidIteratorException)
 
 CPPUNIT_TEST_EXCEPTION (TestEmptyListThrow, utl::InvalidIteratorException)
 
 CPPUNIT_TEST_EXCEPTION (TestEmptyListSkipThrow, utl::InvalidIteratorException)
 
 CPPUNIT_TEST_SUITE (TestShowerParticleIterator)
 
 CPPUNIT_TEST_SUITE_END ()
 

Private Attributes

ShowerParticleIteratorfCurrent
 
ShowerParticleIteratorfEnd
 
testShowerFileParticleIteratorfFileIterator
 
vector< ParticlefInsertedParticles
 
vector< ParticlefRetrievedParticles
 

Detailed Description

Definition at line 45 of file testShowerParticleIterator.cc.

Member Function Documentation

void TestShowerParticleIterator::AddParticle ( testShowerFileParticleIterator where)
inlineprivate
void TestShowerParticleIterator::AddParticles ( testShowerFileParticleIterator where)
inlineprivate
TestShowerParticleIterator::CPPUNIT_TEST ( TestComparison  )
private
TestShowerParticleIterator::CPPUNIT_TEST ( TestRetrieval  )
private
TestShowerParticleIterator::CPPUNIT_TEST ( TestRetrievalTwice  )
private
TestShowerParticleIterator::CPPUNIT_TEST ( TestSTLCopy  )
private
TestShowerParticleIterator::CPPUNIT_TEST ( TestSTLEqual  )
private
TestShowerParticleIterator::CPPUNIT_TEST ( TestEmptyList  )
private
TestShowerParticleIterator::CPPUNIT_TEST ( TestEmptyListSkip  )
private
TestShowerParticleIterator::CPPUNIT_TEST_EXCEPTION ( TestDereferenceEmpty  ,
utl::InvalidIteratorException   
)
private
TestShowerParticleIterator::CPPUNIT_TEST_EXCEPTION ( TestIncrementEmpty  ,
utl::InvalidIteratorException   
)
private
TestShowerParticleIterator::CPPUNIT_TEST_EXCEPTION ( TestGetTooMany  ,
utl::InvalidIteratorException   
)
private
TestShowerParticleIterator::CPPUNIT_TEST_EXCEPTION ( TestDereferenceAfterLast  ,
utl::InvalidIteratorException   
)
private
TestShowerParticleIterator::CPPUNIT_TEST_EXCEPTION ( TestEmptyListThrow  ,
utl::InvalidIteratorException   
)
private
TestShowerParticleIterator::CPPUNIT_TEST_EXCEPTION ( TestEmptyListSkipThrow  ,
utl::InvalidIteratorException   
)
private
TestShowerParticleIterator::CPPUNIT_TEST_SUITE ( TestShowerParticleIterator  )
private
TestShowerParticleIterator::CPPUNIT_TEST_SUITE_END ( )
private
void TestShowerParticleIterator::setUp ( )
inline

Definition at line 98 of file testShowerParticleIterator.cc.

References AddParticles(), fCurrent, fEnd, and fFileIterator.

void TestShowerParticleIterator::tearDown ( )
inline

Definition at line 107 of file testShowerParticleIterator.cc.

References fCurrent, fEnd, and fFileIterator.

void TestShowerParticleIterator::TestComparison ( )
inline

Definition at line 115 of file testShowerParticleIterator.cc.

References fCurrent, fEnd, and utl::s.

void TestShowerParticleIterator::TestDereferenceAfterLast ( )
inline

Definition at line 153 of file testShowerParticleIterator.cc.

References fCurrent, fEnd, and G4StationSimulatorOG::p.

void TestShowerParticleIterator::TestDereferenceEmpty ( )
inline

Definition at line 128 of file testShowerParticleIterator.cc.

References fEnd, and G4StationSimulatorOG::p.

void TestShowerParticleIterator::TestEmptyList ( )
inline

Definition at line 224 of file testShowerParticleIterator.cc.

References fEnd.

void TestShowerParticleIterator::TestEmptyListSkip ( )
inline

Definition at line 233 of file testShowerParticleIterator.cc.

References AddParticles(), fEnd, and fInsertedParticles.

void TestShowerParticleIterator::TestEmptyListSkipThrow ( )
inline

Definition at line 252 of file testShowerParticleIterator.cc.

References AddParticles(), and fInsertedParticles.

void TestShowerParticleIterator::TestEmptyListThrow ( )
inline

Definition at line 243 of file testShowerParticleIterator.cc.

void TestShowerParticleIterator::TestGetTooMany ( )
inline

Definition at line 140 of file testShowerParticleIterator.cc.

References fCurrent, and fEnd.

void TestShowerParticleIterator::TestIncrementEmpty ( )
inline

Definition at line 134 of file testShowerParticleIterator.cc.

void TestShowerParticleIterator::TestRetrieval ( )
inline

Definition at line 167 of file testShowerParticleIterator.cc.

References fCurrent, fEnd, and fInsertedParticles.

void TestShowerParticleIterator::TestRetrievalTwice ( )
inline

Definition at line 182 of file testShowerParticleIterator.cc.

References fCurrent, fEnd, fFileIterator, and fInsertedParticles.

void TestShowerParticleIterator::TestSTLCopy ( )
inline

Definition at line 209 of file testShowerParticleIterator.cc.

References fCurrent, fEnd, fInsertedParticles, and fRetrievedParticles.

void TestShowerParticleIterator::TestSTLEqual ( )
inline

Definition at line 217 of file testShowerParticleIterator.cc.

References CompareNames(), fCurrent, fEnd, and fInsertedParticles.

Member Data Documentation

ShowerParticleIterator* TestShowerParticleIterator::fCurrent
private
ShowerParticleIterator* TestShowerParticleIterator::fEnd
private
testShowerFileParticleIterator* TestShowerParticleIterator::fFileIterator
private

Definition at line 68 of file testShowerParticleIterator.cc.

Referenced by setUp(), tearDown(), and TestRetrievalTwice().

vector<Particle> TestShowerParticleIterator::fInsertedParticles
private
vector<Particle> TestShowerParticleIterator::fRetrievedParticles
private

Definition at line 71 of file testShowerParticleIterator.cc.

Referenced by TestSTLCopy().


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

, generated on Tue Sep 26 2023.