![]() |
MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Class template providing data allocation functions. More...
#include <mdsData.h>

Public Types | |
| typedef CDataAllocator< T > | base |
| typedef base::tConstData | tConstData |
| Const data type. | |
| typedef base::tConstDataPtr | tConstDataPtr |
| Pointer to the constant data. | |
| typedef base::tData | tData |
| Data type. | |
| typedef base::tDataPtr | tDataPtr |
| Pointer to the data. | |
Public Member Functions | |
| tData & | at (tSize i) |
| Returns reference to the element [i]. | |
| const tData & | at (tSize i) const |
| CData () | |
| Default constructor allocates data of zero length. | |
| CData (EEmptyConst) | |
| This constructor does no allocation of the data. | |
| CData (tSize Size) | |
| Constructor that allocates a given size of data. | |
| CData (tConstDataPtr pData, tSize Size) | |
| Constructor that copies a specified data. | |
| CData (const CData &Data) | |
| Constructor copies a given data. | |
| CData & | create (tSize Size) |
| Allocates memory for data of a given size. | |
| CData & | create (tConstDataPtr pData, tSize Size) |
| Allocates memory and copies the specified data. | |
| CData & | create (const CData &Data) |
| Allocates memory and copies the specified data. | |
| CData & | fill (const tData &Value) |
| Fills the entire data. | |
| template<class Function > | |
| Function | forEach (Function Func) |
| template<class Function > | |
| Function | forEach (Function Func) const |
| template<class Function > | |
| Function | forEach (Function Func) |
| Calls function object for every element. | |
| template<class Function > | |
| Function | forEach (Function Func) const |
| Calls function object for every element. | |
| template<class Function > | |
| Function | forRange (tSize i, tSize j, Function Func) |
| Calls function object for all elements in the range <i, j>. | |
| template<class Function > | |
| Function | forRange (tSize i, tSize j, Function Func) |
| template<class Function > | |
| Function | forRange (tSize i, tSize j, Function Func) const |
| Calls function object for all elements in the range <i, j>. | |
| template<class Function > | |
| Function | forRange (tSize i, tSize j, Function Func) const |
| tDataPtr | getPtr (tSize i) |
| Returns pointer to the element [i]. | |
| tConstDataPtr | getPtr (tSize i) const |
| tDataPtr | getPtr () |
| Returns pointer to the data. | |
| tConstDataPtr | getPtr () const |
| tSize | getSize () const |
| Returns size of the data. | |
| bool | isWithinBlock (tSize i, tSize j) const |
| Returns true if the specified range of elements lie within a continuous block of memory. | |
| tData & | operator() (tSize i) |
| Returns reference to the subscripted element [i]. | |
| const tData & | operator() (tSize i) const |
| CData & | operator= (const CData &Data) |
| Assignment operator. | |
| CData & | set (tSize i, const T &Value) |
| Sets the element of matrix at the position [i]. | |
| ~CData () | |
| Destructor. | |
Protected Attributes | |
| tDataPtr | m_pData |
| Pointer to the allocated data. | |
| tSize | m_Size |
| Size of the allocated data. | |
Class template providing data allocation functions.
| typedef CDataAllocator<T> mds::base::CData< T >::base |
Reimplemented in mds::img::CVolumeGaussFilter< V >, mds::img::CLoGFilter< I, N >, mds::img::CLoGFilter< tImage, CShiftZero2Gray >, mds::img::CGaussFilter< I >, mds::img::CGaussFilter< tImage >, mds::img::CGaussFilter< CFImage >, mds::img::CConvolutionFilter< I, N >, and mds::img::CVolumeConvolutionFilter< V, N >.
| typedef base::tConstData mds::base::CData< T >::tConstData |
Const data type.
Reimplemented from mds::base::CDataAllocator< T >.
| typedef base::tConstDataPtr mds::base::CData< T >::tConstDataPtr |
Pointer to the constant data.
Reimplemented from mds::base::CDataAllocator< T >.
Reimplemented in mds::img::CKernel3D, mds::img::CKernel2D, and mds::img::CKernel1D.
| typedef base::tData mds::base::CData< T >::tData |
Data type.
Reimplemented from mds::base::CDataAllocator< T >.
Reimplemented in mds::img::CKernel3D, mds::img::CKernel2D, and mds::img::CKernel1D.
| typedef base::tDataPtr mds::base::CData< T >::tDataPtr |
Pointer to the data.
Reimplemented from mds::base::CDataAllocator< T >.
Reimplemented in mds::img::CKernel3D, mds::img::CKernel2D, and mds::img::CKernel1D.
| CData::CData | ( | ) |
Default constructor allocates data of zero length.
| CData::CData | ( | EEmptyConst | ) | [explicit] |
This constructor does no allocation of the data.
| CData::CData | ( | tSize | Size | ) | [explicit] |
Constructor that allocates a given size of data.
| CData::CData | ( | tConstDataPtr | pData, |
| tSize | Size | ||
| ) |
Constructor that copies a specified data.
| mds::base::CData< T >::CData | ( | const CData< T > & | Data | ) |
Constructor copies a given data.
| CData::~CData | ( | ) |
Destructor.
| tData& mds::base::CData< T >::at | ( | tSize | i | ) |
Returns reference to the element [i].
Reimplemented in mds::img::CKernel1D.
| const tData& mds::base::CData< T >::at | ( | tSize | i | ) | const |
Reimplemented in mds::img::CKernel1D.
| CData< T > & CData::create | ( | tSize | Size | ) |
Allocates memory for data of a given size.
Reimplemented in mds::img::CKernel3D, mds::img::CKernel2D, and mds::img::CKernel1D.
| CData< T > & CData::create | ( | tConstDataPtr | pData, |
| tSize | Size | ||
| ) |
Allocates memory and copies the specified data.
| CData< T > & mds::base::CData< T >::create | ( | const CData< T > & | Data | ) |
Allocates memory and copies the specified data.
| CData< T > & CData::fill | ( | const tData & | Value | ) |
Fills the entire data.
| Function mds::base::CData< T >::forEach | ( | Function | Func | ) |
| Function mds::base::CData< T >::forEach | ( | Function | Func | ) | const |
| Function mds::base::CData< T >::forEach | ( | Function | Func | ) |
Calls function object for every element.
| Function mds::base::CData< T >::forEach | ( | Function | Func | ) | const |
Calls function object for every element.
| Function mds::base::CData< T >::forRange | ( | tSize | i, |
| tSize | j, | ||
| Function | Func | ||
| ) |
Calls function object for all elements in the range <i, j>.
| Function mds::base::CData< T >::forRange | ( | tSize | i, |
| tSize | j, | ||
| Function | Func | ||
| ) |
| Function mds::base::CData< T >::forRange | ( | tSize | i, |
| tSize | j, | ||
| Function | Func | ||
| ) | const |
Calls function object for all elements in the range <i, j>.
| Function mds::base::CData< T >::forRange | ( | tSize | i, |
| tSize | j, | ||
| Function | Func | ||
| ) | const |
| tDataPtr mds::base::CData< T >::getPtr | ( | tSize | i | ) |
Returns pointer to the element [i].
Reimplemented in mds::img::CKernel1D.
| tConstDataPtr mds::base::CData< T >::getPtr | ( | tSize | i | ) | const |
Reimplemented in mds::img::CKernel1D.
| tDataPtr mds::base::CData< T >::getPtr | ( | ) |
Returns pointer to the data.
Reimplemented in mds::img::CKernel3D, mds::img::CKernel2D, and mds::img::CKernel1D.
| tConstDataPtr mds::base::CData< T >::getPtr | ( | ) | const |
Reimplemented in mds::img::CKernel3D, mds::img::CKernel2D, and mds::img::CKernel1D.
| tSize mds::base::CData< T >::getSize | ( | ) | const |
Returns size of the data.
Reimplemented in mds::img::CKernel3D, mds::img::CKernel2D, mds::img::CGaussFilter< I >, mds::img::CGaussFilter< tImage >, mds::img::CGaussFilter< CFImage >, and mds::img::CKernel1D.
| bool mds::base::CData< T >::isWithinBlock | ( | tSize | i, |
| tSize | j | ||
| ) | const |
Returns true if the specified range of elements lie within a continuous block of memory.
| tData& mds::base::CData< T >::operator() | ( | tSize | i | ) |
Returns reference to the subscripted element [i].
Reimplemented in mds::img::CKernel1D.
| const tData& mds::base::CData< T >::operator() | ( | tSize | i | ) | const |
Reimplemented in mds::img::CKernel1D.
| CData& mds::base::CData< T >::set | ( | tSize | i, |
| const T & | Value | ||
| ) |
Sets the element of matrix at the position [i].
tDataPtr mds::base::CData< T >::m_pData [protected] |
Pointer to the allocated data.
tSize mds::base::CData< T >::m_Size [protected] |
Size of the allocated data.
1.7.6.1