![]() |
aimsdata
4.7.0
Neuroimaging data handling
|
The template base class for all types of bucket items. More...
#include <aims/bucket/item.h>
Public Member Functions | |
Constructors and destructor | |
AimsBucketItem () | |
Constructor sets location to origin (0,0,0) More... | |
AimsBucketItem (const AimsBucketItem< T > &other) | |
Copy constructor. More... | |
~AimsBucketItem () | |
Destructor does nothing. More... | |
Location and Value manipulation methods, references | |
const T & | value () const |
Get a const reference to the value of the bucket item. More... | |
T & | value () |
Get a non-const reference to the value of the bucket item. More... | |
const AimsVector< short, 3 > & | location () const |
Get a const reference to the location of the bucket item. More... | |
AimsVector< short, 3 > & | location () |
Get a non-const reference to the location of the bucket item. More... | |
Protected Attributes | |
Data | |
AimsVector< short, 3 > | _location |
Location of the item in the 3D image. More... | |
T | _value |
Value associated to the location. More... | |
Friends | |
int | operator== (const AimsBucketItem< T > &thing1, const AimsBucketItem< T > &thing2) |
std::ostream & | operator<< (std::ostream &out, const AimsBucketItem< T > &thing) |
The template base class for all types of bucket items.
The template argument gives the type of the value associated to a location. It can be a scalar, but also a more complex data.
|
inline |
|
inline |
|
inline |
|
inline |
Get a const reference to the location of the bucket item.
Definition at line 92 of file item.h.
Referenced by aims::AimsConnectedComponent(), aims::AimsLabeledConnectedComponent(), AimsBucket< T >::operator=(), operator==(), aims::DefaultItemReader< AimsBucketItem< T > >::read(), aims::DefaultAsciiItemReader< AimsBucketItem< T > >::read(), aims::DefaultBSwapItemReader< AimsBucketItem< T > >::read(), aims::DefaultItemWriter< AimsBucketItem< T > >::write(), aims::DefaultAsciiItemWriter< AimsBucketItem< T > >::write(), and aims::DefaultBSwapItemWriter< AimsBucketItem< T > >::write().
|
inline |
|
inline |
Get a const reference to the value of the bucket item.
Definition at line 87 of file item.h.
Referenced by AimsBucket< T >::operator=(), operator==(), aims::DefaultItemReader< AimsBucketItem< T > >::read(), aims::DefaultAsciiItemReader< AimsBucketItem< T > >::read(), aims::DefaultBSwapItemReader< AimsBucketItem< T > >::read(), aims::DefaultItemWriter< AimsBucketItem< T > >::write(), aims::DefaultAsciiItemWriter< AimsBucketItem< T > >::write(), and aims::DefaultBSwapItemWriter< AimsBucketItem< T > >::write().
|
inline |
|
friend |
|
friend |
|
protected |
|
protected |