OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
|
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 | 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 | String |
Parser for an attribute of type string. 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. More... | |
Attribute | makeBool (const std::string &name, const std::string &help, bool initial) |
Make logical attribute. More... | |
bool | getBool (const Attribute &) |
Return logical value. More... | |
void | setBool (Attribute &, bool) |
Set logical value. More... | |
Attribute | makeBoolArray (const std::string &name, const std::string &help) |
Create a logical array attribute. More... | |
std::vector< bool > | getBoolArray (const Attribute &) |
Get logical array value. More... | |
void | setBoolArray (Attribute &, const std::vector< bool > &) |
Set logical array value. More... | |
Attribute | makePlace (const std::string &name, const std::string &help) |
Create a place attribute. More... | |
PlaceRep | getPlace (const Attribute &) |
Get place value. More... | |
void | setPlace (Attribute &, const PlaceRep &) |
Set place value. More... | |
Attribute | makeRange (const std::string &name, const std::string &help) |
Create a range attribute. More... | |
RangeRep | getRange (const Attribute &) |
Get range value. More... | |
void | setRange (Attribute &, const RangeRep &) |
Set range value. More... | |
Attribute | makeReal (const std::string &name, const std::string &help) |
Make real attribute. More... | |
Attribute | makeReal (const std::string &name, const std::string &help, double initial) |
Make real attribute. More... | |
double | getReal (const Attribute &attr) |
Return real value. More... | |
void | setReal (Attribute &attr, double val) |
Set real value. More... | |
Attribute | makeRealArray (const std::string &name, const std::string &help) |
Create real array attribute. More... | |
std::vector< double > | getRealArray (const Attribute &) |
Get array value. More... | |
void | setRealArray (Attribute &, const std::vector< double > &) |
Set array value. More... | |
Attribute | makeReference (const std::string &name, const std::string &help) |
Create a reference attribute. More... | |
Attribute | makeString (const std::string &name, const std::string &help) |
Make string attribute. More... | |
Attribute | makeString (const std::string &name, const std::string &help, const std::string &initial) |
Make string attribute. More... | |
std::string | getString (const Attribute &attr) |
Get string value. More... | |
void | setString (Attribute &attr, const std::string &val) |
Set string value. More... | |
Attribute | makePredefinedString (const std::string &name, const std::string &help, const std::initializer_list< std::string > &predefinedStrings) |
Make predefined string attribute. More... | |
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. More... | |
void | setPredefinedString (Attribute &attr, const std::string &val) |
Set predefined string value. More... | |
Attribute | makeUpperCaseString (const std::string &name, const std::string &help) |
Make uppercase string attribute. More... | |
Attribute | makeUpperCaseString (const std::string &name, const std::string &help, const std::string &initial) |
Make uppercase string attribute. More... | |
void | setUpperCaseString (Attribute &attr, const std::string &val) |
Set uppercase string value. More... | |
Attribute | makeStringArray (const std::string &name, const std::string &help) |
Create a string array attribute. More... | |
std::vector< std::string > | getStringArray (const Attribute &) |
Get string array value. More... | |
void | setStringArray (Attribute &, const std::vector< std::string > &) |
Set string array value. More... | |
Attribute | makeUpperCaseStringArray (const std::string &name, const std::string &help) |
Make uppercase string array attribute. More... | |
void | setUpperCaseStringArray (Attribute &, const std::vector< std::string > &) |
Set upper case string array value. More... | |
Attribute | makeTableRow (const std::string &name, const std::string &help) |
Create a table row attribute. More... | |
TableRowRep | getTableRow (const Attribute &) |
Get table row value. More... | |
void | setTableRow (Attribute &, const TableRowRep &) |
Set table row value. More... | |
Attribute | makeTokenList (const std::string &name, const std::string &help) |
Make token list attribute. More... | |
std::list< Token > | getTokenList (const Attribute &attr) |
Return token list value. More... | |
void | setTokenList (Attribute &attr, const std::list< Token > &) |
Set token list value. More... | |
Attribute | makeTokenListArray (const std::string &name, const std::string &help) |
Make token list attribute. More... | |
std::vector< std::list< Token > > | getTokenListArray (const Attribute &attr) |
Return token list array value. More... | |
void | setTokenListArray (Attribute &attr, const std::vector< std::list< Token > > &) |
Set token list array value. More... | |
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 Attribute::getBase(), Attribute::getHandler(), and Attribute::isBaseAllocated().
Referenced by Distribution::checkIfEmitted(), Distribution::create(), Distribution::createDistributionMultiGauss(), Distribution::createMatchedGaussDistribution(), Option::execute(), OptimizeCmd::execute(), SampleCmd::execute(), IfStatement::execute(), WhileStatement::execute(), Distribution::generateAstraFlattopT(), Distribution::generateBinomial(), Distribution::generateFlattopLaserProfile(), Distribution::generateFlattopT(), Distribution::generateFlattopZ(), Distribution::generateGaussZ(), Distribution::generateLongFlattopT(), Distribution::generateMatchedGauss(), Distribution::generateTransverseGauss(), PyOpal::PyOpalObjectNS::PyOpalObject< C >::getAttribute(), BoolConstant::getBool(), FieldSolver::initAmrSolver_m(), FieldSolver::initCartesianFields(), OpalSample::initialize(), ParticleMatterInteraction::initParticleMatterInteractionHandler(), OpalWake::initWakefunction(), List::list(), ParticleMatterInteraction::print(), Distribution::printInfo(), FieldSolver::printInfo(), Select::select(), Distribution::setDistParametersFlattop(), TrackRun::setupTTracker(), OpalCavity::update(), OpalCyclotron::update(), OpalElement::update(), OpalFlexibleCollimator::update(), OpalMultipoleT::update(), OpalRingDefinition::update(), OpalSolenoid::update(), OpalSource::update(), OpalStripper::update(), OpalTravelingWave::update(), OpalVacuum::update(), Distribution::writeOutFileEmission(), Distribution::writeOutFileHeader(), and Distribution::writeOutFileInjection().
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().
Referenced by OpalCyclotron::update().
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 Attribute::getBase(), Attribute::getHandler(), and Attribute::isBaseAllocated().
Referenced by Distribution::adjustPhaseSpace(), DumpEMFields::buildGrid(), DumpFields::buildGrid(), Distribution::checkEmissionParameters(), Distribution::createMatchedGaussDistribution(), Distribution::createOpalT(), Option::execute(), OptimizeCmd::execute(), SampleCmd::execute(), TrackCmd::execute(), TrackRun::execute(), SequenceParser::findNeighbourPositions(), Distribution::generateAstraFlattopT(), Distribution::generateLongFlattopT(), BoundaryGeometry::getA(), PyOpal::PyElementNS::PyElement< C >::getAttribute(), PyOpal::PyOpalObjectNS::PyOpalObject< C >::getAttribute(), BoundaryGeometry::getB(), BoundaryGeometry::getC(), Beam::getCharge(), Beam::getCurrent(), TrackCmd::getDTAU(), TrackCmd::getDTSCINIT(), Distribution::getEmissionTimeShift(), Beam::getFrequency(), BoundaryGeometry::getL1(), BoundaryGeometry::getL2(), BoundaryGeometry::getLength(), OpalElement::getLength(), Line::getLength(), Sequence::getLength(), DVar::getLowerBound(), Beam::getMass(), FieldSolver::getMT(), FieldSolver::getMX(), FieldSolver::getMY(), OpalWake::getNumberOfBins(), Beam::getNumberOfParticles(), RealConstant::getReal(), RealVariable::getReal(), BoundaryGeometry::getS(), TrackCmd::getStepsPerTurn(), TrackCmd::getT0(), Distribution::getTEmission(), DVar::getUpperBound(), Distribution::getWeight(), TrackCmd::getZStart(), FieldSolver::initAmrObject_m(), FieldSolver::initAmrSolver_m(), OpalSample::initialize(), OpalFilter::initOpalFilter(), OpalTrimCoil::initOpalTrimCoil(), ParticleMatterInteraction::initParticleMatterInteractionHandler(), FieldSolver::initSolver(), OpalWake::initWakefunction(), OpalTrimCoil::print(), TrackRun::print(), DumpEMFields::print(), DumpFields::print(), Beam::print(), OpalWake::print(), ParticleMatterInteraction::print(), OpalFilter::print(), Distribution::printDistFlattop(), Distribution::printDistGauss(), Distribution::printEmissionModelAstra(), Distribution::printEmissionModelNone(), BoundaryGeometry::printInfo(), FieldSolver::printInfo(), OpalElement::printMultipoleStrength(), Distribution::scaleDistCoordinates(), Distribution::setDistParametersBinomial(), Distribution::setDistParametersFlattop(), Distribution::setDistParametersGauss(), Distribution::setDistParametersMultiGauss(), Distribution::setSigmaP_m(), Distribution::setSigmaR_m(), TrackRun::setupCyclotronTracker(), OpalScalingFFAMagnet::setupDefaultEndField(), Distribution::setupEmissionModelAstra(), Distribution::setupEmissionModelNone(), Distribution::setupEmissionModelNonEquil(), Distribution::setupParticleBins(), Distribution::shiftDistCoordinates(), OpalAsymmetricEnge::update(), OpalCavity::update(), OpalCCollimator::update(), OpalCyclotron::update(), OpalDegrader::update(), OpalDrift::update(), OpalECollimator::update(), OpalElement::update(), OpalEnge::update(), OpalFlexibleCollimator::update(), OpalHKicker::update(), OpalKicker::update(), OpalMonitor::update(), OpalMultipoleT::update(), OpalMultipoleTCurvedConstRadius::update(), OpalMultipoleTCurvedVarRadius::update(), OpalMultipoleTStraight::update(), OpalOctupole::update(), OpalOffset::OpalGlobalCartesianOffset::update(), OpalOffset::OpalGlobalCylindricalOffset::update(), OpalOffset::OpalLocalCartesianOffset::update(), OpalOffset::OpalLocalCylindricalOffset::update(), OpalPepperPot::update(), OpalPolynomialTimeDependence::update(), OpalProbe::update(), OpalQuadrupole::update(), OpalRBend::update(), OpalRBend3D::update(), OpalRCollimator::update(), OpalRingDefinition::update(), OpalSBend::update(), OpalSBend3D::update(), OpalScalingFFAMagnet::update(), OpalSeptum::update(), OpalSextupole::update(), OpalSlit::update(), OpalSolenoid::update(), OpalSplineTimeDependence::update(), OpalStripper::update(), OpalTravelingWave::update(), OpalUndulator::update(), OpalVacuum::update(), OpalVariableRFCavity::update(), OpalVariableRFCavityFringeField::update(), OpalVerticalFFAMagnet::update(), OpalVKicker::update(), Beam::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(), and Attribute::isBaseAllocated().
Referenced by Value::execute(), OptimizeCmd::execute(), PyOpal::PyOpalObjectNS::PyOpalObject< C >::getAttribute(), TrackCmd::getDT(), TrackCmd::getMaxSteps(), RealVector::getRealComponent(), TrackCmd::getZStop(), FieldSolver::initAmrObject_m(), OpalTrimCoil::initOpalTrimCoil(), Distribution::injectBeam(), FieldSolver::printInfo(), OpalTrimCoil::printPolynom(), OptimizeCmd::run(), Distribution::setDistParametersBinomial(), Distribution::setDistParametersGauss(), OpalAsymmetricEnge::update(), OpalCyclotron::update(), OpalElement::update(), OpalEnge::update(), OpalMultipole::update(), OpalMultipoleT::update(), OpalMultipoleTCurvedConstRadius::update(), OpalMultipoleTCurvedVarRadius::update(), OpalMultipoleTStraight::update(), and OpalUndulator::update().
std::string Attributes::getString | ( | const Attribute & | attr | ) |
Get string value.
Definition at line 343 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), and Attribute::isBaseAllocated().
Referenced by BoundaryGeometry::BoundaryGeometry(), DumpEMFields::buildGrid(), DumpFields::buildGrid(), Distribution::calcPartPerDist(), Distribution::chooseInputMomentumUnits(), Distribution::createDistributionFromFile(), Distribution::createMatchedGaussDistribution(), Call::execute(), Echo::execute(), Help::execute(), Option::execute(), PSystem::execute(), Select::execute(), System::execute(), Title::execute(), OptimizeCmd::execute(), SampleCmd::execute(), List::execute(), TrackCmd::execute(), SequenceParser::findNeighbourPositions(), OpalElement::getApert(), PyOpal::PyOpalObjectNS::PyOpalObject< C >::getAttribute(), Constraint::getExpression(), Objective::getExpression(), BoundaryGeometry::getFilename(), ParticleMatterInteraction::getInteractionType(), Distribution::getNumberOfParticlesInFile(), OpalElement::getParticleMatterInteraction(), Beam::getParticleName(), Sequence::getReference(), StringConstant::getString(), FieldSolver::getTagging_m(), TrackCmd::getTimeIntegrator(), BoundaryGeometry::getTopology(), FieldSolver::getType(), OpalElement::getTypeName(), DVar::getVariable(), OpalSample::getVariable(), OpalElement::getWakeF(), FieldSolver::hasPeriodicZ(), FieldSolver::initAmrSolver_m(), FieldSolver::initCartesianFields(), OpalSample::initialize(), OpalFilter::initOpalFilter(), OpalTrimCoil::initOpalTrimCoil(), ParticleMatterInteraction::initParticleMatterInteractionHandler(), FieldSolver::initSolver(), OpalWake::initWakefunction(), Sequence::parse(), DumpEMFields::parseCoordinateSystem(), OpalTrimCoil::print(), DumpEMFields::print(), Beam::print(), ParticleMatterInteraction::print(), OpalFilter::print(), Distribution::printDistFromFile(), BoundaryGeometry::printInfo(), FieldSolver::printInfo(), OptimizeCmd::run(), Select::select(), TrackRun::setBoundaryGeometry(), Distribution::setDistParametersFlattop(), Distribution::setDistType(), TrackRun::setRunMethod(), TrackRun::setupCyclotronTracker(), Distribution::setupEmissionModel(), TrackRun::setupFieldsolver(), OpalScalingFFAMagnet::setupNamedEndField(), TrackRun::setupThickTracker(), TrackRun::setupTTracker(), OpalCavity::update(), OpalCCollimator::update(), OpalCyclotron::update(), OpalDegrader::update(), OpalDrift::update(), OpalECollimator::update(), OpalFlexibleCollimator::update(), OpalMonitor::update(), OpalPepperPot::update(), OpalProbe::update(), OpalQuadrupole::update(), OpalRBend::update(), OpalRBend3D::update(), OpalRCollimator::update(), OpalSBend::update(), OpalSBend3D::update(), OpalSeptum::update(), OpalSlit::update(), OpalSolenoid::update(), OpalSource::update(), OpalStripper::update(), OpalTravelingWave::update(), OpalUndulator::update(), OpalVacuum::update(), OpalVariableRFCavity::update(), and OpalVariableRFCavityFringeField::update().
std::vector< std::string > Attributes::getStringArray | ( | const Attribute & | attr | ) |
Get string array value.
Definition at line 478 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), OpalData::getInstance(), and Attribute::isBaseAllocated().
Referenced by OptimizeCmd::execute(), SampleCmd::execute(), OpalWake::initWakefunction(), Attributes::StringArray::parseComponent(), Attributes::UpperCaseStringArray::parseComponent(), TrackRun::setDistributionParallelT(), TrackRun::setupCyclotronTracker(), and OpalCyclotron::update().
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(), and Attribute::isBaseAllocated().
Return token list array value.
Definition at line 630 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), and Attribute::isBaseAllocated().
Referenced by List::list().
Attribute Attributes::makeBool | ( | const std::string & | name, |
const std::string & | help | ||
) |
Make logical attribute.
Definition at line 90 of file Attributes.cpp.
References name.
Referenced by BoolConstant::BoolConstant(), IfStatement::execute(), WhileStatement::execute(), FieldSolver::FieldSolver(), List::List(), OpalBend::OpalBend(), OpalCavity::OpalCavity(), OpalCyclotron::OpalCyclotron(), OpalElement::OpalElement(), OpalFlexibleCollimator::OpalFlexibleCollimator(), OpalMultipoleT::OpalMultipoleT(), OpalRingDefinition::OpalRingDefinition(), OpalSample::OpalSample(), OpalSolenoid::OpalSolenoid(), OpalSource::OpalSource(), OpalStripper::OpalStripper(), OpalTravelingWave::OpalTravelingWave(), OpalVacuum::OpalVacuum(), OpalWake::OpalWake(), OptimizeCmd::OptimizeCmd(), Option::Option(), ParticleMatterInteraction::ParticleMatterInteraction(), SampleCmd::SampleCmd(), Select::Select(), Distribution::setAttributes(), and TrackRun::TrackRun().
Attribute Attributes::makeBool | ( | const std::string & | name, |
const std::string & | help, | ||
bool | ini | ||
) |
Attribute Attributes::makeBoolArray | ( | const std::string & | name, |
const std::string & | help | ||
) |
Create a logical array attribute.
Definition at line 136 of file Attributes.cpp.
References name.
Referenced by OpalCyclotron::OpalCyclotron().
Attribute Attributes::makePlace | ( | const std::string & | name, |
const std::string & | help | ||
) |
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.
References name.
Referenced by Beam::Beam(), BoundaryGeometry::BoundaryGeometry(), DumpEMFields::DumpEMFields(), FieldSolver::FieldSolver(), OpalElement::OpalElement(), OpalFilter::OpalFilter(), OpalSample::OpalSample(), OpalTrimCoil::OpalTrimCoil(), OpalVacuum::OpalVacuum(), OpalWake::OpalWake(), OptimizeCmd::OptimizeCmd(), Option::Option(), ParticleMatterInteraction::ParticleMatterInteraction(), Distribution::setAttributes(), 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 name, and 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.
References name.
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.
References name.
Referenced by Beam::Beam(), BoundaryGeometry::BoundaryGeometry(), DumpEMFields::DumpEMFields(), DumpFields::DumpFields(), DVar::DVar(), FieldSolver::FieldSolver(), Line::Line(), OpalAsymmetricEnge::OpalAsymmetricEnge(), OpalBend::OpalBend(), OpalCavity::OpalCavity(), OpalCCollimator::OpalCCollimator(), OpalCyclotron::OpalCyclotron(), OpalDegrader::OpalDegrader(), OpalDrift::OpalDrift(), OpalECollimator::OpalECollimator(), OpalElement::OpalElement(), OpalEnge::OpalEnge(), OpalFilter::OpalFilter(), OpalOffset::OpalGlobalCartesianOffset::OpalGlobalCartesianOffset(), OpalOffset::OpalGlobalCylindricalOffset::OpalGlobalCylindricalOffset(), OpalHKicker::OpalHKicker(), OpalKicker::OpalKicker(), OpalOffset::OpalLocalCartesianOffset::OpalLocalCartesianOffset(), OpalOffset::OpalLocalCylindricalOffset::OpalLocalCylindricalOffset(), OpalMultipoleT::OpalMultipoleT(), OpalMultipoleTCurvedConstRadius::OpalMultipoleTCurvedConstRadius(), OpalMultipoleTCurvedVarRadius::OpalMultipoleTCurvedVarRadius(), OpalMultipoleTStraight::OpalMultipoleTStraight(), OpalOctupole::OpalOctupole(), OpalPepperPot::OpalPepperPot(), OpalPolynomialTimeDependence::OpalPolynomialTimeDependence(), OpalProbe::OpalProbe(), OpalQuadrupole::OpalQuadrupole(), OpalRBend3D::OpalRBend3D(), OpalRCollimator::OpalRCollimator(), OpalRingDefinition::OpalRingDefinition(), OpalSample::OpalSample(), OpalSBend3D::OpalSBend3D(), OpalScalingFFAMagnet::OpalScalingFFAMagnet(), OpalSeptum::OpalSeptum(), OpalSextupole::OpalSextupole(), OpalSlit::OpalSlit(), OpalSolenoid::OpalSolenoid(), OpalSplineTimeDependence::OpalSplineTimeDependence(), OpalStripper::OpalStripper(), OpalTravelingWave::OpalTravelingWave(), OpalTrimCoil::OpalTrimCoil(), OpalUndulator::OpalUndulator(), OpalVacuum::OpalVacuum(), OpalVariableRFCavity::OpalVariableRFCavity(), OpalVariableRFCavityFringeField::OpalVariableRFCavityFringeField(), OpalVerticalFFAMagnet::OpalVerticalFFAMagnet(), OpalVKicker::OpalVKicker(), OpalWake::OpalWake(), OptimizeCmd::OptimizeCmd(), Option::Option(), ParticleMatterInteraction::ParticleMatterInteraction(), RealConstant::RealConstant(), RealVariable::RealVariable(), SampleCmd::SampleCmd(), Sequence::Sequence(), Distribution::setAttributes(), TrackCmd::TrackCmd(), and TrackRun::TrackRun().
Attribute Attributes::makeReal | ( | const std::string & | name, |
const std::string & | help, | ||
double | initial | ||
) |
Attribute Attributes::makeRealArray | ( | const std::string & | name, |
const std::string & | help | ||
) |
Create real array attribute.
Definition at line 289 of file Attributes.cpp.
References name.
Referenced by BoundaryGeometry::BoundaryGeometry(), FieldSolver::FieldSolver(), Line::Line(), OpalAsymmetricEnge::OpalAsymmetricEnge(), OpalCyclotron::OpalCyclotron(), OpalElement::OpalElement(), OpalEnge::OpalEnge(), OpalMultipole::OpalMultipole(), OpalMultipoleT::OpalMultipoleT(), OpalMultipoleTCurvedConstRadius::OpalMultipoleTCurvedConstRadius(), OpalMultipoleTCurvedVarRadius::OpalMultipoleTCurvedVarRadius(), OpalMultipoleTStraight::OpalMultipoleTStraight(), OpalSplineTimeDependence::OpalSplineTimeDependence(), OpalTrimCoil::OpalTrimCoil(), OpalUndulator::OpalUndulator(), OptimizeCmd::OptimizeCmd(), RealVector::RealVector(), Distribution::setAttributes(), TrackCmd::TrackCmd(), and Value::Value().
Attribute Attributes::makeReference | ( | const std::string & | name, |
const std::string & | help | ||
) |
Attribute Attributes::makeString | ( | const std::string & | name, |
const std::string & | help | ||
) |
Make string attribute.
Definition at line 332 of file Attributes.cpp.
References name.
Referenced by BoundaryGeometry::BoundaryGeometry(), Call::Call(), Constraint::Constraint(), DumpEMFields::DumpEMFields(), DumpFields::DumpFields(), DVar::DVar(), Echo::Echo(), Help::Help(), Line::Line(), List::List(), Objective::Objective(), OpalBend::OpalBend(), OpalCavity::OpalCavity(), OpalCyclotron::OpalCyclotron(), OpalDrift::OpalDrift(), OpalElement::OpalElement(), OpalFlexibleCollimator::OpalFlexibleCollimator(), OpalRBend3D::OpalRBend3D(), OpalSample::OpalSample(), OpalSBend3D::OpalSBend3D(), OpalScalingFFAMagnet::OpalScalingFFAMagnet(), OpalSolenoid::OpalSolenoid(), OpalTravelingWave::OpalTravelingWave(), OpalUndulator::OpalUndulator(), OpalVacuum::OpalVacuum(), OpalVariableRFCavity::OpalVariableRFCavity(), OpalVariableRFCavityFringeField::OpalVariableRFCavityFringeField(), OpalWake::OpalWake(), OptimizeCmd::OptimizeCmd(), PSystem::PSystem(), SampleCmd::SampleCmd(), Select::Select(), Sequence::Sequence(), Distribution::setAttributes(), 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 | ||
) |
Attribute Attributes::makeStringArray | ( | const std::string & | name, |
const std::string & | help | ||
) |
Create a string array attribute.
Definition at line 473 of file Attributes.cpp.
References name.
Referenced by OpalCyclotron::OpalCyclotron(), OpalSource::OpalSource(), OpalWake::OpalWake(), OptimizeCmd::OptimizeCmd(), SampleCmd::SampleCmd(), and TrackRun::TrackRun().
Attribute Attributes::makeTableRow | ( | const std::string & | name, |
const std::string & | help | ||
) |
Attribute Attributes::makeTokenList | ( | const std::string & | name, |
const std::string & | help | ||
) |
Attribute Attributes::makeTokenListArray | ( | const std::string & | name, |
const std::string & | help | ||
) |
Make token list attribute.
Definition at line 625 of file Attributes.cpp.
References name.
Referenced by List::List().
Attribute Attributes::makeUpperCaseString | ( | const std::string & | name, |
const std::string & | help | ||
) |
Make uppercase string attribute.
Definition at line 445 of file Attributes.cpp.
References name.
Referenced by FieldSolver::FieldSolver().
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 name, and 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.
References name.
Referenced by SampleCmd::SampleCmd().
void Attributes::setBool | ( | Attribute & | attr, |
bool | val | ||
) |
Set logical value.
Definition at line 119 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Attribute::isBaseAllocated(), Hypervolume::ref, Attribute::set(), and Expressions::SRefAttr< T >::set().
Referenced by Option::Option(), and PyOpal::PyOpalObjectNS::PyOpalObject< C >::setAttribute().
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 Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Attribute::isBaseAllocated(), Hypervolume::ref, 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 Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Attribute::isBaseAllocated(), Hypervolume::ref, Attribute::set(), and Expressions::SRefAttr< T >::set().
Referenced by Option::Option(), RealConstant::RealConstant(), RealVariable::RealVariable(), PyOpal::PyElementNS::PyElement< C >::setAttribute(), PyOpal::PyOpalObjectNS::PyOpalObject< C >::setAttribute(), FieldSolver::setMT(), FieldSolver::setMX(), FieldSolver::setMY(), 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().
Referenced by FieldSolver::FieldSolver(), and PyOpal::PyOpalObjectNS::PyOpalObject< C >::setAttribute().
void Attributes::setString | ( | Attribute & | attr, |
const std::string & | val | ||
) |
Set string value.
Definition at line 391 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Attribute::isBaseAllocated(), Hypervolume::ref, Attribute::set(), and Expressions::SRefAttr< T >::set().
Referenced by PyOpal::PyOpalObjectNS::PyOpalObject< C >::setAttribute(), and 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().
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().
void Attributes::setUpperCaseString | ( | Attribute & | attr, |
const std::string & | val | ||
) |
Set uppercase string value.
Definition at line 456 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Attribute::isBaseAllocated(), Hypervolume::ref, 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().