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