Generated on Sat Feb 7 2015 02:01:38 for Gecode by doxygen 1.8.9.1
CDBF::Choice Class Reference

Choice More...

Public Member Functions

 Choice (const Brancher &b, unsigned int a, int i, int *s, int n_s)
 
virtual size_t size (void) const
 Report size occupied. More...
 
virtual void archive (Archive &e) const
 Archive into e. More...
 
virtual ~Choice (void)
 Destructor. More...
 
- Public Member Functions inherited from Gecode::Choice
unsigned int alternatives (void) const
 Return number of alternatives. More...
 

Public Attributes

int item
 Item. More...
 
int * same
 Bins with same slack. More...
 
int n_same
 Number of bins with same slack. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Gecode::Choice
static void * operator new (size_t)
 Allocate memory from heap. More...
 
static void operator delete (void *)
 Return memory to heap. More...
 
- Protected Member Functions inherited from Gecode::Choice
 Choice (const Brancher &b, const unsigned int a)
 Initialize for particular brancher b and alternatives a. More...
 

Detailed Description

Choice

Definition at line 200 of file bin-packing.cpp.

Constructor & Destructor Documentation

CDBF::Choice::Choice ( const Brancher b,
unsigned int  a,
int  i,
int *  s,
int  n_s 
)
inline

Initialize choice for brancher b, alternatives a, item i and same bins s.

Definition at line 211 of file bin-packing.cpp.

virtual CDBF::Choice::~Choice ( void  )
inlinevirtual

Destructor.

Reimplemented from Gecode::Choice.

Definition at line 229 of file bin-packing.cpp.

Member Function Documentation

virtual size_t CDBF::Choice::size ( void  ) const
inlinevirtual

Report size occupied.

Implements Gecode::Choice.

Definition at line 218 of file bin-packing.cpp.

virtual void CDBF::Choice::archive ( Archive e) const
inlinevirtual

Archive into e.

Reimplemented from Gecode::Choice.

Definition at line 222 of file bin-packing.cpp.

Member Data Documentation

int CDBF::Choice::item

Item.

Definition at line 203 of file bin-packing.cpp.

int* CDBF::Choice::same

Bins with same slack.

Definition at line 205 of file bin-packing.cpp.

int CDBF::Choice::n_same

Number of bins with same slack.

Definition at line 207 of file bin-packing.cpp.


The documentation for this class was generated from the following file: