ExistOptVar Class Reference

Existential optimization variable. More...

#include <OptVar.hh>

Inherits OptVar.

Inheritance diagram for ExistOptVar:

Inheritance graph
[legend]
Collaboration diagram for ExistOptVar:

Collaboration graph
[legend]
List of all members.

Public Member Functions

QECODE_EXPORT ExistOptVar (int var, int scope)
virtual QECODE_EXPORT int getVal (Strategy s)
 returns value of this optimization variable in the substrategy s
virtual QECODE_EXPORT int getScope ()
 returns the scope where this optimization variable belong
virtual ~ExistOptVar ()

Private Attributes

int varId
int scopeId

Detailed Description

Existential optimization variable.

This class defines an existential optimization variable. This variabe is just an other point of view for an existential variable of the problem.

Definition at line 87 of file OptVar.hh.


Constructor & Destructor Documentation

ExistOptVar::ExistOptVar ( int  var,
int  scope 
)

Definition at line 25 of file OptVar.cc.

References scopeId, and varId.

virtual ExistOptVar::~ExistOptVar (  )  [inline, virtual]

Definition at line 95 of file OptVar.hh.


Member Function Documentation

int ExistOptVar::getVal ( Strategy  s  )  [virtual]

returns value of this optimization variable in the substrategy s

Implements OptVar.

Definition at line 30 of file OptVar.cc.

References Strategy::getChild(), Strategy::isDummy(), Strategy::isFalse(), Strategy::isTrue(), Strategy::scope(), scopeId, Strategy::value(), varId, and Strategy::VMin().

int ExistOptVar::getScope (  )  [virtual]

returns the scope where this optimization variable belong

Implements OptVar.

Definition at line 44 of file OptVar.cc.

References scopeId.


Member Data Documentation

int ExistOptVar::varId [private]

Definition at line 89 of file OptVar.hh.

Referenced by ExistOptVar(), and getVal().

int ExistOptVar::scopeId [private]

Definition at line 90 of file OptVar.hh.

Referenced by ExistOptVar(), getScope(), and getVal().


The documentation for this class was generated from the following files:
Generated on Tue Jun 10 18:32:00 2008 for qecode by  doxygen 1.5.2