|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
|
A collection of routines to construct object Attributes and retrieve. More...
Classes | |
| class | Bool |
| Parser for attribute of type logical. More... | |
| class | BoolArray |
| Parser for an attribute of type logical array. More... | |
| class | String |
| Parser for an attribute of type string. More... | |
| class | Place |
| Parser for an attribute of type place reference. More... | |
| class | PredefinedString |
| Parser for an attribute of type string. More... | |
| class | Range |
| Parser for an attribute of type range definition. More... | |
| class | Real |
| Parser for an attribute of type real. More... | |
| class | RealArray |
| Parser for an attribute of type real array. More... | |
| class | Reference |
| Parser for an attribute of type attribute reference. More... | |
| class | StringArray |
| Parser for an attribute of type string array. More... | |
| class | TableRow |
| Parser for an attribute of type table row reference. More... | |
| class | TokenList |
| Parser for an attribute of type token list. More... | |
| class | TokenListArray |
| Parser for an attribute of type token list array. More... | |
| class | UpperCaseString |
| Parser for an attribute of type string. More... | |
| class | UpperCaseStringArray |
| Parser for an attribute of type string array. More... | |
Functions | |
| Attribute | makeBool (const std::string &name, const std::string &help) |
| Make logical attribute. | |
| Attribute | makeBool (const std::string &name, const std::string &help, bool initial) |
| Make logical attribute. | |
| bool | getBool (const Attribute &) |
| Return logical value. | |
| void | setBool (Attribute &, bool) |
| Set logical value. | |
| Attribute | makeBoolArray (const std::string &name, const std::string &help) |
| Create a logical array attribute. | |
| std::vector< bool > | getBoolArray (const Attribute &) |
| Get logical array value. | |
| void | setBoolArray (Attribute &, const std::vector< bool > &) |
| Set logical array value. | |
| Attribute | makePlace (const std::string &name, const std::string &help) |
| Create a place attribute. | |
| PlaceRep | getPlace (const Attribute &) |
| Get place value. | |
| void | setPlace (Attribute &, const PlaceRep &) |
| Set place value. | |
| Attribute | makeRange (const std::string &name, const std::string &help) |
| Create a range attribute. | |
| RangeRep | getRange (const Attribute &) |
| Get range value. | |
| void | setRange (Attribute &, const RangeRep &) |
| Set range value. | |
| Attribute | makeReal (const std::string &name, const std::string &help) |
| Make real attribute. | |
| Attribute | makeReal (const std::string &name, const std::string &help, double initial) |
| Make real attribute. | |
| double | getReal (const Attribute &attr) |
| Return real value. | |
| void | setReal (Attribute &attr, double val) |
| Set real value. | |
| Attribute | makeRealArray (const std::string &name, const std::string &help) |
| Create real array attribute. | |
| std::vector< double > | getRealArray (const Attribute &) |
| Get array value. | |
| void | setRealArray (Attribute &, const std::vector< double > &) |
| Set array value. | |
| Attribute | makeReference (const std::string &name, const std::string &help) |
| Create a reference attribute. | |
| Attribute | makeString (const std::string &name, const std::string &help) |
| Make string attribute. | |
| Attribute | makeString (const std::string &name, const std::string &help, const std::string &initial) |
| Make string attribute. | |
| std::string | getString (const Attribute &attr) |
| Get string value. | |
| void | setString (Attribute &attr, const std::string &val) |
| Set string value. | |
| Attribute | makePredefinedString (const std::string &name, const std::string &help, const std::initializer_list< std::string > &predefinedStrings) |
| Make predefined string attribute. | |
| Attribute | makePredefinedString (const std::string &name, const std::string &help, const std::initializer_list< std::string > &predefinedStrings, const std::string &initial) |
| Make predefined string attribute. | |
| void | setPredefinedString (Attribute &attr, const std::string &val) |
| Set predefined string value. | |
| Attribute | makeUpperCaseString (const std::string &name, const std::string &help) |
| Make uppercase string attribute. | |
| Attribute | makeUpperCaseString (const std::string &name, const std::string &help, const std::string &initial) |
| Make uppercase string attribute. | |
| void | setUpperCaseString (Attribute &attr, const std::string &val) |
| Set uppercase string value. | |
| Attribute | makeStringArray (const std::string &name, const std::string &help) |
| Create a string array attribute. | |
| std::vector< std::string > | getStringArray (const Attribute &) |
| Get string array value. | |
| void | setStringArray (Attribute &, const std::vector< std::string > &) |
| Set string array value. | |
| Attribute | makeUpperCaseStringArray (const std::string &name, const std::string &help) |
| Make uppercase string array attribute. | |
| void | setUpperCaseStringArray (Attribute &, const std::vector< std::string > &) |
| Set upper case string array value. | |
| Attribute | makeTableRow (const std::string &name, const std::string &help) |
| Create a table row attribute. | |
| TableRowRep | getTableRow (const Attribute &) |
| Get table row value. | |
| void | setTableRow (Attribute &, const TableRowRep &) |
| Set table row value. | |
| Attribute | makeTokenList (const std::string &name, const std::string &help) |
| Make token list attribute. | |
| std::list< Token > | getTokenList (const Attribute &attr) |
| Return token list value. | |
| void | setTokenList (Attribute &attr, const std::list< Token > &) |
| Set token list value. | |
| Attribute | makeTokenListArray (const std::string &name, const std::string &help) |
| Make token list attribute. | |
| std::vector< std::list< Token > > | getTokenListArray (const Attribute &attr) |
| Return token list array value. | |
| void | setTokenListArray (Attribute &attr, const std::vector< std::list< Token > > &) |
| Set token list array value. | |
A collection of routines to construct object Attributes and retrieve.
| bool Attributes::getBool | ( | const Attribute & | attr | ) |
Return logical value.
Definition at line 100 of file Attributes.cpp.
References Expressions::SRefAttr< T >::evaluate(), Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), and Attribute::isBaseAllocated().
Referenced by IfStatement::execute(), Option::execute(), TrackRun::execute(), WhileStatement::execute(), BoolConstant::getBool(), FieldSolverCmd::getDomDec(), FieldSolverCmd::printInfo(), Select::select(), Distribution::setDistParametersFlatTop(), OpalCavity::update(), OpalElement::update(), OpalMultipoleT::update(), OpalRingDefinition::update(), OpalSolenoid::update(), OpalTravelingWave::update(), and OpalVacuum::update().
| std::vector< bool > Attributes::getBoolArray | ( | const Attribute & | attr | ) |
Get logical array value.
Definition at line 141 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getName(), and Attribute::isBaseAllocated().
Get place value.
Definition at line 178 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getName(), and Attribute::isBaseAllocated().
Get range value.
Definition at line 212 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getName(), and Attribute::isBaseAllocated().
Referenced by Select::select().
| double Attributes::getReal | ( | const Attribute & | attr | ) |
Return real value.
Definition at line 252 of file Attributes.cpp.
References Expressions::SRefAttr< T >::evaluate(), Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), and Attribute::isBaseAllocated().
Referenced by DumpEMFields::buildGrid(), DumpFields::buildGrid(), Option::execute(), TrackCmd::execute(), SequenceParser::findNeighbourPositions(), BoundaryGeometry::getA(), BoundaryGeometry::getB(), FieldSolverCmd::getBoxIncr(), BoundaryGeometry::getC(), Beam::getCharge(), Beam::getCurrent(), TrackCmd::getDTAU(), TrackCmd::getDTSCINIT(), Beam::getFrequency(), BoundaryGeometry::getL1(), BoundaryGeometry::getL2(), BoundaryGeometry::getLength(), Line::getLength(), OpalElement::getLength(), Sequence::getLength(), Beam::getMass(), Beam::getNumberOfParticles(), FieldSolverCmd::getNX(), FieldSolverCmd::getNY(), FieldSolverCmd::getNZ(), RealConstant::getReal(), RealVariable::getReal(), BoundaryGeometry::getS(), TrackCmd::getStepsPerTurn(), TrackCmd::getT0(), TrackCmd::getZStart(), BoundaryGeometry::initialize(), OpalFilter::initOpalFilter(), Line::parse(), Beam::print(), DumpEMFields::print(), DumpFields::print(), OpalFilter::print(), BoundaryGeometry::printInfo(), FieldSolverCmd::printInfo(), OpalElement::printMultipoleStrength(), Distribution::setDistParametersFlatTop(), Distribution::setSigmaP_m(), Distribution::setSigmaR_m(), Beam::update(), OpalCavity::update(), OpalDrift::update(), OpalElement::update(), OpalMonitor::update(), OpalMultipoleT::update(), OpalOffset::OpalGlobalCartesianOffset::update(), OpalOffset::OpalGlobalCylindricalOffset::update(), OpalOffset::OpalLocalCartesianOffset::update(), OpalOffset::OpalLocalCylindricalOffset::update(), OpalProbe::update(), OpalRingDefinition::update(), OpalSolenoid::update(), OpalTravelingWave::update(), OpalVacuum::update(), OpalVerticalFFAMagnet::update(), and OpalElement::updateUnknown().
| std::vector< double > Attributes::getRealArray | ( | const Attribute & | attr | ) |
Get array value.
Definition at line 294 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), and Attribute::isBaseAllocated().
Referenced by Value::execute(), TrackCmd::getDT(), TrackCmd::getMaxSteps(), RealVector::getRealComponent(), TrackCmd::getZStop(), BoundaryGeometry::initialize(), Line::parse(), Distribution::setDistParametersMultiVariateGauss(), OpalElement::update(), OpalMultipole::update(), and OpalMultipoleT::update().
| std::string Attributes::getString | ( | const Attribute & | attr | ) |
Get string value.
Definition at line 343 of file Attributes.cpp.
References end(), Expressions::SRefAttr< T >::evaluate(), Attribute::getBase(), Attribute::getHandler(), OpalData::getInstance(), Attribute::getName(), Attribute::isBaseAllocated(), and Util::toUpper().
Referenced by BoundaryGeometry::BoundaryGeometry(), BoundaryGeometry::BoundaryGeometry(), DumpEMFields::buildGrid(), DumpFields::buildGrid(), Call::execute(), Echo::execute(), Help::execute(), Option::execute(), PSystem::execute(), Select::execute(), System::execute(), Title::execute(), TrackCmd::execute(), TrackRun::execute(), SequenceParser::findNeighbourPositions(), OpalElement::getApert(), BoundaryGeometry::getFilename(), OpalElement::getParticleMatterInteraction(), Beam::getParticleName(), Sequence::getReference(), StringConstant::getString(), TrackCmd::getTimeIntegrator(), BoundaryGeometry::getTopology(), FieldSolverCmd::getType(), OpalElement::getTypeName(), OpalElement::getWakeF(), OpalFilter::initOpalFilter(), Sequence::parse(), DumpEMFields::parseCoordinateSystem(), Beam::print(), DumpEMFields::print(), OpalFilter::print(), TrackRun::print(), BoundaryGeometry::printInfo(), FieldSolverCmd::printInfo(), Select::select(), Distribution::setDistType(), TrackRun::setRunMethod(), TrackRun::setupBoundaryGeometry(), OpalCavity::update(), OpalMonitor::update(), OpalProbe::update(), OpalSolenoid::update(), OpalTravelingWave::update(), and OpalVacuum::update().
| std::vector< std::string > Attributes::getStringArray | ( | const Attribute & | attr | ) |
Get string array value.
Definition at line 478 of file Attributes.cpp.
References end(), Attribute::getBase(), Attribute::getHandler(), OpalData::getInstance(), Attribute::getName(), Attribute::isBaseAllocated(), RealVariable::printValue(), and Util::toUpper().
Referenced by TrackRun::execute(), Attributes::StringArray::parseComponent(), and Attributes::UpperCaseStringArray::parseComponent().
| TableRowRep Attributes::getTableRow | ( | const Attribute & | attr | ) |
Get table row value.
Definition at line 562 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getName(), and Attribute::isBaseAllocated().
Return token list value.
Definition at line 597 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), and Attribute::isBaseAllocated().
Return token list array value.
Definition at line 630 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), and Attribute::isBaseAllocated().
| Attribute Attributes::makeBool | ( | const std::string & | name, |
| const std::string & | help ) |
Make logical attribute.
Definition at line 90 of file Attributes.cpp.
Referenced by BoolConstant::BoolConstant(), Distribution::Distribution(), IfStatement::execute(), WhileStatement::execute(), FieldSolverCmd::FieldSolverCmd(), OpalCavity::OpalCavity(), OpalElement::OpalElement(), OpalMultipoleT::OpalMultipoleT(), OpalRingDefinition::OpalRingDefinition(), OpalSolenoid::OpalSolenoid(), OpalTravelingWave::OpalTravelingWave(), OpalVacuum::OpalVacuum(), Option::Option(), Select::Select(), and TrackRun::TrackRun().
| Attribute Attributes::makeBool | ( | const std::string & | name, |
| const std::string & | help, | ||
| bool | ini ) |
Make logical attribute.
Definition at line 95 of file Attributes.cpp.
| Attribute Attributes::makeBoolArray | ( | const std::string & | name, |
| const std::string & | help ) |
Create a logical array attribute.
Definition at line 136 of file Attributes.cpp.
| Attribute Attributes::makePlace | ( | const std::string & | name, |
| const std::string & | help ) |
Create a place attribute.
Definition at line 172 of file Attributes.cpp.
| Attribute Attributes::makePredefinedString | ( | const std::string & | name, |
| const std::string & | help, | ||
| const std::initializer_list< std::string > & | predefinedStrings ) |
Make predefined string attribute.
Definition at line 409 of file Attributes.cpp.
Referenced by Beam::Beam(), BoundaryGeometry::BoundaryGeometry(), Distribution::Distribution(), DumpEMFields::DumpEMFields(), FieldSolverCmd::FieldSolverCmd(), OpalElement::OpalElement(), OpalFilter::OpalFilter(), OpalVacuum::OpalVacuum(), Option::Option(), TrackCmd::TrackCmd(), and TrackRun::TrackRun().
| Attribute Attributes::makePredefinedString | ( | const std::string & | name, |
| const std::string & | help, | ||
| const std::initializer_list< std::string > & | predefinedStrings, | ||
| const std::string & | initial ) |
Make predefined string attribute.
Definition at line 417 of file Attributes.cpp.
References Util::toUpper().
| Attribute Attributes::makeRange | ( | const std::string & | name, |
| const std::string & | help ) |
Create a range attribute.
Definition at line 206 of file Attributes.cpp.
Referenced by Select::Select().
| Attribute Attributes::makeReal | ( | const std::string & | name, |
| const std::string & | help ) |
Make real attribute.
Definition at line 240 of file Attributes.cpp.
Referenced by Beam::Beam(), BoundaryGeometry::BoundaryGeometry(), Distribution::Distribution(), DumpEMFields::DumpEMFields(), DumpFields::DumpFields(), FieldSolverCmd::FieldSolverCmd(), Line::Line(), OpalCavity::OpalCavity(), OpalDrift::OpalDrift(), OpalElement::OpalElement(), OpalFilter::OpalFilter(), OpalOffset::OpalGlobalCartesianOffset::OpalGlobalCartesianOffset(), OpalOffset::OpalGlobalCylindricalOffset::OpalGlobalCylindricalOffset(), OpalOffset::OpalLocalCartesianOffset::OpalLocalCartesianOffset(), OpalOffset::OpalLocalCylindricalOffset::OpalLocalCylindricalOffset(), OpalMultipoleT::OpalMultipoleT(), OpalProbe::OpalProbe(), OpalRingDefinition::OpalRingDefinition(), OpalSolenoid::OpalSolenoid(), OpalTravelingWave::OpalTravelingWave(), OpalVacuum::OpalVacuum(), OpalVerticalFFAMagnet::OpalVerticalFFAMagnet(), Option::Option(), RealConstant::RealConstant(), RealVariable::RealVariable(), Sequence::Sequence(), TrackCmd::TrackCmd(), and TrackRun::TrackRun().
| Attribute Attributes::makeReal | ( | const std::string & | name, |
| const std::string & | help, | ||
| double | initial ) |
Make real attribute.
Definition at line 246 of file Attributes.cpp.
| Attribute Attributes::makeRealArray | ( | const std::string & | name, |
| const std::string & | help ) |
Create real array attribute.
Definition at line 289 of file Attributes.cpp.
Referenced by BoundaryGeometry::BoundaryGeometry(), Distribution::Distribution(), Line::Line(), OpalElement::OpalElement(), OpalMultipole::OpalMultipole(), OpalMultipoleT::OpalMultipoleT(), RealVector::RealVector(), TrackCmd::TrackCmd(), and Value::Value().
| Attribute Attributes::makeReference | ( | const std::string & | name, |
| const std::string & | help ) |
Create a reference attribute.
Definition at line 324 of file Attributes.cpp.
| Attribute Attributes::makeString | ( | const std::string & | name, |
| const std::string & | help ) |
Make string attribute.
Definition at line 332 of file Attributes.cpp.
Referenced by BoundaryGeometry::BoundaryGeometry(), Call::Call(), Distribution::Distribution(), DumpEMFields::DumpEMFields(), DumpFields::DumpFields(), Echo::Echo(), Help::Help(), Line::Line(), OpalCavity::OpalCavity(), OpalDrift::OpalDrift(), OpalElement::OpalElement(), OpalSolenoid::OpalSolenoid(), OpalTravelingWave::OpalTravelingWave(), OpalVacuum::OpalVacuum(), PSystem::PSystem(), Select::Select(), Sequence::Sequence(), StringConstant::StringConstant(), System::System(), Title::Title(), TrackCmd::TrackCmd(), and TrackRun::TrackRun().
| Attribute Attributes::makeString | ( | const std::string & | name, |
| const std::string & | help, | ||
| const std::string & | initial ) |
Make string attribute.
Definition at line 338 of file Attributes.cpp.
| Attribute Attributes::makeStringArray | ( | const std::string & | name, |
| const std::string & | help ) |
Create a string array attribute.
Definition at line 473 of file Attributes.cpp.
Referenced by TrackRun::TrackRun().
| Attribute Attributes::makeTableRow | ( | const std::string & | name, |
| const std::string & | help ) |
Create a table row attribute.
Definition at line 557 of file Attributes.cpp.
| Attribute Attributes::makeTokenList | ( | const std::string & | name, |
| const std::string & | help ) |
Make token list attribute.
Definition at line 592 of file Attributes.cpp.
| Attribute Attributes::makeTokenListArray | ( | const std::string & | name, |
| const std::string & | help ) |
Make token list attribute.
Definition at line 625 of file Attributes.cpp.
| Attribute Attributes::makeUpperCaseString | ( | const std::string & | name, |
| const std::string & | help ) |
Make uppercase string attribute.
Definition at line 445 of file Attributes.cpp.
| Attribute Attributes::makeUpperCaseString | ( | const std::string & | name, |
| const std::string & | help, | ||
| const std::string & | initial ) |
Make uppercase string attribute.
Definition at line 451 of file Attributes.cpp.
References Util::toUpper().
| Attribute Attributes::makeUpperCaseStringArray | ( | const std::string & | name, |
| const std::string & | help ) |
Make uppercase string array attribute.
Definition at line 536 of file Attributes.cpp.
| void Attributes::setBool | ( | Attribute & | attr, |
| bool | val ) |
Set logical value.
Definition at line 119 of file Attributes.cpp.
References Expressions::SValue< T >::evaluate(), Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Attribute::isBaseAllocated(), Attribute::set(), and Expressions::SRefAttr< T >::set().
Referenced by Option::Option().
| void Attributes::setBoolArray | ( | Attribute & | attr, |
| const std::vector< bool > & | value ) |
Set logical array value.
Definition at line 157 of file Attributes.cpp.
References Attribute::getHandler(), Attribute::getName(), and Attribute::set().
Set place value.
Definition at line 193 of file Attributes.cpp.
References Attribute::getHandler(), Attribute::getName(), and Attribute::set().
| void Attributes::setPredefinedString | ( | Attribute & | attr, |
| const std::string & | val ) |
Set predefined string value.
Definition at line 426 of file Attributes.cpp.
References Expressions::SValue< T >::evaluate(), Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Attribute::isBaseAllocated(), Attribute::set(), Expressions::SRefAttr< T >::set(), and Util::toUpper().
Referenced by Option::Option(), and Attributes::PredefinedString::parse().
Set range value.
Definition at line 227 of file Attributes.cpp.
References Attribute::getHandler(), Attribute::getName(), and Attribute::set().
| void Attributes::setReal | ( | Attribute & | attr, |
| double | val ) |
Set real value.
Definition at line 271 of file Attributes.cpp.
References Expressions::SValue< T >::evaluate(), Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Attribute::isBaseAllocated(), Attribute::set(), and Expressions::SRefAttr< T >::set().
Referenced by Option::Option(), RealConstant::RealConstant(), RealVariable::RealVariable(), FieldSolverCmd::setNX(), FieldSolverCmd::setNY(), FieldSolverCmd::setNZ(), and Beam::update().
| void Attributes::setRealArray | ( | Attribute & | attr, |
| const std::vector< double > & | value ) |
Set array value.
Definition at line 309 of file Attributes.cpp.
References Attribute::getHandler(), Attribute::getName(), and Attribute::set().
| void Attributes::setString | ( | Attribute & | attr, |
| const std::string & | val ) |
Set string value.
Definition at line 391 of file Attributes.cpp.
References Expressions::SValue< T >::evaluate(), Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Attribute::isBaseAllocated(), Attribute::set(), and Expressions::SRefAttr< T >::set().
Referenced by StringConstant::StringConstant().
| void Attributes::setStringArray | ( | Attribute & | attr, |
| const std::vector< std::string > & | value ) |
Set string array value.
Definition at line 524 of file Attributes.cpp.
References Attribute::getHandler(), Attribute::getName(), and Attribute::set().
Referenced by Attributes::StringArray::parse(), and Attributes::StringArray::parseComponent().
| void Attributes::setTableRow | ( | Attribute & | attr, |
| const TableRowRep & | rep ) |
Set table row value.
Definition at line 578 of file Attributes.cpp.
References Attribute::getHandler(), Attribute::getName(), and Attribute::set().
Set token list value.
Definition at line 612 of file Attributes.cpp.
References Attribute::getHandler(), Attribute::getName(), and Attribute::set().
| void Attributes::setTokenListArray | ( | Attribute & | attr, |
| const std::vector< std::list< Token > > & | value ) |
Set token list array value.
Definition at line 646 of file Attributes.cpp.
References Attribute::set().
Referenced by Attributes::TokenListArray::parse(), and Attributes::TokenListArray::parseComponent().
| void Attributes::setUpperCaseString | ( | Attribute & | attr, |
| const std::string & | val ) |
Set uppercase string value.
Definition at line 456 of file Attributes.cpp.
References Expressions::SValue< T >::evaluate(), Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Attribute::isBaseAllocated(), Attribute::set(), Expressions::SRefAttr< T >::set(), and Util::toUpper().
Referenced by Attributes::UpperCaseString::parse().
| void Attributes::setUpperCaseStringArray | ( | Attribute & | attr, |
| const std::vector< std::string > & | value ) |
Set upper case string array value.
Definition at line 540 of file Attributes.cpp.
References Attribute::getHandler(), Attribute::getName(), and Attribute::set().
Referenced by Attributes::UpperCaseStringArray::parse(), and Attributes::UpperCaseStringArray::parseComponent().