Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4TrajectoryContainer Class Reference

#include <G4TrajectoryContainer.hh>

Public Member Functions

 G4TrajectoryContainer ()
 
 ~G4TrajectoryContainer ()
 
voidoperator 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 51 of file G4TrajectoryContainer.hh.

Constructor & Destructor Documentation

G4TrajectoryContainer::G4TrajectoryContainer ( )

Definition at line 34 of file G4TrajectoryContainer.cc.

35 {
36  vect = new TrajectoryVector;
37 }
std::vector< G4VTrajectory * > TrajectoryVector
G4TrajectoryContainer::~G4TrajectoryContainer ( )

Definition at line 39 of file G4TrajectoryContainer.cc.

40 {
42  delete vect;
43 }

Here is the call graph for this function:

Member Function Documentation

void G4TrajectoryContainer::clearAndDestroy ( )
inline

Definition at line 73 of file G4TrajectoryContainer.hh.

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

Here is the call graph for this function:

Here is the caller graph for this function:

G4int G4TrajectoryContainer::entries ( ) const
inline

Definition at line 71 of file G4TrajectoryContainer.hh.

71 { return size(); }

Here is the call graph for this function:

Here is the caller graph for this function:

TrajectoryVector* G4TrajectoryContainer::GetVector ( ) const
inline

Definition at line 79 of file G4TrajectoryContainer.hh.

79 { return vect; }
G4bool G4TrajectoryContainer::insert ( G4VTrajectory p)
inline

Definition at line 72 of file G4TrajectoryContainer.hh.

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

Here is the call graph for this function:

void G4TrajectoryContainer::operator delete ( void anEvent)
inline

Definition at line 94 of file G4TrajectoryContainer.hh.

95 {
96  aTrajectoryContainerAllocator->FreeSingle((G4TrajectoryContainer*)aTrajectoryContainer);
97 }
G4EVENT_DLL G4ThreadLocal G4Allocator< G4TrajectoryContainer > * aTrajectoryContainerAllocator
void * G4TrajectoryContainer::operator new ( size_t  )
inline

Definition at line 87 of file G4TrajectoryContainer.hh.

88 {
91  return (void*)aTrajectoryContainerAllocator->MallocSingle();
92 }
G4EVENT_DLL G4ThreadLocal G4Allocator< G4TrajectoryContainer > * aTrajectoryContainerAllocator
G4int G4TrajectoryContainer::operator!= ( const G4TrajectoryContainer right) const

Definition at line 50 of file G4TrajectoryContainer.cc.

51 {
52  return (this!=&right);
53 }
G4int G4TrajectoryContainer::operator== ( const G4TrajectoryContainer right) const

Definition at line 45 of file G4TrajectoryContainer.cc.

46 {
47  return (this==&right);
48 }
G4VTrajectory* G4TrajectoryContainer::operator[] ( size_t  n)
inline

Definition at line 78 of file G4TrajectoryContainer.hh.

78 { return (*vect)[n]; }
void G4TrajectoryContainer::push_back ( G4VTrajectory p)
inline

Definition at line 70 of file G4TrajectoryContainer.hh.

70 { vect->push_back(p); }

Here is the caller graph for this function:

size_t G4TrajectoryContainer::size ( ) const
inline

Definition at line 69 of file G4TrajectoryContainer.hh.

69 { return vect->size(); }

Here is the caller graph for this function:


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