enum { binned = true };
Bin() { allocate(sizeof(Storage)); }
bool initialized() const { return true; }
- void init(const Params ¶ms) { }
+ void init(Params ¶ms) { }
int size() const { return 1; }
VectorBin() : _size(0) {}
bool initialized() const { return _size > 0; }
- void init(int s, const Params ¶ms) {
+ void init(int s, Params ¶ms) {
assert(!initialized());
assert(s > 0);
_size = s;
}
bool initialized() const { return true; }
- void init(const Params ¶ms) {
+ void init(Params ¶ms) {
new (ptr) Storage(params);
}
int size() const{ return 1; }
}
bool initialized() const { return ptr != NULL; }
- void init(int s, const Params ¶ms) {
+ void init(int s, Params ¶ms) {
assert(s > 0 && "size must be positive!");
assert(!initialized());
_size = s;