Geant4 11.1.1
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 ()
 
 G4TrajectoryContainer (const G4TrajectoryContainer &)=delete
 
G4TrajectoryContaineroperator= (const G4TrajectoryContainer &)=delete
 
void * operator new (std::size_t)
 
void operator delete (void *anEvent)
 
G4bool operator== (const G4TrajectoryContainer &right) const
 
G4bool operator!= (const G4TrajectoryContainer &right) const
 
std::size_t size () const
 
void push_back (G4VTrajectory *p)
 
std::size_t entries () const
 
G4bool insert (G4VTrajectory *p)
 
void clearAndDestroy ()
 
G4VTrajectoryoperator[] (std::size_t n)
 
TrajectoryVectorGetVector () const
 

Detailed Description

Definition at line 47 of file G4TrajectoryContainer.hh.

Constructor & Destructor Documentation

◆ G4TrajectoryContainer() [1/2]

G4TrajectoryContainer::G4TrajectoryContainer ( )

Definition at line 39 of file G4TrajectoryContainer.cc.

40{
41 vect = new TrajectoryVector;
42}
std::vector< G4VTrajectory * > TrajectoryVector

◆ ~G4TrajectoryContainer()

G4TrajectoryContainer::~G4TrajectoryContainer ( )

Definition at line 44 of file G4TrajectoryContainer.cc.

45{
47 delete vect;
48}

◆ G4TrajectoryContainer() [2/2]

G4TrajectoryContainer::G4TrajectoryContainer ( const G4TrajectoryContainer )
delete

Member Function Documentation

◆ clearAndDestroy()

void G4TrajectoryContainer::clearAndDestroy ( )
inline

Definition at line 67 of file G4TrajectoryContainer.hh.

68 {
69 for(std::size_t i=0; i<size(); ++i) delete (*vect)[i];
70 vect->clear();
71 }
std::size_t size() const

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

◆ entries()

std::size_t G4TrajectoryContainer::entries ( ) const
inline

Definition at line 65 of file G4TrajectoryContainer.hh.

65{ return size(); }

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

◆ GetVector()

TrajectoryVector * G4TrajectoryContainer::GetVector ( ) const
inline

Definition at line 73 of file G4TrajectoryContainer.hh.

73{ return vect; }

◆ insert()

G4bool G4TrajectoryContainer::insert ( G4VTrajectory p)
inline

Definition at line 66 of file G4TrajectoryContainer.hh.

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

◆ operator delete()

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

Definition at line 92 of file G4TrajectoryContainer.hh.

93{
95 ->FreeSingle((G4TrajectoryContainer*)aTrajectoryContainer);
96}
G4EVENT_DLL G4Allocator< G4TrajectoryContainer > *& aTrajectoryContainerAllocator()

◆ operator new()

void * G4TrajectoryContainer::operator new ( std::size_t  )
inline

Definition at line 83 of file G4TrajectoryContainer.hh.

84{
85 if (aTrajectoryContainerAllocator() == nullptr)
86 {
88 }
89 return (void*)aTrajectoryContainerAllocator()->MallocSingle();
90}

◆ operator!=()

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

Definition at line 57 of file G4TrajectoryContainer.cc.

58{
59 return (this!=&right);
60}

◆ operator=()

G4TrajectoryContainer & G4TrajectoryContainer::operator= ( const G4TrajectoryContainer )
delete

◆ operator==()

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

Definition at line 51 of file G4TrajectoryContainer.cc.

52{
53 return (this==&right);
54}

◆ operator[]()

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

Definition at line 72 of file G4TrajectoryContainer.hh.

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

◆ push_back()

void G4TrajectoryContainer::push_back ( G4VTrajectory p)
inline

Definition at line 64 of file G4TrajectoryContainer.hh.

64{ vect->push_back(p); }

Referenced by insert().

◆ size()

std::size_t G4TrajectoryContainer::size ( ) const
inline

Definition at line 63 of file G4TrajectoryContainer.hh.

63{ return vect->size(); }

Referenced by clearAndDestroy(), and entries().


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