|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) MINIorX
OPALX
|
Parser for an attribute of type token list array. More...
#include <TokenListArray.h>
Public Types | |
| enum | OwnerType { ELEMENT , COMMAND , SUB_COMMAND , STATEMENT , NONE } |
Public Member Functions | |
| TokenListArray (const std::string &name, const std::string &help) | |
| Constructor. | |
| virtual | ~TokenListArray () |
| virtual const std::string & | getType () const |
| Return attribute type string ``token list array''. | |
| virtual void | parse (Attribute &, Statement &, bool) const |
| Parse the attribute. | |
| virtual void | parseComponent (Attribute &, Statement &, bool, int) const |
| Parse a component. | |
| virtual AttributeHandler * | clone () const |
| Make clone. | |
| virtual AttributeBase * | getDefault () const |
| Return default value. | |
| virtual const std::string & | getHelp () const |
| Return help string. | |
| virtual const std::string & | getName () const |
| Return attribute name. | |
| bool | isDeferred () const |
| Return defer flag. | |
| void | setDeferred (bool) |
| Set or reset defer flag. | |
| bool | isReadOnly () const |
| Return read-only flag. | |
| void | setReadOnly (bool) |
| Set or reset read-only flag. | |
| void | setPredefinedValues (const std::set< std::string > &, const std::string &) |
| Add predefined strings values to the help. | |
| int | addReference () const |
| Increment reference count. | |
| int | removeReference () const |
| Decrement the reference count. | |
| bool | isShared () const |
| Test for sharing. | |
Static Public Member Functions | |
| static std::multimap< OwnerType, std::string > | getOwner (const std::string &att) |
| static void | addAttributeOwner (const std::string &owner, const OwnerType &type, const std::string &name) |
Protected Attributes | |
| const std::string | itsName |
| Attribute name. | |
| const std::string | itsHelp |
| Help text. | |
| std::shared_ptr< AttributeBase > | itsDefault |
| Default value. | |
| bool | is_deferred |
| Defer flag. | |
| bool | is_readonly |
| Read-only flag. | |
Private Member Functions | |
| TokenListArray () | |
| TokenListArray (const TokenListArray &) | |
| void | operator= (const TokenListArray &) |
Private Attributes | |
| int | refCount |
Static Private Attributes | |
| static std::multimap< std::string, std::pair< OwnerType, std::string > > | attributeOwnerDictionary_s |
Parser for an attribute of type token list array.
Definition at line 34 of file TokenListArray.h.
|
inherited |
| Enumerator | |
|---|---|
| ELEMENT | |
| COMMAND | |
| SUB_COMMAND | |
| STATEMENT | |
| NONE | |
Definition at line 120 of file AttributeHandler.h.
| Attributes::TokenListArray::TokenListArray | ( | const std::string & | name, |
| const std::string & | help ) |
Constructor.
Definition at line 34 of file TokenListArray.cpp.
References AttributeHandler::AttributeHandler().
Referenced by operator=(), and TokenListArray().
|
virtual |
Definition at line 39 of file TokenListArray.cpp.
|
private |
|
private |
|
staticinherited |
Definition at line 124 of file AttributeHandler.cpp.
References attributeOwnerDictionary_s.
Referenced by OpalElement::OpalElement(), Object::registerOwnership(), OpalElement::registerOwnership(), and TrackCmd::TrackCmd().
|
inlineinherited |
Increment reference count.
Definition at line 83 of file RCObject.h.
References refCount.
Referenced by Pointer< Object >::operator=(), Pointer< Object >::operator=(), and Pointer< Object >::unique().
|
virtualinherited |
Make clone.
Definition at line 43 of file AttributeHandler.cpp.
References AttributeHandler().
|
virtualinherited |
Return default value.
Definition at line 49 of file AttributeHandler.cpp.
References itsDefault, and itsName.
|
virtualinherited |
|
virtualinherited |
|
staticinherited |
Definition at line 108 of file AttributeHandler.cpp.
References attributeOwnerDictionary_s.
Referenced by OpalParser::getHint().
|
virtual |
Return attribute type string ``token list array''.
Implements AttributeHandler.
Definition at line 43 of file TokenListArray.cpp.
|
inherited |
Return defer flag.
Definition at line 78 of file AttributeHandler.cpp.
References is_deferred.
Referenced by Attributes::Real::parse().
|
inherited |
|
inlineinherited |
|
private |
Parse the attribute.
Implements AttributeHandler.
Definition at line 49 of file TokenListArray.cpp.
References Expressions::parseTokenListArray(), and Attributes::setTokenListArray().
|
virtual |
Parse a component.
Reimplemented from AttributeHandler.
Definition at line 54 of file TokenListArray.cpp.
References Attribute::getBase(), Expressions::parseTokenList(), and Attributes::setTokenListArray().
|
inlineinherited |
|
inherited |
Set or reset defer flag.
Definition at line 83 of file AttributeHandler.cpp.
References is_deferred.
|
inherited |
Add predefined strings values to the help.
Definition at line 97 of file AttributeHandler.cpp.
References itsHelp.
Referenced by Attributes::PredefinedString::PredefinedString().
|
inherited |
Set or reset read-only flag.
Definition at line 93 of file AttributeHandler.cpp.
References is_readonly.
|
staticprivateinherited |
Definition at line 153 of file AttributeHandler.h.
Referenced by addAttributeOwner(), and getOwner().
|
protectedinherited |
Defer flag.
Definition at line 141 of file AttributeHandler.h.
Referenced by AttributeHandler(), isDeferred(), Attributes::Bool::parse(), Attributes::BoolArray::parse(), Attributes::RealArray::parse(), and setDeferred().
|
protectedinherited |
Read-only flag.
Definition at line 144 of file AttributeHandler.h.
Referenced by AttributeHandler(), isReadOnly(), and setReadOnly().
|
protectedinherited |
Default value.
Definition at line 138 of file AttributeHandler.h.
Referenced by AttributeHandler(), and getDefault().
|
protectedinherited |
Help text.
Definition at line 135 of file AttributeHandler.h.
Referenced by AttributeHandler(), getHelp(), and setPredefinedValues().
|
protectedinherited |
Attribute name.
Definition at line 132 of file AttributeHandler.h.
Referenced by AttributeHandler(), getDefault(), getName(), and parseComponent().
|
mutableprivateinherited |
Definition at line 76 of file RCObject.h.
Referenced by addReference(), isShared(), RCObject(), RCObject(), and removeReference().