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

#include <G4CrossSectionSourcePtr.hh>

Public Member Functions

 G4CrossSectionSourcePtr (G4VCrossSectionSource *x=0)
 
 ~G4CrossSectionSourcePtr ()
 
 G4CrossSectionSourcePtr (const G4CrossSectionSourcePtr &xw)
 
const G4VCrossSectionSourceoperator() () const
 
G4VCrossSectionSourceoperator() ()
 
G4CrossSectionSourcePtroperator= (const G4CrossSectionSourcePtr &xw)
 
G4bool operator== (const G4CrossSectionSourcePtr &right) const
 
G4bool operator< (const G4CrossSectionSourcePtr &)
 

Detailed Description

Definition at line 48 of file G4CrossSectionSourcePtr.hh.

Constructor & Destructor Documentation

◆ G4CrossSectionSourcePtr() [1/2]

G4CrossSectionSourcePtr::G4CrossSectionSourcePtr ( G4VCrossSectionSource x = 0)

Definition at line 46 of file G4CrossSectionSourcePtr.cc.

46 : x_(x)
47{ }

◆ ~G4CrossSectionSourcePtr()

G4CrossSectionSourcePtr::~G4CrossSectionSourcePtr ( )
inline

Definition at line 57 of file G4CrossSectionSourcePtr.hh.

57{ }

◆ G4CrossSectionSourcePtr() [2/2]

G4CrossSectionSourcePtr::G4CrossSectionSourcePtr ( const G4CrossSectionSourcePtr xw)
inline

Definition at line 60 of file G4CrossSectionSourcePtr.hh.

60: x_(xw.x_) { }

Member Function Documentation

◆ operator()() [1/2]

G4VCrossSectionSource * G4CrossSectionSourcePtr::operator() ( )

Definition at line 65 of file G4CrossSectionSourcePtr.cc.

66{ return x_; }

◆ operator()() [2/2]

const G4VCrossSectionSource * G4CrossSectionSourcePtr::operator() ( ) const

Definition at line 62 of file G4CrossSectionSourcePtr.cc.

63{ return x_; }

Referenced by operator==().

◆ operator<()

G4bool G4CrossSectionSourcePtr::operator< ( const G4CrossSectionSourcePtr )
inline

Definition at line 71 of file G4CrossSectionSourcePtr.hh.

71{ return false; }

◆ operator=()

G4CrossSectionSourcePtr & G4CrossSectionSourcePtr::operator= ( const G4CrossSectionSourcePtr xw)

Definition at line 49 of file G4CrossSectionSourcePtr.cc.

50{
51 if (this != &xw) {
52 x_ = xw.x_;
53 }
54 return *this;
55}

◆ operator==()

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

Definition at line 57 of file G4CrossSectionSourcePtr.cc.

58{
59 return *(this->operator()()) == *right();
60}
const G4VCrossSectionSource * operator()() const

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