|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
Parser for an attribute of type real array. More...
#include <RealArray.h>
Public Types | |
| enum | OwnerType { ELEMENT , COMMAND , SUB_COMMAND , STATEMENT , NONE } |
Public Member Functions | |
| RealArray (const std::string &name, const std::string &help) | |
| Constructor. | |
| virtual | ~RealArray () |
| virtual const std::string & | getType () const |
| Return attribute type string ``real array''. | |
| virtual void | parse (Attribute &, Statement &, bool) const |
| Parse the attribute. | |
| virtual void | parseComponent (Attribute &, Statement &, bool, int) const |
| Parse a component of the array. | |
| 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. | |
| Pointer< AttributeBase > | itsDefault |
| Default value. | |
| bool | is_deferred |
| Defer flag. | |
| bool | is_readonly |
| Read-only flag. | |
Private Member Functions | |
| RealArray () | |
| RealArray (const RealArray &) | |
| void | operator= (const RealArray &) |
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 real array.
Definition at line 32 of file RealArray.h.
|
inherited |
| Enumerator | |
|---|---|
| ELEMENT | |
| COMMAND | |
| SUB_COMMAND | |
| STATEMENT | |
| NONE | |
Definition at line 118 of file AttributeHandler.h.
| Attributes::RealArray::RealArray | ( | const std::string & | name, |
| const std::string & | help ) |
Constructor.
Definition at line 37 of file RealArray.cpp.
References AttributeHandler::AttributeHandler(), and name.
Referenced by operator=(), and RealArray().
|
virtual |
Definition at line 42 of file RealArray.cpp.
|
private |
|
private |
|
staticinherited |
Definition at line 125 of file AttributeHandler.cpp.
References attributeOwnerDictionary_s, and name.
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 44 of file AttributeHandler.cpp.
References AttributeHandler().
|
virtualinherited |
Return default value.
Definition at line 50 of file AttributeHandler.cpp.
References itsDefault, and itsName.
|
virtualinherited |
|
virtualinherited |
|
staticinherited |
Definition at line 109 of file AttributeHandler.cpp.
References attributeOwnerDictionary_s.
Referenced by OpalParser::getHint().
|
virtual |
Return attribute type string ``real array''.
Implements AttributeHandler.
Definition at line 46 of file RealArray.cpp.
|
inherited |
Return defer flag.
Definition at line 79 of file AttributeHandler.cpp.
References is_deferred.
Referenced by Attributes::Real::parse().
|
inherited |
|
inlineinherited |
|
private |
|
virtual |
Parse the attribute.
Implements AttributeHandler.
Definition at line 52 of file RealArray.cpp.
References AttributeHandler::is_deferred, Expressions::parseRealArray(), and Attribute::set().
|
virtual |
Parse a component of the array.
Reimplemented from AttributeHandler.
Definition at line 67 of file RealArray.cpp.
References Attribute::getBase(), Expressions::parseReal(), Attribute::set(), and Expressions::ADeferred< T >::setComponent().
|
inlineinherited |
|
inherited |
Set or reset defer flag.
Definition at line 84 of file AttributeHandler.cpp.
References is_deferred.
|
inherited |
Add predefined strings values to the help.
Definition at line 98 of file AttributeHandler.cpp.
References itsHelp.
Referenced by Attributes::PredefinedString::PredefinedString().
|
inherited |
Set or reset read-only flag.
Definition at line 94 of file AttributeHandler.cpp.
References is_readonly.
|
staticprivateinherited |
Definition at line 151 of file AttributeHandler.h.
Referenced by addAttributeOwner(), and getOwner().
|
protectedinherited |
Defer flag.
Definition at line 139 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 142 of file AttributeHandler.h.
Referenced by AttributeHandler(), isReadOnly(), and setReadOnly().
|
protectedinherited |
Default value.
Definition at line 136 of file AttributeHandler.h.
Referenced by AttributeHandler(), and getDefault().
|
protectedinherited |
Help text.
Definition at line 133 of file AttributeHandler.h.
Referenced by AttributeHandler(), getHelp(), and setPredefinedValues().
|
protectedinherited |
Attribute name.
Definition at line 130 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().