BCP_obj_set_change Class Reference

This class stores data about how an object set (set of vars or set of cuts) changes. More...

#include <BCP_obj_change.hpp>

Collaboration diagram for BCP_obj_set_change:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 BCP_obj_set_change ()
 ~BCP_obj_set_change ()
BCP_storage_t storage () const
int deleted_num () const
int changed_num () const
int added_num () const
void update (const BCP_obj_set_change &objs_change)
void swap (BCP_obj_set_change &x)
int pack_size () const
void pack (BCP_buffer &buf) const
void unpack (BCP_buffer &buf)
void print () const

Public Attributes

BCP_storage_t _storage
int _deleted_num
BCP_vec< int > _del_change_pos
BCP_vec< BCP_obj_change_change
BCP_vec< int > _new_objs

Detailed Description

This class stores data about how an object set (set of vars or set of cuts) changes.

Definition at line 57 of file BCP_obj_change.hpp.


Constructor & Destructor Documentation

BCP_obj_set_change::BCP_obj_set_change (  )  [inline]

Definition at line 78 of file BCP_obj_change.hpp.

BCP_obj_set_change::~BCP_obj_set_change (  )  [inline]

Definition at line 82 of file BCP_obj_change.hpp.


Member Function Documentation

BCP_storage_t BCP_obj_set_change::storage (  )  const [inline]

Definition at line 84 of file BCP_obj_change.hpp.

References _storage.

Referenced by BCP_lp_unpack_parent(), BCP_tm_create_child(), BCP_tm_create_cut_change(), BCP_tm_create_var_change(), BCP_tm_save_root_cuts(), BCP_tm_unpack_node_description(), and update().

int BCP_obj_set_change::deleted_num (  )  const [inline]

Definition at line 86 of file BCP_obj_change.hpp.

References _deleted_num.

Referenced by BCP_lp_pack_noncore_cuts(), BCP_lp_pack_noncore_vars(), and update().

int BCP_obj_set_change::changed_num (  )  const [inline]

Definition at line 87 of file BCP_obj_change.hpp.

References _change, and BCP_vec< T >::size().

Referenced by update().

int BCP_obj_set_change::added_num (  )  const [inline]

Definition at line 88 of file BCP_obj_change.hpp.

References _new_objs, and BCP_vec< T >::size().

Referenced by BCP_tm_create_cut_change(), BCP_tm_create_var_change(), print(), and update().

void BCP_obj_set_change::update ( const BCP_obj_set_change objs_change  ) 

Definition at line 13 of file BCP_obj_change.cpp.

References _change, _del_change_pos, _new_objs, added_num(), BCP_vec< T >::append(), BCP_Storage_Explicit, BCP_Storage_WrtParent, BCP_vec< T >::begin(), changed_num(), BCP_vec< T >::clear(), deleted_num(), BCP_vec< T >::end(), BCP_vec< T >::entry(), BCP_vec< T >::erase_by_index(), and storage().

Referenced by BCP_lp_create_added_cuts(), BCP_lp_create_added_vars(), and BCP_tm_node_to_send::send().

void BCP_obj_set_change::swap ( BCP_obj_set_change x  ) 

Definition at line 57 of file BCP_obj_change.cpp.

References _change, _del_change_pos, _deleted_num, _new_objs, _storage, BCP_vec< T >::swap(), and x.

int BCP_obj_set_change::pack_size (  )  const

Definition at line 69 of file BCP_obj_change.cpp.

References _change, _del_change_pos, _new_objs, BCP_obj_change::pack_size(), and BCP_vec< T >::size().

Referenced by BCP_lp_pack_noncore_cuts(), and BCP_lp_pack_noncore_vars().

void BCP_obj_set_change::pack ( BCP_buffer buf  )  const

Definition at line 79 of file BCP_obj_change.cpp.

References _change, _del_change_pos, _deleted_num, _new_objs, _storage, and BCP_buffer::pack().

Referenced by BCP_lp_pack_noncore_cuts(), BCP_lp_pack_noncore_vars(), BCP_node_change::pack(), and BCP_tm_node_to_send::send().

void BCP_obj_set_change::unpack ( BCP_buffer buf  ) 

Definition at line 91 of file BCP_obj_change.cpp.

References _change, _del_change_pos, _deleted_num, _new_objs, _storage, and BCP_buffer::unpack().

Referenced by BCP_lp_unpack_parent(), BCP_tm_unpack_node_description(), and BCP_node_change::unpack().

void BCP_obj_set_change::print (  )  const

Definition at line 103 of file BCP_obj_change.cpp.

References _change, _del_change_pos, _deleted_num, _new_objs, _storage, added_num(), and BCP_vec< T >::size().

Referenced by BCP_lp_pack_noncore_cuts(), and BCP_lp_pack_noncore_vars().


Member Data Documentation

BCP_storage_t BCP_obj_set_change::_storage

Definition at line 72 of file BCP_obj_change.hpp.

Referenced by BCP_lp_pack_noncore_cuts(), BCP_lp_pack_noncore_vars(), BCP_tm_create_cut_change(), BCP_tm_create_var_change(), pack(), print(), BCP_tm_node_to_send::send(), storage(), swap(), and unpack().

int BCP_obj_set_change::_deleted_num

Definition at line 73 of file BCP_obj_change.hpp.

Referenced by BCP_lp_pack_noncore_cuts(), BCP_lp_pack_noncore_vars(), deleted_num(), pack(), print(), swap(), and unpack().

BCP_vec<int> BCP_obj_set_change::_del_change_pos

Definition at line 74 of file BCP_obj_change.hpp.

Referenced by BCP_lp_pack_noncore_cuts(), BCP_lp_pack_noncore_vars(), BCP_tm_create_cut_change(), BCP_tm_create_var_change(), pack(), pack_size(), print(), swap(), unpack(), and update().

BCP_vec<BCP_obj_change> BCP_obj_set_change::_change

Definition at line 75 of file BCP_obj_change.hpp.

Referenced by BCP_lp_create_added_cuts(), BCP_lp_create_added_vars(), BCP_lp_make_parent_from_node(), BCP_lp_pack_noncore_cuts(), BCP_lp_pack_noncore_vars(), BCP_lp_unpack_parent(), BCP_tm_create_cut_change(), BCP_tm_create_root(), BCP_tm_create_var_change(), changed_num(), pack(), pack_size(), print(), swap(), unpack(), and update().

BCP_vec<int> BCP_obj_set_change::_new_objs

Definition at line 76 of file BCP_obj_change.hpp.

Referenced by added_num(), BCP_lp_create_added_cuts(), BCP_lp_create_added_vars(), BCP_lp_make_parent_from_node(), BCP_lp_pack_noncore_cuts(), BCP_lp_pack_noncore_vars(), BCP_lp_unpack_parent(), BCP_tm_create_root(), BCP_tm_save_root_cuts(), pack(), pack_size(), print(), BCP_tm_node_to_send::receive_cuts(), BCP_tm_node_to_send::receive_vars(), BCP_tm_node_to_send::send(), swap(), unpack(), and update().


The documentation for this class was generated from the following files:
Generated on Thu Nov 10 03:12:14 2011 by  doxygen 1.4.7