MCPcopy Create free account
hub / github.com/Geant4/geant4 / SetRange

Method SetRange

source/intercoms/include/G4UIcommand.hh:120–120  ·  view source on GitHub ↗

Defines the range the command parameter(s) can take. The variable name(s) appear in the range expression must be the same as the name(s) of the parameter(s). All the C++ syntax of relational operators are allowed for the range expression

Source from the content-addressed store, hash-verified

118 // All the C++ syntax of relational operators are allowed for the
119 // range expression
120 inline void SetRange(const char* rs) { rangeExpression = rs; }
121
122 inline const G4String& GetRange() const { return rangeExpression; }
123 inline std::size_t GetGuidanceEntries() const { return commandGuidance.size(); }

Calls

no outgoing calls

Tested by 1