OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Namespaces | Functions
Attributes.cpp File Reference
#include "Attributes/Attributes.h"
#include "AbstractObjects/Attribute.h"
#include "Attributes/Bool.h"
#include "Attributes/BoolArray.h"
#include "Attributes/Place.h"
#include "Attributes/Range.h"
#include "Attributes/Real.h"
#include "Attributes/RealArray.h"
#include "Attributes/Reference.h"
#include "Attributes/opalstr.h"
#include "Attributes/StringArray.h"
#include "Attributes/TableRow.h"
#include "Attributes/TokenList.h"
#include "Attributes/TokenListArray.h"
#include "Expressions/AValue.h"
#include "Expressions/SRefAttr.h"
#include "Expressions/SValue.h"
#include "Utilities/OpalException.h"
#include "AbstractObjects/OpalData.h"
#include "ValueDefinitions/RealVariable.h"
#include "Utilities/Util.h"
#include <boost/regex.hpp>
Include dependency graph for Attributes.cpp:

Go to the source code of this file.

Namespaces

 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::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::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< TokenAttributes::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...