G4ModelCmdAddInt< M > Class Template Reference

#include <G4ModelCommandsT.hh>

Inheritance diagram for G4ModelCmdAddInt< M >:

G4ModelCmdApplyInteger< M > G4VModelCommand< M > G4UImessenger

Public Member Functions

 G4ModelCmdAddInt (M *model, const G4String &placement, const G4String &cmdName="add")
virtual ~G4ModelCmdAddInt ()

Protected Member Functions

virtual void Apply (const G4int &newValue)

Detailed Description

template<typename M>
class G4ModelCmdAddInt< M >

Definition at line 109 of file G4ModelCommandsT.hh.


Constructor & Destructor Documentation

template<typename M>
G4ModelCmdAddInt< M >::G4ModelCmdAddInt ( M *  model,
const G4String placement,
const G4String cmdName = "add" 
) [inline]

Definition at line 113 of file G4ModelCommandsT.hh.

References G4ModelCmdApplyInteger< M >::Command(), and G4UIcommand::SetGuidance().

00115   :G4ModelCmdApplyInteger<M>(model, placement, cmdName)
00116   {
00117     G4ModelCmdApplyInteger<M>::Command()->SetGuidance("Add command");    
00118   }

template<typename M>
virtual G4ModelCmdAddInt< M >::~G4ModelCmdAddInt (  )  [inline, virtual]

Definition at line 120 of file G4ModelCommandsT.hh.

00120 {}


Member Function Documentation

template<typename M>
virtual void G4ModelCmdAddInt< M >::Apply ( const G4int newValue  )  [inline, protected, virtual]

Implements G4ModelCmdApplyInteger< M >.

Definition at line 124 of file G4ModelCommandsT.hh.

References G4VModelCommand< T >::Model().

00124                                             {
00125     G4VModelCommand<M>::Model()->Add(newValue);
00126   }


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:52:29 2013 for Geant4 by  doxygen 1.4.7