coin-Bcp
BB_user_data.hpp
Go to the documentation of this file.
1 // Last edit: 5/19/07
2 //
3 // Name: BB_user_data.hpp
4 // Author: Francois Margot
5 // Tepper School of Business
6 // Carnegie Mellon University, Pittsburgh, PA 15213
7 // email: fmargot@andrew.cmu.edu
8 // Date: 12/28/03
9 //-----------------------------------------------------------------------------
10 // Copyright (C) 2003, Francois Margot. All Rights Reserved.
11 
12 #ifndef _BB_UD_H
13 #define _BB_UD_H
14 
15 #include "BCP_USER.hpp"
16 
17 class BCP_buffer;
18 
21 /**************************************************************************/
23 
24  /* Add: fields for real_user_data */
25 
26 public:
27 
28  //@name Public data members */
33 
36 
38  int *set_zero;
40 
43  real_user_data(const int max_size);
45 
49 
51  void print() const;
52 };
53 
56 /**************************************************************************/
57 class MY_user_data : public BCP_user_data {
58 public:
59 
63 
66 
67 public:
68 
71  MY_user_data(const int max_size);
73 
76 
78  ~MY_user_data();
79 
81  void pack(BCP_buffer& buf) const;
82 
84  void print() const;
85 };
86 
87 #endif
88 
89 
real_user_data(const int max_size)
Constructor.
~MY_user_data()
Destructor.
int * set_zero
Variables that have been set to zero by branching decisions.
void print() const
Dump the fields of the class.
void print() const
Dump the fields of the class.
MY_user_data(const int max_size)
Initial constructor.
void pack(BCP_buffer &buf) const
Packing to buffer.
int card_set_zero
Number of variables set to zero by branching descisions.
Class handling user data.
Class taking care of interaction between user data and Bcp.
int is_processed
Indicator for mmory management: If is_processed = 1, the associated user data may be erased...
~real_user_data()
Desctructor.
This class describes the message buffer used for all processes of BCP.
Definition: BCP_buffer.hpp:39
int max_card_set_zero
Maximum number of variables that may be set to zero by branching decisions.
real_user_data * p_rud
Pointer on an object holding the user data itself.