Size sets. More...
#include <bin-packing.hh>
Public Member Functions | |
SizeSet (void) | |
Default constructor. | |
SizeSet (Region ®ion, int n_max) | |
Initialize for at most n_max items. | |
void | add (int s) |
Add new size s. | |
int | card (void) const |
Return cardinality of set (number of entries) | |
int | total (void) const |
Return total size. | |
int | operator[] (int i) const |
Return size of item i. |
Protected Attributes | |
int | n |
Number of size entries in the set. | |
int | t |
Total size of the set. | |
int * | s |
Array of sizes (will have more elements) |
Size sets.
Definition at line 87 of file bin-packing.hh.
|
inline |
Default constructor.
Definition at line 92 of file propagate.hpp.
|
inline |
Initialize for at most n_max items.
Definition at line 94 of file propagate.hpp.
|
inline |
Add new size s.
Definition at line 97 of file propagate.hpp.
|
inline |
Return cardinality of set (number of entries)
Definition at line 101 of file propagate.hpp.
|
inline |
Return total size.
Definition at line 105 of file propagate.hpp.
|
inline |
Return size of item i.
Definition at line 109 of file propagate.hpp.
|
protected |
Number of size entries in the set.
Definition at line 90 of file bin-packing.hh.
|
protected |
Total size of the set.
Definition at line 92 of file bin-packing.hh.
|
protected |
Array of sizes (will have more elements)
Definition at line 94 of file bin-packing.hh.