#include <BCP_var.hpp>
Inheritance diagram for BCP_var_set:
Public Member Functions | |
Constructor and destructor | |
BCP_var_set () | |
~BCP_var_set () | |
Modifying methods | |
void | append (const BCP_vec< BCP_var * > &x) |
void | append (BCP_var_set::const_iterator first, BCP_var_set::const_iterator last) |
void | set_lb_ub (const BCP_vec< int > &pos, BCP_vec< double >::const_iterator bounds) |
void | set_lb_ub_st (const BCP_vec< BCP_obj_change > &vc) |
void | set_lb_ub_st (BCP_vec< int >::const_iterator pos, const BCP_vec< BCP_obj_change > &vc) |
Methods related to deleting variables from the variable set | |
void | deletable (const int bvarnum, BCP_vec< int > &collection) |
Private Member Functions | |
Disabled methods | |
BCP_var_set (const BCP_var_set &) | |
BCP_var_set & | operator= (const BCP_var_set &) |
Definition at line 356 of file BCP_var.hpp.
|
The copy constructor is declared but not defined to disable it. |
|
The default constructor creates a variable set with no variables in it. Definition at line 371 of file BCP_var.hpp.
00371 {} |
|
The destructor empties the variable set. NOTE: the destructor does NOT delete the variables the members of the variable set point to. Definition at line 375 of file BCP_var.hpp.
00375 {} |
|
Append the variables in Definition at line 387 of file BCP_var.hpp. References BCP_vec< T >::append().
00388 { 00389 BCP_vec<BCP_var*>::append(first, last); 00390 } |
|
Append the variables in the vector Reimplemented from BCP_vec< BCP_var * >. Definition at line 382 of file BCP_var.hpp. References BCP_vec< T >::append().
00382 { 00383 BCP_vec<BCP_var*>::append(x); 00384 } |
|
Collect the indices of the variables marked to be removed. Since core variables are never removed, we pass the number of core variables in the first argument to speed up things a little. Definition at line 56 of file BCP_var.cpp. References BCP_vec< T >::clear(), BCP_vec< BCP_var * >::end(), BCP_vec< BCP_var * >::entry(), BCP_vec< T >::reserve(), BCP_vec< BCP_var * >::size(), and BCP_vec< T >::unchecked_push_back().
|
|
The assignment operator is declared but not defined to disable it. |
|
Set the lower/upper bound pairs of the entries given by the contents of Definition at line 10 of file BCP_var.cpp. References BCP_vec< T >::begin(), BCP_vec< T >::end(), and BCP_vec< BCP_var * >::operator[]().
00012 { 00013 BCP_vec<int>::const_iterator ii = indices.begin(); 00014 BCP_vec<int>::const_iterator lastii = indices.end(); 00015 for ( ; ii != lastii; ++ii){ 00016 const double lb = *bounds; 00017 ++bounds; 00018 const double ub = *bounds; 00019 ++bounds; 00020 operator[](*ii)->change_bounds(lb, ub); 00021 } 00022 } |
|
Set the lower/upper bound pairs and the stati of the entries given by the content of Definition at line 42 of file BCP_var.cpp. References BCP_vec< T >::begin(), BCP_vec< T >::end(), and BCP_vec< BCP_var * >::operator[]().
00043 { 00044 BCP_vec<BCP_obj_change>::const_iterator chi = vc.begin(); 00045 BCP_vec<BCP_obj_change>::const_iterator lastchi = vc.end(); 00046 while (chi != lastchi){ 00047 operator[](*pos)->change_lb_ub_st(*chi); 00048 ++pos; 00049 ++chi; 00050 } 00051 } |
|
Set the lower/upper bound pairs and the stati of the first Definition at line 27 of file BCP_var.cpp. References BCP_vec< BCP_var * >::begin(), BCP_vec< T >::begin(), and BCP_vec< T >::end().
00028 { 00029 BCP_vec<BCP_obj_change>::const_iterator chi = vc.begin(); 00030 BCP_vec<BCP_obj_change>::const_iterator lastchi = vc.end(); 00031 iterator var = begin(); 00032 while (chi != lastchi){ 00033 (*var)->change_lb_ub_st(*chi); 00034 ++var; 00035 ++chi; 00036 } 00037 } |