Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4GenericMessenger::Method Struct Reference

#include <G4GenericMessenger.hh>

+ Inheritance diagram for G4GenericMessenger::Method:

Public Member Functions

 Method (const G4AnyMethod &fun, void *obj, G4UIcommand *cmd)
 
 Method ()=default
 
- Public Member Functions inherited from G4GenericMessenger::Command
 Command (G4UIcommand *cmd, const std::type_info &ti)
 
 Command ()=default
 
CommandSetStates (G4ApplicationState s0)
 
CommandSetStates (G4ApplicationState s0, G4ApplicationState s1)
 
CommandSetStates (G4ApplicationState s0, G4ApplicationState s1, G4ApplicationState s2)
 
CommandSetStates (G4ApplicationState s0, G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3)
 
CommandSetStates (G4ApplicationState s0, G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3, G4ApplicationState s4)
 
CommandSetRange (const G4String &range)
 
CommandSetGuidance (const G4String &s0)
 
CommandSetUnit (const G4String &, UnitSpec=UnitDefault)
 
CommandSetUnitCategory (const G4String &u)
 
CommandSetDefaultUnit (const G4String &u)
 
CommandSetParameterName (const G4String &, G4bool, G4bool=false)
 
CommandSetParameterName (G4int pIdx, const G4String &, G4bool, G4bool=false)
 
CommandSetParameterName (const G4String &, const G4String &, const G4String &, G4bool, G4bool=false)
 
CommandSetDefaultValue (const G4String &)
 
CommandSetDefaultValue (G4int pIdx, const G4String &)
 
CommandSetCandidates (const G4String &)
 
CommandSetCandidates (G4int pIdx, const G4String &)
 
CommandSetToBeBroadcasted (G4bool s0)
 
CommandSetToBeFlushed (G4bool s0)
 
CommandSetWorkerThreadOnly (G4bool s0)
 

Public Attributes

G4AnyMethod method
 
void * object = nullptr
 
- Public Attributes inherited from G4GenericMessenger::Command
G4UIcommandcommand = nullptr
 
const std::type_info * type = nullptr
 

Additional Inherited Members

- Public Types inherited from G4GenericMessenger::Command
enum  UnitSpec { UnitCategory , UnitDefault }
 

Detailed Description

Definition at line 152 of file G4GenericMessenger.hh.

Constructor & Destructor Documentation

◆ Method() [1/2]

G4GenericMessenger::Method::Method ( const G4AnyMethod & fun,
void * obj,
G4UIcommand * cmd )
inline

Definition at line 154 of file G4GenericMessenger.hh.

155 : Command(cmd, fun.ArgType()), method(fun), object(obj)
156 {}
const std::type_info & ArgType(size_t n=0) const

◆ Method() [2/2]

G4GenericMessenger::Method::Method ( )
default

Member Data Documentation

◆ method

G4AnyMethod G4GenericMessenger::Method::method

Definition at line 158 of file G4GenericMessenger.hh.

◆ object

void* G4GenericMessenger::Method::object = nullptr

Definition at line 159 of file G4GenericMessenger.hh.


The documentation for this struct was generated from the following file: