aimsdata  5.0.5
Neuroimaging data handling
aims::AimsFastAllocationData< T > Class Template Reference

#include <aims/data/fastAllocationData.h>

Inheritance diagram for aims::AimsFastAllocationData< T >:
Collaboration diagram for aims::AimsFastAllocationData< T >:

Public Member Functions

 AimsFastAllocationData (int dimx=1, int dimy=1, int dimz=1, int dimt=1, int borderw=0)
 
 AimsFastAllocationData (const AimsFastAllocationData< T > &other)
 
 AimsFastAllocationData (const AimsData< T > &other)
 
AimsFastAllocationData< T > & operator= (const AimsFastAllocationData< T > &other)
 
AimsFastAllocationData< T > & operator= (const AimsData< T > &other)
 
AimsFastAllocationData< T > & operator= (const T &v)
 
virtual ~AimsFastAllocationData ()
 
- Public Member Functions inherited from AimsData< T >
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
bool empty () const
 
 AimsData (int dimx=1, int dimy=1, int dimz=1, int dimt=1, int borderw=0)
 
 AimsData (int dimx, int dimy, int dimz, int dimt, int borderw, const carto::AllocatorContext &al)
 
 AimsData (const AimsData< T > &other)
 
 AimsData (const AimsData< T > &other, int borderw)
 
virtual ~AimsData ()
 
 AimsData (carto::rc_ptr< carto::Volume< T > > vol)
 
AimsData< T > & operator= (carto::rc_ptr< carto::Volume< T > > vol)
 
AimsData< T > & operator= (const AimsData< T > &)
 
AimsData< T > & operator= (const T &)
 
carto::rc_ptr< carto::Volume< T > > volume ()
 
carto::rc_ptr< carto::Volume< T > > volume () const
 
 operator carto::rc_ptr< carto::Volume< T > > ()
 cast to Volume More...
 
 operator const carto::rc_ptr< carto::Volume< T > > () const
 
const carto::AllocatorContext & allocator () const
 
int dimX () const
 
int dimY () const
 
int dimZ () const
 
int dimT () const
 
float sizeX () const
 
float sizeY () const
 
float sizeZ () const
 
float sizeT () const
 
void setSizeX (float sizex)
 
void setSizeY (float sizey)
 
void setSizeZ (float sizez)
 
void setSizeT (float sizet)
 
void setSizeXYZT (float sizex=1.0f, float sizey=1.0f, float sizez=1.0f, float sizet=1.0f)
 
void setSizeXYZT (const AimsData< T > &other)
 
const aims::Headerheader () const
 
aims::Headerheader ()
 
void setHeader (aims::Header *hdr)
 
reference operator[] (size_type n)
 
const_reference operator[] (size_type n) const
 
reference operator() (size_type x=0, size_type y=0, size_type z=0, size_type t=0)
 
const_reference operator() (size_type x=0, size_type y=0, size_type z=0, size_type t=0) const
 
reference operator() (const Point4d &pt)
 
const_reference operator() (const Point4d &pt) const
 
reference operator() (const Point4dl &pt)
 
const_reference operator() (const Point4dl &pt) const
 
reference operator() (const Point3d &pt)
 
const_reference operator() (const Point3d &pt) const
 
reference operator() (const Point3dl &pt)
 
const_reference operator() (const Point3dl &pt) const
 
reference operator() (const Point2d &pt)
 
const_reference operator() (const Point2d &pt) const
 
reference operator() (const Point2dl &pt)
 
const_reference operator() (const Point2dl &pt) const
 
minimum () const
 
maximum () const
 
minIndex (int *x, int *y, int *z, int *t) const
 
maxIndex (int *x, int *y, int *z, int *t) const
 
void fillBorder (const T &val)
 
AimsData< T > clone () const
 
AimsData< T > cross (const AimsData< T > &other)
 
AimsData< T > & transpose ()
 
- Public Member Functions inherited from carto::RCObject
 RCObject ()
 
 RCObject (const RCObject &)
 
RCObjectoperator= (const RCObject &)
 
virtual ~RCObject ()
 
- Public Member Functions inherited from aims::Border
 Border (int dimx, int dimy, int dimz, int width=0)
 The constructor precalculates offsets to speed-up access to data during loops. More...
 
 Border (int dimx, int dimy, int dimz, int bx1, int bx2, int by1, int by2, int bz1, int bz2)
 The constructor precalculates offsets to speed-up access to data during loops. More...
 
 Border (int dimx, int dimy, int dimz, const std::vector< int > &borders)
 The constructor precalculates offsets to speed-up access to data during loops. More...
 
virtual ~Border ()
 
int borderWidth () const
 Usefull offsets for A.I.M.S. More...
 
