Range over which some other constuct is defined. More...
#include <MP_domain.hpp>
Public Member Functions | |
MP_domain_subset (MP_subset< nbr > *s, const std::vector< MP_index * > &i) | |
int | evaluate () const |
Evaluates the index within the domain. | |
MP_set_base * | getSet () const |
getter for obtaining the set used in construction | |
MP_index * | getIndex () const |
getter for obtaining the index used in construction | |
MP_domain | getDomain (MP_set *s) const |
void | operator() () const |
Functor * | makeInsertFunctor () const |
Private Attributes | |
MP_subset< nbr > * | S |
std::vector< MP_index * > | I |
Friends | |
class | insertFunctor< nbr > |
Range over which some other constuct is defined.
Uses subsetting.
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_subset and a vector of indexes for defining the Range over which the construct is defined.
Definition at line 167 of file MP_domain.hpp.
flopc::MP_domain_subset< nbr >::MP_domain_subset | ( | MP_subset< nbr > * | s, | |
const std::vector< MP_index * > & | i | |||
) | [inline] |
int flopc::MP_domain_subset< nbr >::evaluate | ( | ) | const [inline, virtual] |
Evaluates the index within the domain.
Implements flopc::MP_index_base.
Definition at line 176 of file MP_domain.hpp.
MP_set_base* flopc::MP_domain_subset< nbr >::getSet | ( | ) | const [inline, virtual] |
getter for obtaining the set used in construction
Implements flopc::MP_domain_base.
Definition at line 180 of file MP_domain.hpp.
MP_index* flopc::MP_domain_subset< nbr >::getIndex | ( | ) | const [inline, virtual] |
getter for obtaining the index used in construction
Implements flopc::MP_domain_base.
Definition at line 184 of file MP_domain.hpp.
MP_domain flopc::MP_domain_subset< nbr >::getDomain | ( | MP_set * | s | ) | const [inline, virtual] |
Implements flopc::MP_index_base.
Definition at line 190 of file MP_domain.hpp.
void flopc::MP_domain_subset< nbr >::operator() | ( | ) | const [inline, virtual] |
Implements flopc::Functor.
Definition at line 194 of file MP_domain.hpp.
Functor* flopc::MP_domain_subset< nbr >::makeInsertFunctor | ( | ) | const [inline, virtual] |
Reimplemented from flopc::MP_domain_base.
Definition at line 241 of file MP_domain.hpp.
friend class insertFunctor< nbr > [friend] |
Definition at line 168 of file MP_domain.hpp.
MP_subset<nbr>* flopc::MP_domain_subset< nbr >::S [private] |
Definition at line 246 of file MP_domain.hpp.
std::vector<MP_index*> flopc::MP_domain_subset< nbr >::I [private] |
Definition at line 247 of file MP_domain.hpp.