#include <memory>#include <algorithm>#include "BCP_vector_sanity.hpp"#include "BCP_error.hpp"#include "BCP_vector_bool.hpp"#include "BCP_vector_char.hpp"#include "BCP_vector_short.hpp"#include "BCP_vector_int.hpp"#include "BCP_vector_double.hpp"#include "BCP_vector_general.hpp"Include dependency graph for BCP_vector.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| class | BCP_vec< T > |
| The class BCP_vec serves the same purpose as the vector class in the standard template library. More... | |
Functions | |
| template<class T> | |
| bool | operator== (const BCP_vec< T > &x, const BCP_vec< T > &y) |
| template<class T> | |
| bool | operator< (BCP_vec< T > &x, BCP_vec< T > &y) |
| template<class T> | |
| void | purge_ptr_vector (BCP_vec< T * > &pvec, typename BCP_vec< T * >::iterator first, typename BCP_vec< T * >::iterator last) |
This function purges the entries [first,last) from the vector of pointers pvec. | |
| template<class T> | |
| void | purge_ptr_vector (BCP_vec< T * > &pvec) |
This function purges all the entries from the vector of pointers pvec. | |
| template<class T> | |
| void | purge_ptr_vector_by_index (BCP_vec< T * > &pvec, typename BCP_vec< int >::const_iterator first, typename BCP_vec< int >::const_iterator last) |
This function purges the entries indexed by [first,last) from the vector of pointers pvec. | |
| template<class T> | |
| void | keep_ptr_vector_by_index (BCP_vec< T * > &pvec, typename BCP_vec< int >::const_iterator first, typename BCP_vec< int >::const_iterator last) |
This function keeps only the entries indexed by [first,last) from the vector of pointers pvec. | |
Definition at line 246 of file BCP_vector.hpp.
References BCP_vec< T >::begin(), BCP_vec< T >::size(), and x.
Definition at line 252 of file BCP_vector.hpp.
| void purge_ptr_vector | ( | BCP_vec< T * > & | pvec, | |
| typename BCP_vec< T * >::iterator | first, | |||
| typename BCP_vec< T * >::iterator | last | |||
| ) |
This function purges the entries [first,last) from the vector of pointers pvec.
Since these entries are pointers, first operator delete is invoked for each of them, then the pointers are erased from the vector.
Definition at line 264 of file BCP_vector.hpp.
References BCP_vec< T >::erase().
Referenced by BCP_add_branching_objects(), BCP_lp_add_from_local_cut_pool(), BCP_lp_add_from_local_var_pool(), BCP_lp_clean_up_node(), BCP_lp_fathom(), BCP_lp_perform_strong_branching(), BCP_problem_core::clear(), MCF3_lp::initialize_new_search_tree_node(), MCF2_lp::initialize_new_search_tree_node(), MCF1_lp::initialize_new_search_tree_node(), BCP_lp_user::load_problem(), purge_ptr_vector(), BCP_vg_user::unpack_dual_solution(), BCP_cg_user::unpack_primal_solution(), BCP_cg_prob::~BCP_cg_prob(), BCP_lp_cut_pool::~BCP_lp_cut_pool(), BCP_lp_node::~BCP_lp_node(), BCP_lp_prob::~BCP_lp_prob(), BCP_lp_var_pool::~BCP_lp_var_pool(), BCP_presolved_lp_brobj::~BCP_presolved_lp_brobj(), BCP_solution_generic::~BCP_solution_generic(), BCP_vg_prob::~BCP_vg_prob(), MCF1_lp::~MCF1_lp(), MCF2_lp::~MCF2_lp(), and MCF3_lp::~MCF3_lp().
| void purge_ptr_vector | ( | BCP_vec< T * > & | pvec | ) |
This function purges all the entries from the vector of pointers pvec.
Since these entries are pointers, first operator delete is invoked for each of them, then the pointers are erased from the vector.
Definition at line 283 of file BCP_vector.hpp.
References BCP_vec< T >::begin(), BCP_vec< T >::end(), and purge_ptr_vector().
| void purge_ptr_vector_by_index | ( | BCP_vec< T * > & | pvec, | |
| typename BCP_vec< int >::const_iterator | first, | |||
| typename BCP_vec< int >::const_iterator | last | |||
| ) |
This function purges the entries indexed by [first,last) from the vector of pointers pvec.
Since these entries are pointers, first operator delete is invoked for each of them, then the pointers are erased from the vector.
Definition at line 295 of file BCP_vector.hpp.
References BCP_vec< T >::erase_by_index().
Referenced by BCP_lp_delete_cols_and_rows(), and BCP_lp_purge_slack_pool().
| void keep_ptr_vector_by_index | ( | BCP_vec< T * > & | pvec, | |
| typename BCP_vec< int >::const_iterator | first, | |||
| typename BCP_vec< int >::const_iterator | last | |||
| ) |
This function keeps only the entries indexed by [first,last) from the vector of pointers pvec.
No sanity check is performed.
Definition at line 314 of file BCP_vector.hpp.
References BCP_vec< T >::keep_by_index(), and BCP_vec< T >::size().
Referenced by BCP_lp_fathom().
1.4.7