Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4TrajectoryContainer Class Reference

#include <G4TrajectoryContainer.hh>

Public Member Functions

 G4TrajectoryContainer ()
 
 ~G4TrajectoryContainer ()
 
void * operator new (size_t)
 
void operator delete (void *anEvent)
 
G4int operator== (const G4TrajectoryContainer &right) const
 
G4int operator!= (const G4TrajectoryContainer &right) const
 
size_t size () const
 
void push_back (G4VTrajectory *p)
 
G4int entries () const
 
G4bool insert (G4VTrajectory *p)
 
void clearAndDestroy ()
 
G4VTrajectoryoperator[] (size_t n)
 
TrajectoryVectorGetVector () const
 

Detailed Description

Definition at line 49 of file G4TrajectoryContainer.hh.

Constructor & Destructor Documentation

◆ G4TrajectoryContainer()

G4TrajectoryContainer::G4TrajectoryContainer ( )

Definition at line 33 of file G4TrajectoryContainer.cc.

34{ vect = new TrajectoryVector; }
std::vector< G4VTrajectory * > TrajectoryVector

◆ ~G4TrajectoryContainer()

G4TrajectoryContainer::~G4TrajectoryContainer ( )

Definition at line 36 of file G4TrajectoryContainer.cc.

38 delete vect; }

Member Function Documentation

◆ clearAndDestroy()

void G4TrajectoryContainer::clearAndDestroy ( )
inline

Definition at line 71 of file G4TrajectoryContainer.hh.

72 {
73 for(size_t i=0;i<size();i++) delete (*vect)[i];
74 vect->clear();
75 }

Referenced by G4Event::~G4Event(), and ~G4TrajectoryContainer().

◆ entries()

G4int G4TrajectoryContainer::entries ( ) const
inline

Definition at line 69 of file G4TrajectoryContainer.hh.

69{ return size(); }

Referenced by G4TrajectoriesModel::DescribeYourselfTo(), and G4Event::Draw().

◆ GetVector()

TrajectoryVector * G4TrajectoryContainer::GetVector ( ) const
inline

Definition at line 77 of file G4TrajectoryContainer.hh.

77{ return vect; }

◆ insert()

G4bool G4TrajectoryContainer::insert ( G4VTrajectory p)
inline

Definition at line 70 of file G4TrajectoryContainer.hh.

70{ push_back(p); return true; }
void push_back(G4VTrajectory *p)

◆ operator delete()

void G4TrajectoryContainer::operator delete ( void *  anEvent)
inline

Definition at line 96 of file G4TrajectoryContainer.hh.

97{
98 aTrajectoryContainerAllocator.FreeSingle((G4TrajectoryContainer*)aTrajectoryContainer);
99}
G4DLLIMPORT G4Allocator< G4TrajectoryContainer > aTrajectoryContainerAllocator

◆ operator new()

void * G4TrajectoryContainer::operator new ( size_t  )
inline

Definition at line 89 of file G4TrajectoryContainer.hh.

90{
91 void* aTrajectoryContainer;
92 aTrajectoryContainer = (void*)aTrajectoryContainerAllocator.MallocSingle();
93 return aTrajectoryContainer;
94}

◆ operator!=()

G4int G4TrajectoryContainer::operator!= ( const G4TrajectoryContainer right) const

Definition at line 42 of file G4TrajectoryContainer.cc.

43{ return (this!=&right); }

◆ operator==()

G4int G4TrajectoryContainer::operator== ( const G4TrajectoryContainer right) const

Definition at line 40 of file G4TrajectoryContainer.cc.

41{ return (this==&right); }

◆ operator[]()

G4VTrajectory * G4TrajectoryContainer::operator[] ( size_t  n)
inline

Definition at line 76 of file G4TrajectoryContainer.hh.

76{ return (*vect)[n]; }

◆ push_back()

void G4TrajectoryContainer::push_back ( G4VTrajectory p)
inline

Definition at line 68 of file G4TrajectoryContainer.hh.

68{ vect->push_back(p); }

Referenced by insert().

◆ size()

size_t G4TrajectoryContainer::size ( ) const
inline

Definition at line 67 of file G4TrajectoryContainer.hh.

67{ return vect->size(); }

Referenced by clearAndDestroy(), and entries().


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