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

Concrete class for a matching variable. More...

#include <ConcreteVar.h>

Inheritance diagram for ConcreteVar:
Inheritance graph
[legend]
Collaboration diagram for ConcreteVar:
Collaboration graph
[legend]

Public Member Functions

 ConcreteVar (const std::string &name, Attribute &data, int limits, double pars[4])
 Constructor. More...
 
virtual ~ConcreteVar ()
 
virtual double getInternalValue () const
 Get the current internal parameter value. More...
 
virtual void setInternalValue (double)
 Set the current internal parameter value. More...
 
virtual double getExternalValue () const
 Get the current external parameter value. More...
 
virtual void setExternalValue (double)
 Set the current external parameter value. More...
 
virtual void print (std::ostream &) const
 Print the variable name and value. More...
 
- Public Member Functions inherited from AbstractVar
 AbstractVar (const std::string &name)
 Constructor. More...
 
virtual ~AbstractVar ()
 
virtual const std::string & getName () const
 Get the variable name. More...
 

Private Member Functions

 ConcreteVar ()
 
 ConcreteVar (const ConcreteVar &)
 
void operator= (const ConcreteVar &)
 

Private Attributes

Attribute itsAttr
 
double itsStep
 
int itsLimits
 
double itsMin
 
double itsMax
 

Additional Inherited Members

- Protected Attributes inherited from AbstractVar
const std::string itsName
 Name of the variable. More...
 

Detailed Description

Concrete class for a matching variable.

Definition at line 33 of file ConcreteVar.h.

Constructor & Destructor Documentation

ConcreteVar::ConcreteVar ( const std::string &  name,
Attribute data,
int  limits,
double  pars[4] 
)

Constructor.

Definition at line 37 of file ConcreteVar.cpp.

References BOTH_LIMITS, LOWER_LIMIT, sqrt(), and UPPER_LIMIT.

Here is the call graph for this function:

ConcreteVar::~ConcreteVar ( )
virtual

Definition at line 65 of file ConcreteVar.cpp.

ConcreteVar::ConcreteVar ( )
private
ConcreteVar::ConcreteVar ( const ConcreteVar )
private

Member Function Documentation

double ConcreteVar::getExternalValue ( ) const
virtual

Get the current external parameter value.

Implements AbstractVar.

Definition at line 110 of file ConcreteVar.cpp.

References Attributes::getReal(), and itsAttr.

Referenced by print().

Here is the call graph for this function:

double ConcreteVar::getInternalValue ( ) const
virtual

Get the current internal parameter value.

Implements AbstractVar.

Definition at line 69 of file ConcreteVar.cpp.

References asin(), BOTH_LIMITS, Attributes::getReal(), itsAttr, itsLimits, itsMax, itsMin, LOWER_LIMIT, sqrt(), and UPPER_LIMIT.

Here is the call graph for this function:

void ConcreteVar::operator= ( const ConcreteVar )
private
void ConcreteVar::print ( std::ostream &  os) const
virtual

Print the variable name and value.

Implements AbstractVar.

Definition at line 122 of file ConcreteVar.cpp.

References endl(), getExternalValue(), AbstractVar::itsName, and Inform::precision().

Here is the call graph for this function:

void ConcreteVar::setExternalValue ( double  value)
virtual

Set the current external parameter value.

Implements AbstractVar.

Definition at line 115 of file ConcreteVar.cpp.

References OpalData::getInstance(), itsAttr, OpalData::makeDirty(), and Attributes::setReal().

Referenced by setInternalValue().

Here is the call graph for this function:

void ConcreteVar::setInternalValue ( double  value)
virtual

Set the current internal parameter value.

Implements AbstractVar.

Definition at line 89 of file ConcreteVar.cpp.

References BOTH_LIMITS, itsLimits, itsMax, itsMin, LOWER_LIMIT, setExternalValue(), sin(), and UPPER_LIMIT.

Here is the call graph for this function:

Member Data Documentation

Attribute ConcreteVar::itsAttr
private

Definition at line 79 of file ConcreteVar.h.

Referenced by getExternalValue(), getInternalValue(), and setExternalValue().

int ConcreteVar::itsLimits
private

Definition at line 85 of file ConcreteVar.h.

Referenced by getInternalValue(), and setInternalValue().

double ConcreteVar::itsMax
private

Definition at line 87 of file ConcreteVar.h.

Referenced by getInternalValue(), and setInternalValue().

double ConcreteVar::itsMin
private

Definition at line 86 of file ConcreteVar.h.

Referenced by getInternalValue(), and setInternalValue().

double ConcreteVar::itsStep
private

Definition at line 82 of file ConcreteVar.h.


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