37 #ifndef AIMS_BUCKET_ITEM_H 
   38 #define AIMS_BUCKET_ITEM_H 
   79                        _location(other._location), _value(other._value) { }
 
   87     const T& 
value()
 const { 
return _value; }
 
  104     std::ostream& operator << <> (std::ostream& out, 
 
  109 template <
class T> 
inline 
  117 template <
class T> 
inline 
  119 { 
return out << 
"{" << thing.
location() << 
"," << thing.
value() << 
"}";
 
The template base class for all types of bucket items.
AimsBucketItem(const AimsBucketItem< T > &other)
Copy constructor.
AimsVector< short, 3 > _location
Location of the item in the 3D image.
T & value()
Get a non-const reference to the value of the bucket item.
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.
AimsBucketItem()
Constructor sets location to origin (0,0,0)
~AimsBucketItem()
Destructor does nothing.
T _value
Value associated to the location.
const T & value() const
Get a const reference to the value of the bucket item.
int operator==(const AimsBucketItem< T > &thing1, const AimsBucketItem< T > &thing2)
AIMSDATA_API std::ostream & operator<<(std::ostream &out, const AimsBucketItem< T > &thing)