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

A single matching constraints or an array of matching constraints. More...

#include <ConcreteFun.h>

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

Public Member Functions

 ConcreteFun (Attribute &lhs, int rel, Attribute &rhs, Attribute &wgt)
 Constructor. More...
 
virtual ~ConcreteFun ()
 
virtual int countConstraints () const
 Get the number of constrained values. More...
 
virtual void evaluate (Vector< double > &f, int &) const
 Evaluate the matching function(s). More...
 
virtual void print (std::ostream &) const
 Print the function name and value(s). More...
 
- Public Member Functions inherited from AbstractFun
 AbstractFun ()
 
virtual ~AbstractFun ()
 

Private Member Functions

 ConcreteFun ()
 
 ConcreteFun (const ConcreteFun &)
 
void operator= (const ConcreteFun &)
 

Private Attributes

Attribute itsLhs
 
Attribute itsRhs
 
int relation
 
std::vector< double > itsWeight
 
std::vector< double > lValue
 
std::vector< double > rValue
 
std::vector< double > value
 

Detailed Description

A single matching constraints or an array of matching constraints.

Definition at line 32 of file ConcreteFun.h.

Constructor & Destructor Documentation

ConcreteFun::ConcreteFun ( Attribute lhs,
int  rel,
Attribute rhs,
Attribute wgt 
)

Constructor.

Definition at line 35 of file ConcreteFun.cpp.

ConcreteFun::~ConcreteFun ( )
virtual

Definition at line 43 of file ConcreteFun.cpp.

ConcreteFun::ConcreteFun ( )
private
ConcreteFun::ConcreteFun ( const ConcreteFun )
private

Member Function Documentation

int ConcreteFun::countConstraints ( ) const
virtual

Get the number of constrained values.

Implements AbstractFun.

Definition at line 47 of file ConcreteFun.cpp.

References itsWeight.

void ConcreteFun::evaluate ( Vector< double > &  f,
int &  index 
) const
virtual

Evaluate the matching function(s).

Implements AbstractFun.

Definition at line 52 of file ConcreteFun.cpp.

References Attributes::getRealArray(), itsLhs, itsRhs, itsWeight, lValue, relation, rValue, and value.

Here is the call graph for this function:

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

Print the function name and value(s).

Implements AbstractFun.

Definition at line 86 of file ConcreteFun.cpp.

References endl(), itsLhs, itsRhs, itsWeight, lValue, Inform::precision(), relation, rValue, Inform::setf(), and value.

Here is the call graph for this function:

Member Data Documentation

Attribute ConcreteFun::itsLhs
private

Definition at line 67 of file ConcreteFun.h.

Referenced by evaluate(), and print().

Attribute ConcreteFun::itsRhs
private

Definition at line 68 of file ConcreteFun.h.

Referenced by evaluate(), and print().

std::vector<double> ConcreteFun::itsWeight
private

Definition at line 70 of file ConcreteFun.h.

Referenced by countConstraints(), evaluate(), and print().

std::vector<double> ConcreteFun::lValue
mutableprivate

Definition at line 73 of file ConcreteFun.h.

Referenced by evaluate(), and print().

int ConcreteFun::relation
private

Definition at line 69 of file ConcreteFun.h.

Referenced by evaluate(), and print().

std::vector<double> ConcreteFun::rValue
mutableprivate

Definition at line 74 of file ConcreteFun.h.

Referenced by evaluate(), and print().

std::vector<double> ConcreteFun::value
mutableprivate

Definition at line 75 of file ConcreteFun.h.

Referenced by evaluate(), and print().


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