FLOPC++
|
Range over which some other constuct is defined.This is one of the main public interface classes. One uses this in the context of a constraint, objective, variable, or data. This class in the MP_domain family uses an MP_set and and index for defining the Range over which the construct is defined. More...
#include <MP_domain.hpp>
Public Member Functions | |
MP_domain_set (const MP_set *s, MP_index *i) | |
Constructor taking a set pointer and an index pointer. More... | |
void | operator() () const |
int | evaluate () const |
const MP_set_base * | getSet () const |
Getter for the set used in construction. More... | |
MP_index * | getIndex () const |
Getter for the index used in construction. More... | |
MP_domain | getDomain (MP_set *s) const |
~MP_domain_set () | |
![]() | |
MP_domain_base () | |
virtual | ~MP_domain_base () |
virtual Functor * | makeInsertFunctor () const |
void | display () const |
virtual size_t | size () const |
Private Attributes | |
const MP_set * | S |
MP_index * | I |
Additional Inherited Members | |
![]() | |
const Functor * | donext |
![]() | |
Functor () | |
virtual | ~Functor () |
![]() | |
MP_index_base () | |
virtual | ~MP_index_base () |
Range over which some other constuct is defined.
This is one of the main public interface classes. One uses this in the context of a constraint, objective, variable, or data. This class in the MP_domain family uses an MP_set and and index for defining the Range over which the construct is defined.
Definition at line 110 of file MP_domain.hpp.
Constructor taking a set pointer and an index pointer.
Definition at line 15 of file MP_domain.cpp.
flopc::MP_domain_set::~MP_domain_set | ( | ) |
Definition at line 17 of file MP_domain.cpp.
|
virtual |
Evaluates the index within the domain.
Implements flopc::MP_index_base.
Definition at line 102 of file MP_domain.cpp.
References flopc::MP_index::evaluate(), and I.
Implements flopc::MP_index_base.
Definition at line 18 of file MP_domain.cpp.
References flopc::MP_domain_base::MP_domain.
|
virtual |
Getter for the index used in construction.
Implements flopc::MP_domain_base.
Definition at line 120 of file MP_domain.cpp.
References I.
|
virtual |
Getter for the set used in construction.
Implements flopc::MP_domain_base.
Definition at line 94 of file MP_domain.cpp.
References S.
|
virtual |
Implements flopc::Functor.
Definition at line 106 of file MP_domain.cpp.
References flopc::MP_index::assign(), I, flopc::MP_index::instantiate(), flopc::MP_index::isInstantiated(), S, flopc::MP_set::size(), and flopc::MP_index::unInstantiate().
|
private |
Definition at line 131 of file MP_domain.hpp.
Referenced by evaluate(), getIndex(), and operator()().
|
private |
Definition at line 130 of file MP_domain.hpp.
Referenced by getSet(), and operator()().