37 #ifndef AIMS_BUCKET_ITEM_H 38 #define AIMS_BUCKET_ITEM_H 51 std::ostream& operator << (std::ostream& out, const AimsBucketItem<T>& thing);
79 _location(other._location), _value(other._value) { }
86 const T& value()
const {
return _value; }
104 std::ostream& operator << <> (std::ostream& out,
109 template <
class T>
inline 117 template <
class T>
inline 118 std::ostream& operator << (std::ostream& out, const AimsBucketItem<T>& thing)
119 {
return out <<
"{" << thing.location() <<
"," << thing.value() <<
"}";
AimsBucketItem(const AimsBucketItem< T > &other)
Copy constructor.
AimsVector< short, 3 > & location()
Get a non-const reference to the location of the bucket item.
const AimsVector< short, 3 > & location() const
Get a const reference to the location of the bucket item.
T & value()
Get a non-const reference to the value of the bucket item.
const T & value() const
Get a const reference to the value of the bucket item.
The template base class for all types of bucket items.
T _value
Value associated to the location.
~AimsBucketItem()
Destructor does nothing.
int operator==(const AimsBucketItem< T > &thing1, const AimsBucketItem< T > &thing2)