FLOPC++
Public Member Functions | Public Attributes | List of all members
flopc::GenerateFunctor Class Reference

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]

Public Member Functions

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

Public Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from flopc::Functor
 Functor ()
 
virtual ~Functor ()
 

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 48 of file MP_expression.hpp.

Constructor & Destructor Documentation

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

Definition at line 50 of file MP_expression.hpp.

virtual flopc::GenerateFunctor::~GenerateFunctor ( )
inlinevirtual

Definition at line 52 of file MP_expression.hpp.

Member Function Documentation

void GenerateFunctor::operator() ( ) const
virtual
int GenerateFunctor::row_number ( ) const
virtual

Reimplemented in flopc::ObjectiveGenerateFunctor.

Definition at line 188 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 54 of file MP_expression.hpp.

References R.

Referenced by flopc::MP_constraint::coefficients().

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

Definition at line 57 of file MP_expression.hpp.

References m_, and multiplicators.

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

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

Definition at line 61 of file MP_expression.hpp.

References C.

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

Member Data Documentation

const TerminalExpression* flopc::GenerateFunctor::C

Definition at line 71 of file MP_expression.hpp.

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

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

Definition at line 72 of file MP_expression.hpp.

Referenced by operator()().

double flopc::GenerateFunctor::m_

Definition at line 68 of file MP_expression.hpp.

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

std::vector<Constant> flopc::GenerateFunctor::multiplicators

Definition at line 69 of file MP_expression.hpp.

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

MP_constraint* flopc::GenerateFunctor::R

Definition at line 70 of file MP_expression.hpp.

Referenced by row_number(), and setConstraint().


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