OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Public Member Functions | Private Member Functions | List of all members
Attributes::Range Class Reference

Parser for an attribute of type range definition. More...

#include <Range.h>

Inheritance diagram for Attributes::Range:
Inheritance graph
[legend]
Collaboration diagram for Attributes::Range:
Collaboration graph
[legend]

Public Member Functions

 Range (const std::string &name, const std::string &help)
 Constructor. More...
 
virtual ~Range ()
 
virtual const std::string & getType () const
 Return attribute type `‘range’'. More...
 
virtual void parse (Attribute &, Statement &, bool) const
 Parse the attribute. More...
 
- Public Member Functions inherited from AttributeHandler
 AttributeHandler (const std::string &name, const std::string &help, AttributeBase *def)
 Constructor. More...
 
virtual ~AttributeHandler ()
 
virtual AttributeHandlerclone () const
 Make clone. More...
 
virtual AttributeBasegetDefault () const
 Return default value. More...
 
virtual const std::string & getHelp () const
 Return help string. More...
 
virtual const std::string & getName () const
 Return attribute name. More...
 
virtual const std::string & getType () const =0
 Return attribute type. More...
 
virtual void parse (Attribute &a, Statement &s, bool eval) const =0
 Parse new value. More...
 
virtual void parseComponent (Attribute &a, Statement &s, bool eval, int i) const
 Parse component value. More...
 
bool isDeferred () const
 Return defer flag. More...
 
void setDeferred (bool)
 Set or reset defer flag. More...
 
bool isReadOnly () const
 Return read-only flag. More...
 
void setReadOnly (bool)
 Set or reset read-only flag. More...
 
void setPredefinedValues (const std::set< std::string > &, const std::string &)
 Add predefined strings values to the help. More...
 
- Public Member Functions inherited from RCObject
int addReference () const
 Increment reference count. More...
 
int removeReference () const
 Decrement the reference count. More...
 
bool isShared () const
 Test for sharing. More...
 

Private Member Functions

 Range ()
 
 Range (const Range &)
 
void operator= (const Range &)
 

Additional Inherited Members

- Public Types inherited from AttributeHandler
enum  OwnerType {
  ELEMENT , COMMAND , SUB_COMMAND , STATEMENT ,
  NONE
}
 
- Static Public Member Functions inherited from AttributeHandler
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 Member Functions inherited from RCObject
 RCObject ()
 Default constructor. More...
 
 RCObject (const RCObject &)
 Copy constructor. More...
 
virtual ~RCObject ()=0
 
RCObjectoperator= (const RCObject &right)
 
- Protected Attributes inherited from AttributeHandler
const std::string itsName
 Attribute name. More...
 
const std::string itsHelp
 Help text. More...
 
Pointer< AttributeBaseitsDefault
 Default value. More...
 
bool is_deferred
 Defer flag. More...
 
bool is_readonly
 Read-only flag. More...
 

Detailed Description

Parser for an attribute of type range definition.

Definition at line 32 of file Range.h.

Constructor & Destructor Documentation

◆ Range() [1/3]

Attributes::Range::Range ( const std::string &  name,
const std::string &  help 
)

Constructor.

Definition at line 33 of file Range.cpp.

◆ ~Range()

Attributes::Range::~Range ( )
virtual

Definition at line 38 of file Range.cpp.

◆ Range() [2/3]

Attributes::Range::Range ( )
private

◆ Range() [3/3]

Attributes::Range::Range ( const Range )
private

Member Function Documentation

◆ getType()

const std::string & Attributes::Range::getType ( ) const
virtual

Return attribute type `‘range’'.

Implements AttributeHandler.

Definition at line 42 of file Range.cpp.

◆ operator=()

void Attributes::Range::operator= ( const Range )
private

◆ parse()

void Attributes::Range::parse ( Attribute attr,
Statement stat,
bool   
) const
virtual

Parse the attribute.

Implements AttributeHandler.

Definition at line 48 of file Range.cpp.

References Expressions::parseRange(), and Attribute::set().

Here is the call graph for this function:

The documentation for this class was generated from the following files: