69 throw BCP_fatal_error(
"BB_lp::pack_user_data() : unknown data type!\n");
71 printf(
"BB_lp::pack_user_data:\n");
83 printf(
"BB_lp::unpack_user_data:\n");
90 printf(
"user_data deleted\n");
void pack(BCP_buffer &buf) const
Packing cut to a buffer.
BCP_buffer & pack(const T &value)
Pack a single object of type T.
BCP_buffer & unpack(T &value)
Unpack a single object of type T.
This is the class from which the user should derive her own algorithmic cuts.
When doing a sprint sort of algorithm on the cuts (i.e., leave out a number of cuts at the beginning ...
void print() const
Dump the fields of the class.
virtual BCP_cut_algo * unpack_cut_algo(BCP_buffer &buf)
Unpack an algorithmic cut.
real_user_data * p_rud
Pointer on an object holding the user data itself.
void pack(BCP_buffer &buf) const
Packing cut to a buffer.
void pack(BCP_buffer &buf) const
Packing to buffer.
Simple representation of a cut by storing non zero coefficients only.
Class taking care of interaction between user data and Bcp.
Currently there isn't any error handling in BCP.
int is_processed
Indicator for mmory management: If is_processed = 1, the associated user data may be erased...
virtual void pack_cut_algo(const BCP_cut_algo *cut, BCP_buffer &buf)
Pack an algorithmic cut.
This class describes the message buffer used for all processes of BCP.
virtual BCP_user_data * unpack_user_data(BCP_buffer &buf)
Unpack an user data.
virtual void pack_user_data(const BCP_user_data *ud, BCP_buffer &buf)
Pack an user data.