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

Parser for an attribute of type logical array. More...

#include <BoolArray.h>

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

Public Member Functions

 BoolArray (const std::string &name, const std::string &help)
 Constructor. More...
 
virtual ~BoolArray ()
 
virtual const std::string & getType () const
 Return attribute type string ``logical array''. More...
 
virtual void parse (Attribute &, Statement &, bool) const
 Parse the attribute. More...
 
virtual void parseComponent (Attribute &, Statement &, bool, int) const
 Parse a component of the array. 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...
 
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...
 
- 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

 BoolArray ()
 
 BoolArray (const BoolArray &)
 
void operator= (const BoolArray &)
 

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 logical array.

Definition at line 32 of file BoolArray.h.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 37 of file BoolArray.cpp.

Attributes::BoolArray::~BoolArray ( )
virtual

Definition at line 42 of file BoolArray.cpp.

Attributes::BoolArray::BoolArray ( )
private
Attributes::BoolArray::BoolArray ( const BoolArray )
private

Member Function Documentation

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

Return attribute type string ``logical array''.

Implements AttributeHandler.

Definition at line 46 of file BoolArray.cpp.

void Attributes::BoolArray::operator= ( const BoolArray )
private
void Attributes::BoolArray::parse ( Attribute attr,
Statement stat,
bool  eval 
) const
virtual

Parse the attribute.

Implements AttributeHandler.

Definition at line 52 of file BoolArray.cpp.

References AttributeHandler::is_deferred, Expressions::parseBoolArray(), and Attribute::set().

Here is the call graph for this function:

void Attributes::BoolArray::parseComponent ( Attribute attr,
Statement stat,
bool  eval,
int  index 
) const
virtual

Parse a component of the array.

Reimplemented from AttributeHandler.

Definition at line 68 of file BoolArray.cpp.

References Attribute::getBase(), Expressions::parseBool(), Attribute::set(), and Expressions::ADeferred< T >::setComponent().

Here is the call graph for this function:


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