OPAL (Object Oriented Parallel Accelerator Library)
2.2.0
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 | String |
Parser for an attribute of type string. More... | |
class | Place |
Parser for an attribute of type place reference. 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... | |
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 | 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 | 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 66 of file Attributes.cpp.
References Expressions::SRefAttr< T >::evaluate(), Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Attribute::isBaseAllocated(), and Hypervolume::ref.
Referenced by Distribution::checkIfEmitted(), Distribution::create(), Distribution::createMatchedGaussDistribution(), SampleCmd::execute(), OptimizeCmd::execute(), EditMove::execute(), EditRemove::execute(), EditReplace::execute(), EditSelect::execute(), Option::execute(), ThreadBpm::execute(), ThreadAll::execute(), Micado::execute(), WhileStatement::execute(), IfStatement::execute(), Survey::execute(), MSplit::execute(), Twiss::execute(), Aperture::execute(), Distribution::generateAstraFlattopT(), Distribution::generateBinomial(), Distribution::generateFlattopLaserProfile(), Distribution::generateFlattopT(), Distribution::generateFlattopZ(), Distribution::generateGaussZ(), Distribution::generateLongFlattopT(), Distribution::generateTransverseGauss(), BoolConstant::getBool(), Distribution::getEmissionMode(), FieldSolver::initAmrSolver_m(), FieldSolver::initCartesianFields(), OpalSample::initialize(), ParticleMatterInteraction::initParticleMatterInteractionHandler(), OpalWake::initWakefunction(), List::list(), Distribution::printDistSurfEmission(), FieldSolver::printInfo(), Select::select(), Distribution::setDistParametersFlattop(), TrackRun::setDistributionParallelT(), TrackRun::setupTTracker(), Micado::solve(), OpalBeamStripping::update(), OpalSolenoid::update(), OpalFlexibleCollimator::update(), OpalStripper::update(), OpalTravelingWave::update(), OpalCavity::update(), OpalMultipoleT::update(), OpalCyclotron::update(), Distribution::writeOutFileEmission(), Distribution::writeOutFileHeader(), and Distribution::writeOutFileInjection().
std::vector< bool > Attributes::getBoolArray | ( | const Attribute & | attr | ) |
Get logical array value.
Definition at line 106 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getName(), and Attribute::isBaseAllocated().
Referenced by OpalCyclotron::update().
Get place value.
Definition at line 143 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getName(), and Attribute::isBaseAllocated().
Referenced by EditCycle::execute(), EditReplace::execute(), EditRemove::execute(), EditMove::execute(), and EditInstall::execute().
Get range value.
Definition at line 177 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getName(), and Attribute::isBaseAllocated().
Referenced by EditSelect::execute(), ThreadBpm::execute(), ThreadAll::execute(), Micado::execute(), Survey::execute(), Twiss::execute(), and Select::select().
double Attributes::getReal | ( | const Attribute & | attr | ) |
Return real value.
Definition at line 217 of file Attributes.cpp.
References Expressions::SRefAttr< T >::evaluate(), Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Attribute::isBaseAllocated(), and Hypervolume::ref.
Referenced by CorrectionBase::addKick(), Distribution::adjustPhaseSpace(), DumpEMFields::buildGrid(), DumpFields::buildGrid(), Distribution::checkEmissionParameters(), Distribution::createMatchedGaussDistribution(), Distribution::createOpalE(), Distribution::createOpalT(), SampleCmd::execute(), OptimizeCmd::execute(), SetIntegrator::execute(), EditMove::execute(), VaryCmd::execute(), Dynamic::execute(), Static::execute(), TrackCmd::execute(), TrackStart::execute(), Option::execute(), ThreadBpm::execute(), EditInstall::execute(), ThreadAll::execute(), MatchOption::execute(), Micado::execute(), Simplex::execute(), TrackRun::execute(), Migrad::execute(), LMDif::execute(), Twiss::execute(), Aperture::execute(), Insertion::fill(), Survey::fill(), OpalSRot::fillRegisteredAttributes(), OpalYRot::fillRegisteredAttributes(), Period::findClosedOrbit(), SequenceParser::findNeighbourPositions(), Distribution::generateAstraFlattopT(), Distribution::generateLongFlattopT(), BoundaryGeometry::getA(), Aperture::getAPERTMIN(), BoundaryGeometry::getB(), MSplit::getBETXMAX(), Aperture::getBETXMAX(), MSplit::getBETYMAX(), Aperture::getBETYMAX(), BoundaryGeometry::getC(), Beam::getCharge(), Beam::getCurrent(), Distribution::getDarkCurrentParticlesInwardMargin(), TrackCmd::getDTAU(), TrackCmd::getDTSCINIT(), Distribution::getEInitThreshold(), Distribution::getEkin(), Distribution::getEmissionTimeShift(), Beam::getET(), Beam::getEX(), ConcreteVar::getExternalValue(), Beam::getEY(), Distribution::getFieldEnhancement(), Distribution::getFieldFNThreshold(), Distribution::getFNParameterA(), Distribution::getFNParameterB(), Distribution::getFNParameterVYSecond(), Distribution::getFNParameterVYZero(), Distribution::getFNParameterY(), Beam::getFrequency(), Beam::getGamma(), ConcreteVar::getInternalValue(), BoundaryGeometry::getL1(), BoundaryGeometry::getL2(), Distribution::getLaserEnergy(), Line::getLength(), Sequence::getLength(), OpalElement::getLength(), BoundaryGeometry::getLength(), DVar::getLowerBound(), Beam::getMass(), Distribution::getMaxFNemissionPartPerTri(), FieldSolver::getMT(), FieldSolver::getMX(), FieldSolver::getMY(), OpalWake::getNumberOfBins(), Distribution::getNumberOfDarkCurrentParticles(), Beam::getNumberOfParticles(), Beam::getNumberOfSlices(), Beam::getPC(), RealVariable::getReal(), RealConstant::getReal(), BoundaryGeometry::getS(), Distribution::getSecondaryEmissionFlag(), TrackCmd::getSTEPSPERTURN(), Distribution::getSurfMaterial(), TrackCmd::getT0(), Distribution::getTEmission(), DVar::getUpperBound(), Distribution::getvEmax(), Distribution::getvEZero(), Distribution::getvKenergy(), Distribution::getvKtheta(), Distribution::getvSeyMax(), Distribution::getvSeyZero(), Distribution::getvVThermal(), Distribution::getVw(), Distribution::getWeight(), Distribution::getWorkFunction(), Distribution::getWorkFunctionRf(), TrackCmd::getZSTART(), FieldSolver::initAmrObject_m(), FieldSolver::initAmrSolver_m(), OpalSample::initialize(), BoundaryGeometry::initialize(), OpalFilter::initOpalFilter(), OpalTrimCoil::initOpalTrimCoil(), FieldSolver::initSolver(), OpalWake::initWakefunction(), Line::parse(), OpalTrimCoil::print(), OpalFilter::print(), OpalWake::print(), Beam::print(), Distribution::printDistFlattop(), Distribution::printDistGauss(), Distribution::printDistSurfAndCreate(), Distribution::printDistSurfEmission(), Distribution::printEmissionModelAstra(), Distribution::printEmissionModelNone(), FieldSolver::printInfo(), BoundaryGeometry::printInfo(), OpalElement::printMultipoleStrength(), Insertion::printTable(), Period::printTable(), MSplit::run(), Aperture::run(), Distribution::scaleDistCoordinates(), Distribution::setDistParametersBinomial(), Distribution::setDistParametersFlattop(), Distribution::setDistParametersGauss(), Distribution::setFieldEmissionParameters(), TrackRun::setupCyclotronTracker(), Distribution::setupEmissionModelAstra(), Distribution::setupEmissionModelNone(), Distribution::setupEmissionModelNonEquil(), Distribution::setupParticleBins(), Distribution::shiftDistCoordinates(), Micado::solve(), OpalHMonitor::update(), OpalInstrument::update(), OpalVMonitor::update(), OpalMonitor::update(), OpalSBend::update(), OpalBeamStripping::update(), OpalRBend::update(), OpalVerticalFFAMagnet::update(), OpalSRot::update(), OpalYRot::update(), OpalSeparator::update(), OpalDegrader::update(), OpalECollimator::update(), OpalSolenoid::update(), OpalRCollimator::update(), OpalSlit::update(), OpalHKicker::update(), OpalDrift::update(), OpalWire::update(), OpalFlexibleCollimator::update(), OpalSeptum::update(), OpalPatch::update(), OpalOctupole::update(), OpalSextupole::update(), OpalParallelPlate::update(), OpalPepperPot::update(), OpalCCollimator::update(), OpalProbe::update(), OpalStripper::update(), OpalRBend3D::update(), OpalQuadrupole::update(), OpalVKicker::update(), OpalPolynomialTimeDependence::update(), OpalSplineTimeDependence::update(), OpalSBend3D::update(), OpalKicker::update(), OpalOffset::OpalGlobalCylindricalOffset::update(), OpalTravelingWave::update(), OpalOffset::OpalLocalCylindricalOffset::update(), OpalOffset::OpalGlobalCartesianOffset::update(), OpalOffset::OpalLocalCartesianOffset::update(), OpalScalingFFAMagnet::update(), OpalMultipoleTStraight::update(), OpalRingDefinition::update(), OpalVariableRFCavity::update(), OpalCavity::update(), OpalMultipoleTCurvedVarRadius::update(), OpalMultipoleT::update(), OpalMultipoleTCurvedConstRadius::update(), OpalVariableRFCavityFringeField::update(), OpalCyclotron::update(), Beam::update(), OpalElement::update(), and OpalElement::updateUnknown().
std::vector< double > Attributes::getRealArray | ( | const Attribute & | attr | ) |
Get array value.
Definition at line 258 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), and Attribute::isBaseAllocated().
Referenced by Aperture::calcul(), ConcreteFun::evaluate(), OptimizeCmd::execute(), Value::execute(), Aperture::execute(), TrackCmd::getDT(), TrackCmd::getMAXSTEPS(), RealVector::getRealComponent(), TrackCmd::getZSTOP(), FieldSolver::initAmrObject_m(), BoundaryGeometry::initialize(), OpalTrimCoil::initOpalTrimCoil(), Distribution::injectBeam(), Line::parse(), FieldSolver::printInfo(), OpalTrimCoil::printPolynom(), OptimizeCmd::run(), Aperture::run(), Distribution::setDistParametersBinomial(), Distribution::setDistParametersGauss(), OpalMultipole::update(), OpalSplineTimeDependence::update(), OpalMultipoleTStraight::update(), OpalMultipoleTCurvedConstRadius::update(), OpalMultipoleT::update(), OpalMultipoleTCurvedVarRadius::update(), OpalCyclotron::update(), and OpalElement::update().
std::string Attributes::getString | ( | const Attribute & | attr | ) |
Get string value.
Definition at line 307 of file Attributes.cpp.
References Expressions::SRefAttr< T >::evaluate(), Attribute::getBase(), Attribute::getHandler(), OpalData::getInstance(), Attribute::getName(), Attribute::isBaseAllocated(), RealVariable::printValue(), real(), Hypervolume::ref, and Util::toUpper().
Referenced by BoundaryGeometry::BoundaryGeometry(), DumpEMFields::buildGrid(), DumpFields::buildGrid(), Distribution::calcPartPerDist(), Distribution::chooseInputMomentumUnits(), Distribution::createDistributionFromFile(), Distribution::createMatchedGaussDistribution(), SampleCmd::execute(), OptimizeCmd::execute(), SetIntegrator::execute(), Show::execute(), EditCmd::execute(), EditEnd::execute(), System::execute(), EditReplace::execute(), EditSelect::execute(), Title::execute(), Echo::execute(), Dynamic::execute(), MakeSequence::execute(), What::execute(), Static::execute(), Help::execute(), PSystem::execute(), Call::execute(), Save::execute(), TrackCmd::execute(), TrackSave::execute(), Option::execute(), ThreadBpm::execute(), ThreadAll::execute(), Select::execute(), AttList::execute(), Eigen::execute(), Envelope::execute(), List::execute(), MatrixCmd::execute(), Twiss3::execute(), Micado::execute(), TrackRun::execute(), Survey::execute(), MSplit::execute(), Twiss::execute(), Aperture::execute(), SequenceParser::findNeighbourPositions(), OpalElement::getApert(), BoundaryGeometry::getDistribution(), Constraint::getExpression(), Objective::getExpression(), BoundaryGeometry::getFilename(), Distribution::getNumberOfParticlesInFile(), OpalElement::getParticleMatterInteraction(), Beam::getParticleName(), Sequence::getReference(), StringConstant::getString(), FieldSolver::getTagging_m(), TrackCmd::getTIMEINTEGRATOR(), BoundaryGeometry::getTopology(), FieldSolver::getType(), OpalElement::getTypeName(), Distribution::getTypeofDistribution(), 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(), OpalFilter::print(), ParticleMatterInteraction::print(), Beam::print(), Distribution::printDistFromFile(), FieldSolver::printInfo(), BoundaryGeometry::printInfo(), OptimizeCmd::run(), MSplit::run(), Aperture::run(), Select::select(), Distribution::setDistParametersFlattop(), Distribution::setDistType(), TrackRun::setupCyclotronTracker(), Distribution::setupEmissionModel(), TrackRun::setupFieldsolver(), TrackRun::setupSliceTracker(), TrackRun::setupThickTracker(), TrackRun::setupTTracker(), OpalSBend::update(), OpalMonitor::update(), OpalRBend::update(), OpalBeamStripping::update(), OpalCyclotronValley::update(), OpalDegrader::update(), OpalSolenoid::update(), OpalRCollimator::update(), OpalECollimator::update(), OpalSlit::update(), OpalFlexibleCollimator::update(), OpalWire::update(), OpalDrift::update(), OpalSeptum::update(), OpalPepperPot::update(), OpalCCollimator::update(), OpalProbe::update(), OpalParallelPlate::update(), OpalStripper::update(), OpalRBend3D::update(), OpalQuadrupole::update(), OpalSBend3D::update(), OpalTravelingWave::update(), OpalRingDefinition::update(), OpalCavity::update(), OpalVariableRFCavity::update(), OpalVariableRFCavityFringeField::update(), OpalCyclotron::update(), Beam::update(), and AttList::writeTable().
std::vector< std::string > Attributes::getStringArray | ( | const Attribute & | attr | ) |
Get string array value.
Definition at line 378 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), OpalData::getInstance(), Attribute::getName(), Attribute::isBaseAllocated(), RealVariable::printValue(), real(), and Util::toUpper().
Referenced by SampleCmd::execute(), OptimizeCmd::execute(), BoundaryGeometry::getDistributionArray(), OpalWake::initWakefunction(), Attributes::StringArray::parseComponent(), TrackRun::setDistributionParallelT(), TrackRun::setupCyclotronTracker(), TrackRun::setupSliceTracker(), OpalCyclotron::update(), and AttList::writeTable().
TableRowRep Attributes::getTableRow | ( | const Attribute & | attr | ) |
Get table row value.
Definition at line 442 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getName(), and Attribute::isBaseAllocated().
Referenced by Insertion::fill(), and Survey::fill().
Return token list value.
Definition at line 477 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), and Attribute::isBaseAllocated().
Return token list array value.
Definition at line 510 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), and Attribute::isBaseAllocated().
Referenced by List::list().
Attribute Attributes::makeBool | ( | const std::string & | name, |
const std::string & | help | ||
) |
Make logical attribute.
Definition at line 56 of file Attributes.cpp.
Referenced by Aperture::Aperture(), AttList::AttList(), BoolConstant::BoolConstant(), EditMove::EditMove(), EditRemove::EditRemove(), EditReplace::EditReplace(), EditSelect::EditSelect(), IfStatement::execute(), WhileStatement::execute(), FieldSolver::FieldSolver(), List::List(), Micado::Micado(), MSplit::MSplit(), OpalBeamStripping::OpalBeamStripping(), OpalBend::OpalBend(), OpalCavity::OpalCavity(), OpalCyclotron::OpalCyclotron(), OpalFlexibleCollimator::OpalFlexibleCollimator(), OpalMultipoleT::OpalMultipoleT(), OpalSample::OpalSample(), OpalSolenoid::OpalSolenoid(), OpalStripper::OpalStripper(), OpalTravelingWave::OpalTravelingWave(), OpalWake::OpalWake(), OptimizeCmd::OptimizeCmd(), Option::Option(), ParticleMatterInteraction::ParticleMatterInteraction(), SampleCmd::SampleCmd(), Select::Select(), Distribution::setAttributes(), Survey::Survey(), ThreadAll::ThreadAll(), ThreadBpm::ThreadBpm(), TrackRun::TrackRun(), and Twiss::Twiss().
Attribute Attributes::makeBool | ( | const std::string & | name, |
const std::string & | help, | ||
bool | ini | ||
) |
Make logical attribute.
Definition at line 61 of file Attributes.cpp.
Attribute Attributes::makeBoolArray | ( | const std::string & | name, |
const std::string & | help | ||
) |
Create a logical array attribute.
Definition at line 101 of file Attributes.cpp.
Referenced by OpalCyclotron::OpalCyclotron().
Attribute Attributes::makePlace | ( | const std::string & | name, |
const std::string & | help | ||
) |
Create a place attribute.
Definition at line 137 of file Attributes.cpp.
Referenced by EditCycle::EditCycle(), EditInstall::EditInstall(), EditMove::EditMove(), EditRemove::EditRemove(), and EditReplace::EditReplace().
Attribute Attributes::makeRange | ( | const std::string & | name, |
const std::string & | help | ||
) |
Create a range attribute.
Definition at line 171 of file Attributes.cpp.
Referenced by CorrectionBase::CorrectionBase(), EditSelect::EditSelect(), Select::Select(), Survey::Survey(), and Twiss::Twiss().
Attribute Attributes::makeReal | ( | const std::string & | name, |
const std::string & | help | ||
) |
Make real attribute.
Definition at line 205 of file Attributes.cpp.
Referenced by Aperture::Aperture(), Beam::Beam(), BoundaryGeometry::BoundaryGeometry(), DumpEMFields::DumpEMFields(), DumpFields::DumpFields(), DVar::DVar(), Dynamic::Dynamic(), EditInstall::EditInstall(), EditMove::EditMove(), FieldSolver::FieldSolver(), Insertion::Insertion(), Line::Line(), LMDif::LMDif(), MatchOption::MatchOption(), Micado::Micado(), Migrad::Migrad(), MSplit::MSplit(), OpalBeamStripping::OpalBeamStripping(), OpalBend::OpalBend(), OpalCavity::OpalCavity(), OpalCCollimator::OpalCCollimator(), OpalCyclotron::OpalCyclotron(), OpalCyclotronValley::OpalCyclotronValley(), OpalDegrader::OpalDegrader(), OpalDrift::OpalDrift(), OpalECollimator::OpalECollimator(), OpalElement::OpalElement(), 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(), OpalParallelPlate::OpalParallelPlate(), OpalPatch::OpalPatch(), OpalPepperPot::OpalPepperPot(), OpalPolynomialTimeDependence::OpalPolynomialTimeDependence(), OpalProbe::OpalProbe(), OpalQuadrupole::OpalQuadrupole(), OpalRBend3D::OpalRBend3D(), OpalRCollimator::OpalRCollimator(), OpalRingDefinition::OpalRingDefinition(), OpalSample::OpalSample(), OpalSBend3D::OpalSBend3D(), OpalScalingFFAMagnet::OpalScalingFFAMagnet(), OpalSeparator::OpalSeparator(), OpalSeptum::OpalSeptum(), OpalSextupole::OpalSextupole(), OpalSlit::OpalSlit(), OpalSolenoid::OpalSolenoid(), OpalSplineTimeDependence::OpalSplineTimeDependence(), OpalSRot::OpalSRot(), OpalStripper::OpalStripper(), OpalTravelingWave::OpalTravelingWave(), OpalTrimCoil::OpalTrimCoil(), OpalVariableRFCavity::OpalVariableRFCavity(), OpalVariableRFCavityFringeField::OpalVariableRFCavityFringeField(), OpalVerticalFFAMagnet::OpalVerticalFFAMagnet(), OpalVKicker::OpalVKicker(), OpalWake::OpalWake(), OpalWire::OpalWire(), OpalYRot::OpalYRot(), OptimizeCmd::OptimizeCmd(), Option::Option(), Period::Period(), RealConstant::RealConstant(), RealVariable::RealVariable(), SampleCmd::SampleCmd(), Sequence::Sequence(), Distribution::setAttributes(), SetIntegrator::SetIntegrator(), Simplex::Simplex(), Static::Static(), Survey::Survey(), ThreadAll::ThreadAll(), ThreadBpm::ThreadBpm(), TrackCmd::TrackCmd(), TrackRun::TrackRun(), TrackStart::TrackStart(), Twiss::Twiss(), and VaryCmd::VaryCmd().
Attribute Attributes::makeReal | ( | const std::string & | name, |
const std::string & | help, | ||
double | initial | ||
) |
Make real attribute.
Definition at line 211 of file Attributes.cpp.
Attribute Attributes::makeRealArray | ( | const std::string & | name, |
const std::string & | help | ||
) |
Create real array attribute.
Definition at line 253 of file Attributes.cpp.
Referenced by Aperture::Aperture(), BoundaryGeometry::BoundaryGeometry(), ConstraintCmd::ConstraintCmd(), FieldSolver::FieldSolver(), Line::Line(), OpalCyclotron::OpalCyclotron(), OpalElement::OpalElement(), OpalMultipole::OpalMultipole(), OpalMultipoleT::OpalMultipoleT(), OpalMultipoleTCurvedConstRadius::OpalMultipoleTCurvedConstRadius(), OpalMultipoleTCurvedVarRadius::OpalMultipoleTCurvedVarRadius(), OpalMultipoleTStraight::OpalMultipoleTStraight(), OpalSplineTimeDependence::OpalSplineTimeDependence(), OpalTrimCoil::OpalTrimCoil(), OptimizeCmd::OptimizeCmd(), RealVector::RealVector(), Distribution::setAttributes(), TrackCmd::TrackCmd(), and Value::Value().
Attribute Attributes::makeReference | ( | const std::string & | name, |
const std::string & | help | ||
) |
Create a reference attribute.
Definition at line 288 of file Attributes.cpp.
Referenced by VaryCmd::VaryCmd().
Attribute Attributes::makeString | ( | const std::string & | name, |
const std::string & | help | ||
) |
Make string attribute.
Definition at line 296 of file Attributes.cpp.
Referenced by Aperture::Aperture(), AttList::AttList(), Beam::Beam(), BoundaryGeometry::BoundaryGeometry(), Call::Call(), Constraint::Constraint(), CorrectionBase::CorrectionBase(), DumpEMFields::DumpEMFields(), DumpFields::DumpFields(), DVar::DVar(), Dynamic::Dynamic(), Echo::Echo(), EditCmd::EditCmd(), EditEnd::EditEnd(), EditReplace::EditReplace(), EditSelect::EditSelect(), Eigen::Eigen(), Envelope::Envelope(), FieldSolver::FieldSolver(), Help::Help(), Line::Line(), List::List(), MakeSequence::MakeSequence(), MatrixCmd::MatrixCmd(), Micado::Micado(), MSplit::MSplit(), Objective::Objective(), OpalBeamStripping::OpalBeamStripping(), OpalBend::OpalBend(), OpalCavity::OpalCavity(), OpalCCollimator::OpalCCollimator(), OpalCyclotron::OpalCyclotron(), OpalCyclotronValley::OpalCyclotronValley(), OpalDegrader::OpalDegrader(), OpalDrift::OpalDrift(), OpalECollimator::OpalECollimator(), OpalElement::OpalElement(), OpalFilter::OpalFilter(), OpalFlexibleCollimator::OpalFlexibleCollimator(), OpalMonitor::OpalMonitor(), OpalParallelPlate::OpalParallelPlate(), OpalPepperPot::OpalPepperPot(), OpalProbe::OpalProbe(), OpalRBend3D::OpalRBend3D(), OpalRCollimator::OpalRCollimator(), OpalRingDefinition::OpalRingDefinition(), OpalSample::OpalSample(), OpalSBend3D::OpalSBend3D(), OpalSeptum::OpalSeptum(), OpalSlit::OpalSlit(), OpalSolenoid::OpalSolenoid(), OpalStripper::OpalStripper(), OpalTravelingWave::OpalTravelingWave(), OpalTrimCoil::OpalTrimCoil(), OpalVariableRFCavity::OpalVariableRFCavity(), OpalVariableRFCavityFringeField::OpalVariableRFCavityFringeField(), OpalWake::OpalWake(), OpalWire::OpalWire(), OptimizeCmd::OptimizeCmd(), Option::Option(), ParticleMatterInteraction::ParticleMatterInteraction(), Period::Period(), PSystem::PSystem(), SampleCmd::SampleCmd(), Save::Save(), Select::Select(), Sequence::Sequence(), Distribution::setAttributes(), SetIntegrator::SetIntegrator(), Show::Show(), Static::Static(), StringConstant::StringConstant(), Survey::Survey(), System::System(), Title::Title(), TrackCmd::TrackCmd(), TrackRun::TrackRun(), TrackSave::TrackSave(), Twiss::Twiss(), Twiss3::Twiss3(), and What::What().
Attribute Attributes::makeString | ( | const std::string & | name, |
const std::string & | help, | ||
const std::string & | initial | ||
) |
Make string attribute.
Definition at line 302 of file Attributes.cpp.
Attribute Attributes::makeStringArray | ( | const std::string & | name, |
const std::string & | help | ||
) |
Create a string array attribute.
Definition at line 373 of file Attributes.cpp.
Referenced by AttList::AttList(), BoundaryGeometry::BoundaryGeometry(), OpalCyclotron::OpalCyclotron(), OpalSource::OpalSource(), OpalWake::OpalWake(), OptimizeCmd::OptimizeCmd(), SampleCmd::SampleCmd(), and TrackRun::TrackRun().
Attribute Attributes::makeTableRow | ( | const std::string & | name, |
const std::string & | help | ||
) |
Create a table row attribute.
Definition at line 437 of file Attributes.cpp.
Referenced by Insertion::Insertion(), and Survey::Survey().
Attribute Attributes::makeTokenList | ( | const std::string & | name, |
const std::string & | help | ||
) |
Make token list attribute.
Definition at line 472 of file Attributes.cpp.
Attribute Attributes::makeTokenListArray | ( | const std::string & | name, |
const std::string & | help | ||
) |
Make token list attribute.
Definition at line 505 of file Attributes.cpp.
Referenced by List::List().
void Attributes::setBool | ( | Attribute & | attr, |
bool | val | ||
) |
Set logical value.
Definition at line 85 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Hypervolume::ref, Expressions::SRefAttr< T >::set(), and Attribute::set().
Referenced by Option::Option().
void Attributes::setBoolArray | ( | Attribute & | attr, |
const std::vector< bool > & | value | ||
) |
Set logical array value.
Definition at line 122 of file Attributes.cpp.
References Attribute::getHandler(), Attribute::getName(), and Attribute::set().
Set place value.
Definition at line 158 of file Attributes.cpp.
References Attribute::getHandler(), Attribute::getName(), and Attribute::set().
Set range value.
Definition at line 192 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 236 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Hypervolume::ref, Expressions::SRefAttr< T >::set(), and Attribute::set().
Referenced by CorrectionBase::addKick(), Insertion::fill(), Period::fill(), Survey::fill(), Option::Option(), Twiss::put(), RealConstant::RealConstant(), RealVariable::RealVariable(), Beam::setET(), Beam::setEX(), ConcreteVar::setExternalValue(), Beam::setEY(), FieldSolver::setMT(), FieldSolver::setMX(), FieldSolver::setMY(), Beam::update(), and FlatWriter::visitMapIntegrator().
void Attributes::setRealArray | ( | Attribute & | attr, |
const std::vector< double > & | value | ||
) |
Set array value.
Definition at line 273 of file Attributes.cpp.
References Attribute::getHandler(), Attribute::getName(), and Attribute::set().
Referenced by FieldSolver::FieldSolver().
void Attributes::setString | ( | Attribute & | attr, |
const std::string & | val | ||
) |
Set string value.
Definition at line 356 of file Attributes.cpp.
References Attribute::getBase(), Attribute::getHandler(), Attribute::getName(), Hypervolume::ref, Expressions::SRefAttr< T >::set(), and Attribute::set().
Referenced by Option::Option(), and StringConstant::StringConstant().
void Attributes::setStringArray | ( | Attribute & | attr, |
const std::vector< std::string > & | value | ||
) |
Set string array value.
Definition at line 423 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 458 of file Attributes.cpp.
References Attribute::getHandler(), Attribute::getName(), and Attribute::set().
Set token list value.
Definition at line 492 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 526 of file Attributes.cpp.
References Attribute::set().
Referenced by Attributes::TokenListArray::parse(), and Attributes::TokenListArray::parseComponent().