Generated on Thu Mar 22 10:39:55 2012 for Gecode by doxygen 1.6.3

Gecode::Int::BinPacking::Item Class Reference

Item combining bin and size information. More...

#include <bin-packing.hh>

List of all members.

Public Member Functions

 Item (void)
 Default constructor.
 Item (IntView b, int s)
 Constructor.
IntView bin (void) const
 Return bin of item.
void bin (IntView b)
 Set bin of item to b.
int size (void) const
 Return size of item.
void size (int s)
 Set size of item to s.
void update (Space &home, bool share, Item &i)
 Update item during cloning.

Protected Attributes

int s
 Size of item.

Detailed Description

Item combining bin and size information.

Definition at line 53 of file bin-packing.hh.


Constructor & Destructor Documentation

Gecode::Int::BinPacking::Item::Item ( void   )  [inline]

Default constructor.

Definition at line 45 of file propagate.hpp.

Gecode::Int::BinPacking::Item::Item ( IntView  b,
int  s 
) [inline]

Constructor.

Definition at line 48 of file propagate.hpp.


Member Function Documentation

IntView Gecode::Int::BinPacking::Item::bin ( void   )  const [inline]

Return bin of item.

Definition at line 52 of file propagate.hpp.

void Gecode::Int::BinPacking::Item::bin ( IntView  b  )  [inline]

Set bin of item to b.

Definition at line 56 of file propagate.hpp.

int Gecode::Int::BinPacking::Item::size ( void   )  const [inline]

Return size of item.

Definition at line 60 of file propagate.hpp.

void Gecode::Int::BinPacking::Item::size ( int  s  )  [inline]

Set size of item to s.

Definition at line 64 of file propagate.hpp.

void Gecode::Int::BinPacking::Item::update ( Space home,
bool  share,
Item i 
) [inline]

Update item during cloning.

Definition at line 69 of file propagate.hpp.


Member Data Documentation

Size of item.

Definition at line 57 of file bin-packing.hh.


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