Ignore:
Timestamp:
Nov 5, 2010, 3:45:55 PM (14 years ago)
Author:
garnier
Message:

update ti head

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/processes/hadronic/models/pre_equilibrium/exciton_model/src/G4VPreCompoundEmissionFactory.cc

    r819 r1340  
    2424// ********************************************************************
    2525//
    26 
     26// $Id: G4VPreCompoundEmissionFactory.cc,v 1.5 2010/08/28 15:16:55 vnivanch Exp $
     27// GEANT4 tag $Name: geant4-09-03-ref-09 $
     28//
    2729// by V. Lara
    2830
    2931#include "G4VPreCompoundEmissionFactory.hh"
    30 #include "G4HadronicException.hh"
    3132
    32 const G4VPreCompoundEmissionFactory &
    33 G4VPreCompoundEmissionFactory::operator=(const G4VPreCompoundEmissionFactory & )
     33G4VPreCompoundEmissionFactory::G4VPreCompoundEmissionFactory()
     34  : fragvector(0)
     35{}
     36
     37G4VPreCompoundEmissionFactory::~G4VPreCompoundEmissionFactory()
    3438{
    35   throw G4HadronicException(__FILE__, __LINE__, "G4VPreCompoundEmissionFactory::operator= meant to not be accessable.");
    36   return *this;
    37 }
    38 
    39 G4bool
    40 G4VPreCompoundEmissionFactory::operator==(const G4VPreCompoundEmissionFactory & ) const
    41 {
    42   throw G4HadronicException(__FILE__, __LINE__, "G4VPreCompoundEmissionFactory::operator== meant to not be accessable.");
    43   return false;
    44 }
    45 
    46 G4bool
    47 G4VPreCompoundEmissionFactory::operator!=(const G4VPreCompoundEmissionFactory & ) const
    48 {
    49   throw G4HadronicException(__FILE__, __LINE__, "G4VPreCompoundEmissionFactory::operator!= meant to not be accessable.");
    50   return true;
     39  if (fragvector != 0)
     40    std::for_each(fragvector->begin(), fragvector->end(),
     41                  DeleteFragment());
     42  delete fragvector;
    5143}
    5244
    5345
    54 
    55 
    56 G4VPreCompoundEmissionFactory::~G4VPreCompoundEmissionFactory()
    57 {
    58   if (_fragvector != 0)
    59     std::for_each(_fragvector->begin(), _fragvector->end(),
    60                     DeleteFragment());
    61   delete _fragvector;
    62 }
    63 
    64 
    65 std::vector<G4VPreCompoundFragment*> *
    66 G4VPreCompoundEmissionFactory::GetFragmentVector()
    67 {
    68   // Lazy initialization
    69   if (_fragvector == 0)
    70     _fragvector = CreateFragmentVector();
    71   return _fragvector;
    72 }
    73 
Note: See TracChangeset for help on using the changeset viewer.