FLOPC++
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
flopc::VariableRef Class Reference

#include <MP_expression.hpp>

Inheritance diagram for flopc::VariableRef:
flopc::TerminalExpression flopc::MP_expression_base

Public Member Functions

int getColumn () const
- Public Member Functions inherited from flopc::TerminalExpression
virtual double getValue () const =0
virtual int getStage () const =0
- Public Member Functions inherited from flopc::MP_expression_base
 MP_expression_base ()
virtual double level () const =0
virtual void generate (const MP_domain &domain, vector< Constant > multiplicators, MP::GenerateFunctor &f, double m) const =0
virtual void insertVariables (set< MP_variable * > &v) const =0
virtual ~MP_expression_base ()

Private Member Functions

 VariableRef (MP_variable *v, const MP_index_exp &i1, const MP_index_exp &i2, const MP_index_exp &i3, const MP_index_exp &i4, const MP_index_exp &i5)
double level () const
void insertVariables (set< MP_variable * > &v) const
double getValue () const
int getStage () const
void generate (const MP_domain &domain, vector< Constant > multiplicators, MP::GenerateFunctor &f, double m) const

Private Attributes

MP_variableV
int offset
const MP_index_exp I1
const MP_index_exp I2
const MP_index_exp I3
const MP_index_exp I4
const MP_index_exp I5

Friends

class MP_variable

Detailed Description

Semantic representation of a variable in a Math Program

See Also
MP_variable for a public interface.

Definition at line 138 of file MP_expression.hpp.

Constructor & Destructor Documentation

flopc::VariableRef::VariableRef ( MP_variable v,
const MP_index_exp i1,
const MP_index_exp i2,
const MP_index_exp i3,
const MP_index_exp i4,
const MP_index_exp i5 
)
private

Definition at line 21 of file MP_expression.cpp.

References flopc::MP_variable::offset, and offset.

Member Function Documentation

void flopc::VariableRef::generate ( const MP_domain domain,
vector< Constant multiplicators,
MP::GenerateFunctor f,
double  m 
) const
private
int flopc::VariableRef::getColumn ( ) const
virtual
int flopc::VariableRef::getStage ( ) const
inlineprivate

Definition at line 158 of file MP_expression.hpp.

double flopc::VariableRef::getValue ( ) const
inlineprivate

Definition at line 155 of file MP_expression.hpp.

void flopc::VariableRef::insertVariables ( set< MP_variable * > &  v) const
inlineprivate

Definition at line 152 of file MP_expression.hpp.

References V.

double flopc::VariableRef::level ( ) const
private

Friends And Related Function Documentation

friend class MP_variable
friend

Definition at line 139 of file MP_expression.hpp.

Member Data Documentation

const MP_index_exp flopc::VariableRef::I1
private

Definition at line 167 of file MP_expression.hpp.

Referenced by getColumn().

const MP_index_exp flopc::VariableRef::I2
private

Definition at line 167 of file MP_expression.hpp.

Referenced by getColumn().

const MP_index_exp flopc::VariableRef::I3
private

Definition at line 167 of file MP_expression.hpp.

Referenced by getColumn().

const MP_index_exp flopc::VariableRef::I4
private

Definition at line 167 of file MP_expression.hpp.

Referenced by getColumn().

const MP_index_exp flopc::VariableRef::I5
private

Definition at line 167 of file MP_expression.hpp.

Referenced by getColumn().

int flopc::VariableRef::offset
private

Definition at line 166 of file MP_expression.hpp.

Referenced by VariableRef().

MP_variable* flopc::VariableRef::V
private

Definition at line 165 of file MP_expression.hpp.

Referenced by getColumn(), insertVariables(), and level().


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