OS_user_data.hpp
Go to the documentation of this file.
1 /* $Id: OS_user_data.hpp 2698 2009-06-09 04:14:07Z kmartin $ */
2 // Last edit: 2/10/05
3 //
4 // Name: OS_user_data.hpp
5 // Author: Francois Margot
6 // Tepper School of Business
7 // Carnegie Mellon University, Pittsburgh, PA 15213
8 // email: fmargot@andrew.cmu.edu
9 // Date: 12/28/03
10 //-----------------------------------------------------------------------------
11 // Copyright (C) 2003, Francois Margot. All Rights Reserved.
12 
13 #ifndef _OS_UD_H
14 #define _OS_UD_H
15 
16 #include "BCP_USER.hpp"
17 
18 class BCP_buffer;
19 
22 /**************************************************************************/
23 class real_user_data {
24 
25  /* Add: fields for real_user_data */
26 
27 public:
28 
29  //@name Public data members */
34 
36  int card_set_zero;
37 
39  int *set_zero;
41 
44  real_user_data(const int max_size);
46 
50 
52  void print() const;
53 };
54 
57 /**************************************************************************/
58 class MY_user_data : public BCP_user_data {
59 public:
60 
63  int is_processed;
64 
67 
68 public:
69 
72  MY_user_data(const int max_size);
74 
77 
79  ~MY_user_data();
80 
82  void pack(BCP_buffer& buf) const;
83 
85  void print() const;
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.
real_user_data * p_rud
Pointer on an object holding the user data itself.
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.