OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
Attributes.cpp File Reference
Include dependency graph for Attributes.cpp:

Go to the source code of this file.

Namespaces

namespace  Attributes
 A collection of routines to construct object Attributes and retrieve.

Functions

Attribute Attributes::makeBool (const std::string &name, const std::string &help)
 Make logical attribute.
Attribute Attributes::makeBool (const std::string &name, const std::string &help, bool initial)
 Make logical attribute.
bool Attributes::getBool (const Attribute &)
 Return logical value.
void Attributes::setBool (Attribute &, bool)
 Set logical value.
Attribute Attributes::makeBoolArray (const std::string &name, const std::string &help)
 Create a logical array attribute.
std::vector< bool > Attributes::getBoolArray (const Attribute &)
 Get logical array value.
void Attributes::setBoolArray (Attribute &, const std::vector< bool > &)
 Set logical array value.
Attribute Attributes::makePlace (const std::string &name, const std::string &help)
 Create a place attribute.
PlaceRep Attributes::getPlace (const Attribute &)
 Get place value.
void Attributes::setPlace (Attribute &, const PlaceRep &)
 Set place value.
Attribute Attributes::makeRange (const std::string &name, const std::string &help)
 Create a range attribute.
RangeRep Attributes::getRange (const Attribute &)
 Get range value.
void Attributes::setRange (Attribute &, const RangeRep &)
 Set range value.
Attribute Attributes::makeReal (const std::string &name, const std::string &help)
 Make real attribute.
Attribute Attributes::makeReal (const std::string &name, const std::string &help, double initial)
 Make real attribute.
double Attributes::getReal (const Attribute &attr)
 Return real value.
void Attributes::setReal (Attribute &attr, double val)
 Set real value.
Attribute Attributes::makeRealArray (const std::string &name, const std::string &help)
 Create real array attribute.
std::vector< double > Attributes::getRealArray (const Attribute &)
 Get array value.
void Attributes::setRealArray (Attribute &, const std::vector< double > &)
 Set array value.
Attribute Attributes::makeReference (const std::string &name, const std::string &help)
 Create a reference attribute.
Attribute Attributes::makeString (const std::string &name, const std::string &help)
 Make string attribute.
Attribute Attributes::makeString (const std::string &name, const std::string &help, const std::string &initial)
 Make string attribute.
std::string Attributes::getString (const Attribute &attr)
 Get string value.
void Attributes::setString (Attribute &attr, const std::string &val)
 Set string value.
Attribute Attributes::makePredefinedString (const std::string &name, const std::string &help, const std::initializer_list< std::string > &predefinedStrings)
 Make predefined string attribute.
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.
void Attributes::setPredefinedString (Attribute &attr, const std::string &val)
 Set predefined string value.
Attribute Attributes::makeUpperCaseString (const std::string &name, const std::string &help)
 Make uppercase string attribute.
Attribute Attributes::makeUpperCaseString (const std::string &name, const std::string &help, const std::string &initial)
 Make uppercase string attribute.
void Attributes::setUpperCaseString (Attribute &attr, const std::string &val)
 Set uppercase string value.
Attribute Attributes::makeStringArray (const std::string &name, const std::string &help)
 Create a string array attribute.
std::vector< std::string > Attributes::getStringArray (const Attribute &)
 Get string array value.
void Attributes::setStringArray (Attribute &, const std::vector< std::string > &)
 Set string array value.
Attribute Attributes::makeUpperCaseStringArray (const std::string &name, const std::string &help)
 Make uppercase string array attribute.
void Attributes::setUpperCaseStringArray (Attribute &, const std::vector< std::string > &)
 Set upper case string array value.
Attribute Attributes::makeTableRow (const std::string &name, const std::string &help)
 Create a table row attribute.
TableRowRep Attributes::getTableRow (const Attribute &)
 Get table row value.
void Attributes::setTableRow (Attribute &, const TableRowRep &)
 Set table row value.
Attribute Attributes::makeTokenList (const std::string &name, const std::string &help)
 Make token list attribute.
std::list< TokenAttributes::getTokenList (const Attribute &attr)
 Return token list value.
void Attributes::setTokenList (Attribute &attr, const std::list< Token > &)
 Set token list value.
Attribute Attributes::makeTokenListArray (const std::string &name, const std::string &help)
 Make token list attribute.
std::vector< std::list< Token > > Attributes::getTokenListArray (const Attribute &attr)
 Return token list array value.
void Attributes::setTokenListArray (Attribute &attr, const std::vector< std::list< Token > > &)
 Set token list array value.