OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Classes | Functions
Attributes Namespace Reference

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< TokengetTokenList (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...
 

Detailed Description

A collection of routines to construct object Attributes and retrieve.

Function Documentation

◆ getBool()

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().

Here is the call graph for this function:

◆ getBoolArray()

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().

Here is the call graph for this function:

◆ getPlace()

PlaceRep Attributes::getPlace ( const Attribute attr)

Get place value.

Definition at line 178 of file Attributes.cpp.

References Attribute::getBase(), Attribute::getName(), and Attribute::isBaseAllocated().

Here is the call graph for this function:

◆ getRange()

RangeRep Attributes::getRange ( const Attribute attr)

Get range value.

Definition at line 212 of file Attributes.cpp.

References Attribute::getBase(), Attribute::getName(), and Attribute::isBaseAllocated().

Referenced by Select::select().

Here is the call graph for this function:

◆ getReal()

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().

Here is the call graph for this function:

◆ getRealArray()

std::vector< double > Attributes::getRealArray ( const Attribute attr)

◆ getString()

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().

Here is the call graph for this function:

◆ getStringArray()

std::vector< std::string > Attributes::getStringArray ( const Attribute attr)

◆ getTableRow()

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().

Here is the call graph for this function:

◆ getTokenList()

std::list< Token > Attributes::getTokenList ( const Attribute attr)

Return token list value.

Definition at line 597 of file Attributes.cpp.

References Attribute::getBase(), Attribute::getHandler(), and Attribute::isBaseAllocated().

Here is the call graph for this function:

◆ getTokenListArray()

std::vector< std::list< Token > > Attributes::getTokenListArray ( const Attribute attr)

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().

Here is the call graph for this function:

◆ makeBool() [1/2]

Attribute Attributes::makeBool ( const std::string &  name,
const std::string &  help 
)

◆ makeBool() [2/2]

Attribute Attributes::makeBool ( const std::string &  name,
const std::string &  help,
bool  ini 
)

Make logical attribute.

Definition at line 95 of file Attributes.cpp.

References name.

◆ makeBoolArray()

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().

◆ makePlace()

Attribute Attributes::makePlace ( const std::string &  name,
const std::string &  help 
)

Create a place attribute.

Definition at line 172 of file Attributes.cpp.

References name.

◆ makePredefinedString() [1/2]

Attribute Attributes::makePredefinedString ( const std::string &  name,
const std::string &  help,
const std::initializer_list< std::string > &  predefinedStrings 
)

◆ makePredefinedString() [2/2]

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().

Here is the call graph for this function:

◆ makeRange()

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().

◆ makeReal() [1/2]

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().

◆ makeReal() [2/2]

Attribute Attributes::makeReal ( const std::string &  name,
const std::string &  help,
double  initial 
)

Make real attribute.

Definition at line 246 of file Attributes.cpp.

References name.

◆ makeRealArray()

Attribute Attributes::makeRealArray ( const std::string &  name,
const std::string &  help 
)

◆ makeReference()

Attribute Attributes::makeReference ( const std::string &  name,
const std::string &  help 
)

Create a reference attribute.

Definition at line 324 of file Attributes.cpp.

References name.

◆ makeString() [1/2]

Attribute Attributes::makeString ( const std::string &  name,
const std::string &  help 
)

◆ makeString() [2/2]

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.

References name.

◆ makeStringArray()

Attribute Attributes::makeStringArray ( const std::string &  name,
const std::string &  help 
)

◆ makeTableRow()

Attribute Attributes::makeTableRow ( const std::string &  name,
const std::string &  help 
)

Create a table row attribute.

Definition at line 557 of file Attributes.cpp.

References name.

◆ makeTokenList()

Attribute Attributes::makeTokenList ( const std::string &  name,
const std::string &  help 
)

Make token list attribute.

Definition at line 592 of file Attributes.cpp.

References name.

◆ makeTokenListArray()

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().

◆ makeUpperCaseString() [1/2]

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().

◆ makeUpperCaseString() [2/2]

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().

Here is the call graph for this function:

◆ makeUpperCaseStringArray()

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().

◆ setBool()

void Attributes::setBool ( Attribute attr,
bool  val 
)

◆ setBoolArray()

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().

Here is the call graph for this function:

◆ setPlace()

void Attributes::setPlace ( Attribute attr,
const PlaceRep rep 
)

Set place value.

Definition at line 193 of file Attributes.cpp.

References Attribute::getHandler(), Attribute::getName(), and Attribute::set().

Here is the call graph for this function:

◆ setPredefinedString()

void Attributes::setPredefinedString ( Attribute attr,
const std::string &  val 
)

◆ setRange()

void Attributes::setRange ( Attribute attr,
const RangeRep rep 
)

Set range value.

Definition at line 227 of file Attributes.cpp.

References Attribute::getHandler(), Attribute::getName(), and Attribute::set().

Here is the call graph for this function:

◆ setReal()

void Attributes::setReal ( Attribute attr,
double  val 
)

◆ setRealArray()

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().

Here is the call graph for this function:

◆ setString()

void Attributes::setString ( Attribute attr,
const std::string &  val 
)

◆ setStringArray()

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().

Here is the call graph for this function:

◆ setTableRow()

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().

Here is the call graph for this function:

◆ setTokenList()

void Attributes::setTokenList ( Attribute attr,
const std::list< Token > &  val 
)

Set token list value.

Definition at line 612 of file Attributes.cpp.

References Attribute::getHandler(), Attribute::getName(), and Attribute::set().

Here is the call graph for this function:

◆ setTokenListArray()

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().

Here is the call graph for this function:

◆ setUpperCaseString()

void Attributes::setUpperCaseString ( Attribute attr,
const std::string &  val 
)

◆ setUpperCaseStringArray()

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().

Here is the call graph for this function: