![]() |
aimsdata 6.0.0
Neuroimaging data handling
|
The bucket base class to manage packages of points associated to their value during time. More...
#include <aims/bucket/bucket.h>


Public Types | |
| typedef std::map< int, std::list< AimsBucketItem< T > > >::iterator | iterator |
| typedef std::map< int, std::list< AimsBucketItem< T > > >::const_iterator | const_iterator |
| typedef std::map< int, std::list< AimsBucketItem< T > > >::key_type | key_type |
Public Member Functions | |
| AimsBucket () | |
| AimsBucket (const AimsBucket< T > &other) | |
| AimsBucket (const aims::BucketMap< T > &other) | |
| virtual | ~AimsBucket () |
| AimsBucket< T > & | operator= (const aims::BucketMap< T > &) |
Item manipulation and methods | |
| aims::PythonHeader | _header |
| void | push_front (const AimsBucketItem< T > &item) |
| Function redefined to omit time. | |
| void | push_back (const AimsBucketItem< T > &item) |
| void | pop_front () |
| void | pop_back () |
| const std::list< AimsBucketItem< T > > & | operator[] (const key_type &n) const |
| std::list< AimsBucketItem< T > > & | operator[] (const key_type &n) |
| float | sizeX () const |
| returns the X resolution in mm | |
| float | sizeY () const |
| returns the Y resolution in mm | |
| float | sizeZ () const |
| returns the Z resolution in mm | |
| float | sizeT () const |
| returns the T resolution in mm | |
| std::vector< float > | getVoxelSize () const |
| void | setSizeX (float sizex) |
| sets the X resolution of the data in mm | |
| void | setSizeY (float sizey) |
| sets the Y resolution of the data in mm | |
| void | setSizeZ (float sizez) |
| sets the Z resolution of the data in mm | |
| void | setSizeT (float sizet) |
| sets the T resolution of the data in mm | |
| void | setSizeXYZT (float sizex, float sizey, float sizez, float sizet) |
| sets X,Y,Z and T resolutions of the data in mm | |
| void | setSizeXYZT (const std::vector< float > &vsize) |
| void | setVoxelSize (float sizex, float sizey, float sizez, float sizet) |
| void | setVoxelSize (const std::vector< float > &vsize) |
| void | erase () |
| Empty the whole map. | |
| const aims::PythonHeader & | header () const |
| aims::PythonHeader & | header () |
| void | setHeader (const aims::PythonHeader &hdr) |
| std::ostream & | operator<< (std::ostream &out, const AimsBucket< T > &thing) |
The bucket base class to manage packages of points associated to their value during time.
Time can be omitted if not needed. Buckets are based upon STL maps of lists of basic bucket items. One can get some more details in STL documentation.
| typedef std::map<int,std::list<AimsBucketItem<T>>>::const_iterator AimsBucket< T >::const_iterator |
| typedef std::map<int,std::list<AimsBucketItem<T>>>::iterator AimsBucket< T >::iterator |
| typedef std::map<int,std::list<AimsBucketItem<T>>>::key_type AimsBucket< T >::key_type |
|
inline |
Definition at line 80 of file bucket.h.
Referenced by AimsBucket(), and operator<<.
|
inline |
Definition at line 82 of file bucket.h.
References _header, and AimsBucket().
|
inline |
Definition at line 400 of file bucketMap.h.
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 147 of file bucket.h.
References _header.
Referenced by aims::BucketMap< T >::operator=(), and aims::BckWriter< T >::write().
|
inline |
Definition at line 407 of file bucketMap.h.
References _header, aims::BucketMap< T >::header(), AimsBucketItem< T >::location(), and AimsBucketItem< T >::value().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Function redefined to omit time.
Push an item into the front of the list of index 0 of the map. It is equivalent to write:\ AimsBucket<T> bucket; \ AimsBucketItem<T> item; \ bucket.push_front(item); \ \ than to write : \ bucket[0].push_front(item)
|
inline |
Definition at line 149 of file bucket.h.
References _header.
Referenced by aims::BckReader< T >::read().
|
inline |
|
inline |
|
inline |
|
inline |
sets X,Y,Z and T resolutions of the data in mm
Definition at line 311 of file bucket.h.
References _header.
Referenced by setVoxelSize(), and setVoxelSize().
|
inline |
|
inline |
|
inline |
Definition at line 140 of file bucket.h.
References setSizeXYZT().
|
inline |
Definition at line 137 of file bucket.h.
References setSizeXYZT().
|
inline |
returns the T resolution in mm
Definition at line 248 of file bucket.h.
References _header.
Referenced by aims::BckWriter< T >::write().
|
inline |
returns the X resolution in mm
Definition at line 218 of file bucket.h.
References _header.
Referenced by aims::BckWriter< T >::write().
|
inline |
returns the Y resolution in mm
Definition at line 228 of file bucket.h.
References _header.
Referenced by aims::BckWriter< T >::write().
|
inline |
returns the Z resolution in mm
Definition at line 238 of file bucket.h.
References _header.
Referenced by aims::BckWriter< T >::write().
|
friend |
Definition at line 344 of file bucket.h.
References AimsBucket().
|
protected |
Definition at line 156 of file bucket.h.
Referenced by AimsBucket(), getVoxelSize(), header(), header(), operator=(), setHeader(), setSizeT(), setSizeX(), setSizeXYZT(), setSizeXYZT(), setSizeY(), setSizeZ(), sizeT(), sizeX(), sizeY(), and sizeZ().