int oFirstPoint () const
 Offset from the start of the allocated memory to the first point. More...
 
int oLastPoint () const
 Offset from the start of the allocated memory to the last point. More...
 
int oLine () const
 Offset between 2 consecutive lines. More...
 
int oPointBetweenLine () const
 Offset between the end of a line and the start of the consecutive line. More...
 
int oSlice () const
 Offset between 2 consecutive slices. More...
 
int oLineBetweenSlice () const
 Number of lines between 2 consecutive slices. More...
 
int oVolume () const
 Offset between 2 consecutive volumes. More...
 
int oSliceBetweenVolume () const
 Number of slices between 2 consecutive volumes. More...
 
const std::vector< int > & borders () const
 Sizes of the border. More...
 

Static Public Attributes

static const carto::AllocatorContext fastAllocatorContext
 

Additional Inherited Members

- Public Types inherited from AimsData< T >
typedef T value_type
 
typedef T * pointer
 basic pointer More...
 
typedef T **** pointer4d
 4D-pointer More...
 
typedef T * iterator
 basic iterator More...
 
typedef const T * const_iterator
 basic constant iterator More...
 
typedef T & reference
 basic reference More...
 
typedef const T & const_reference
 basic constant reference More...
 
typedef size_t size_type
 size of the basic type More...
 
typedef ptrdiff_t difference_type
 difference type More...
 
- Public Types inherited from carto::RCObject
typedef int RefCounterType
 
- Protected Member Functions inherited from aims::Border
void _setBorder (int dimx, int dimy, int dimz, int width)
 Function that sets up all protected datas. More...
 
void _setBorder (int dimx, int dimy, int dimz, int bx1, int bx2, int by1, int by2, int bz1, int bz2)
 Function that sets up all protected datas for non uniform borders. More...
 
void _setBorder (int dimx, int dimy, int dimz, const std::vector< int > &borders)
 Function that sets up all protected datas for non uniform borders. More...
 
- Protected Attributes inherited from aims::Border
std::vector< int > _borders
 Borders. More...
 
int _oFirstPoint
 Offset up to first point. More...
 
int _oLastPoint
 Offset up to last point. More...
 
int _oLine
 Length of a line. More...
 
int _oPointBetweenLine
 Offset between two consecutive lines. More...
 
int _oSlice
 Length of a slice. More...
 
int _oLineBetweenSlice
 Offset between two consecutive slices. More...
 
int _oVolume
 Length of a volume. More...
 
int _oSliceBetweenVolume
 Offset between two consecutive volumes. More...
 

Detailed Description

template<typename T>
class aims::AimsFastAllocationData< T >

Definition at line 43 of file fastAllocationData.h.

Constructor & Destructor Documentation

◆ AimsFastAllocationData() [1/3]

template<typename T>
aims::AimsFastAllocationData< T >::AimsFastAllocationData ( int  dimx = 1,
int  dimy = 1,
int  dimz = 1,
int  dimt = 1,
int  borderw = 0 
)
inline

Definition at line 49 of file fastAllocationData.h.

◆ AimsFastAllocationData() [2/3]

template<typename T>
aims::AimsFastAllocationData< T >::AimsFastAllocationData ( const AimsFastAllocationData< T > &  other)
inline

Definition at line 54 of file fastAllocationData.h.

◆ AimsFastAllocationData() [3/3]

template<typename T>
aims::AimsFastAllocationData< T >::AimsFastAllocationData ( const AimsData< T > &  other)
inline

Definition at line 57 of file fastAllocationData.h.

◆ ~AimsFastAllocationData()

template<typename T>
virtual aims::AimsFastAllocationData< T >::~AimsFastAllocationData ( )
inlinevirtual

Member Function Documentation

◆ operator=() [1/3]

template<typename T>
AimsFastAllocationData<T>& aims::AimsFastAllocationData< T >::operator= ( const AimsFastAllocationData< T > &  other)
inline

Definition at line 61 of file fastAllocationData.h.

◆ operator=() [2/3]

template<typename T>
AimsFastAllocationData<T>& aims::AimsFastAllocationData< T >::operator= ( const AimsData< T > &  other)
inline

Definition at line 70 of file fastAllocationData.h.

◆ operator=() [3/3]

template<typename T>
AimsFastAllocationData<T>& aims::AimsFastAllocationData< T >::operator= ( const T &  v)
inline

Definition at line 78 of file fastAllocationData.h.

References AimsData< T >::operator=().

Member Data Documentation

◆ fastAllocatorContext

template<typename T>
const carto::AllocatorContext aims::AimsFastAllocationData< T >::fastAllocatorContext
static

The documentation for this class was generated from the following file: