flopc::GenerateFunctor Class Reference
[Internal (private) interface.]

Functor to facilitate generation of coefficients. More...

#include <MP_expression.hpp>

Inheritance diagram for flopc::GenerateFunctor:

Inheritance graph
[legend]
Collaboration diagram for flopc::GenerateFunctor:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GenerateFunctor (vector< Coef > &coefs)
virtual ~GenerateFunctor ()
void setConstraint (MP_constraint *r)
void setMultiplicator (vector< Constant > &mults, double m)
void setTerminalExpression (const TerminalExpression *c)
virtual int row_number () const
void operator() () const

Public Attributes

double m_
vector< Constantmultiplicators
MP_constraintR
const TerminalExpressionC
vector< Coef > & Coefs

Detailed Description

Functor to facilitate generation of coefficients.

Note:
FOR INTERNAL USE: This is not normally used directly by the calling code.

Definition at line 50 of file MP_expression.hpp.


Constructor & Destructor Documentation

flopc::GenerateFunctor::GenerateFunctor ( vector< Coef > &  coefs  )  [inline]

Definition at line 52 of file MP_expression.hpp.

virtual flopc::GenerateFunctor::~GenerateFunctor (  )  [inline, virtual]

Definition at line 54 of file MP_expression.hpp.


Member Function Documentation

void GenerateFunctor::operator() (  )  const [virtual]

Implements flopc::Functor.

Definition at line 215 of file MP_expression.cpp.

References C, Coefs, flopc::TerminalExpression::getColumn(), flopc::TerminalExpression::getStage(), flopc::TerminalExpression::getValue(), m_, multiplicators, flopc::outOfBound, and row_number().

int GenerateFunctor::row_number (  )  const [virtual]

Reimplemented in flopc::ObjectiveGenerateFunctor.

Definition at line 211 of file MP_expression.cpp.

References R, and flopc::MP_constraint::row_number().

Referenced by operator()().

void flopc::GenerateFunctor::setConstraint ( MP_constraint r  )  [inline]

Definition at line 56 of file MP_expression.hpp.

References R.

void flopc::GenerateFunctor::setMultiplicator ( vector< Constant > &  mults,
double  m 
) [inline]

Definition at line 59 of file MP_expression.hpp.

References m_, and multiplicators.

Referenced by flopc::VariableRef::generate(), and flopc::Expression_constant::generate().

void flopc::GenerateFunctor::setTerminalExpression ( const TerminalExpression c  )  [inline]

Definition at line 63 of file MP_expression.hpp.

References C.

Referenced by flopc::VariableRef::generate(), and flopc::Expression_constant::generate().


Member Data Documentation

const TerminalExpression* flopc::GenerateFunctor::C

Definition at line 73 of file MP_expression.hpp.

Referenced by operator()(), and setTerminalExpression().

vector<Coef>& flopc::GenerateFunctor::Coefs

Definition at line 74 of file MP_expression.hpp.

Referenced by operator()().

double flopc::GenerateFunctor::m_

Definition at line 70 of file MP_expression.hpp.

Referenced by operator()(), and setMultiplicator().

vector<Constant> flopc::GenerateFunctor::multiplicators

Definition at line 71 of file MP_expression.hpp.

Referenced by operator()(), and setMultiplicator().

MP_constraint* flopc::GenerateFunctor::R

Definition at line 72 of file MP_expression.hpp.

Referenced by row_number(), and setConstraint().


The documentation for this class was generated from the following files:
Generated on Fri May 16 00:25:28 2008 for FLOPC++ by  doxygen 1.4.7