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

Public Types | |
| enum | { MAX_SIZE = M } |
| Maximal allowed size of the memory block. More... | |
| 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 | |
| T & | at (tSize i) |
| Returns reference to the element [i]. | |
| const T & | at (tSize i) const |
| CStaticData & | create (tSize Size) |
| Creates data of a given size. | |
| CStaticData & | create (tConstDataPtr pData, tSize Size) |
| Copies the specified data. | |
| CStaticData & | create (const CStaticData &Data) |
| Allocates memory and copies the specified data. | |
| CStaticData () | |
| Default constructor initializes length of the data to MAX_SIZE. | |
| CStaticData (EEmptyConst) | |
| This constructor does noething. | |
| CStaticData (tSize Size) | |
| Constructor initializes size of data. | |
| CStaticData (tConstDataPtr pData, tSize Size) | |
| Constructor that copies a specified data. | |
| CStaticData (const CStaticData &Data) | |
| Constructor copies a given data. | |
| CStaticData & | fill (const tData &Value) |
| Initializes the data. | |
| template<class Function > | |
| Function | forEach (Function Func) |
| 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 | forEach (Function Func) const |
| template<class Function > | |
| Function | forRange (tSize i, tSize j, Function Func) |
| Calls function object for every element. | |
| template<class Function > | |
| Function | forRange (tSize i, tSize j, Function Func) const |
| Calls function object for every element. | |
| template<class Function > | |
| Function | forRange (tSize i, tSize j, Function Func) |
| template<class Function > | |
| Function | forRange (tSize i, tSize j, Function Func) const |
| T * | getPtr (tSize i) |
| Returns pointer to the element [i]. | |
| const T * | getPtr (tSize i) const |
| T * | getPtr () |
| Returns pointer to the data. | |
| const T * | getPtr () const |
| tSize | getSize () const |
| Returns current data size. | |
| bool | isWithinBlock (tSize i, tSize j) const |
| Returns true if the specified range of elements lie within a continuous block of memory. | |
| T & | operator() (tSize i) |
| Returns reference to the subscripted element [i]. | |
| const T & | operator() (tSize i) const |
| CStaticData & | operator= (const CStaticData &Data) |
| Assignment operator. | |
| CStaticData & | set (tSize i, const T &Value) |
| Sets the element of matrix at the position [i]. | |
| ~CStaticData () | |
| Destructor. | |
Protected Attributes | |
| tData | m_pData [M] |
| Statically allocated data. | |
| tSize | m_Size |
| Current size. | |
Class template providing data allocation.
| typedef CDataAllocator<T> mds::base::CStaticData< T, M >::base |
| typedef base::tConstData mds::base::CStaticData< T, M >::tConstData |
Const data type.
Reimplemented from mds::base::CDataAllocator< T >.
| typedef base::tConstDataPtr mds::base::CStaticData< T, M >::tConstDataPtr |
Pointer to the constant data.
Reimplemented from mds::base::CDataAllocator< T >.
| typedef base::tData mds::base::CStaticData< T, M >::tData |
Data type.
Reimplemented from mds::base::CDataAllocator< T >.
| typedef base::tDataPtr mds::base::CStaticData< T, M >::tDataPtr |
Pointer to the data.
Reimplemented from mds::base::CDataAllocator< T >.
| anonymous enum |
| CStaticData::CStaticData | ( | ) |
Default constructor initializes length of the data to MAX_SIZE.
| CStaticData::CStaticData | ( | EEmptyConst | ) | [explicit] |
This constructor does noething.
| CStaticData::CStaticData | ( | tSize | Size | ) | [explicit] |
Constructor initializes size of data.
| CStaticData::CStaticData | ( | tConstDataPtr | pData, |
| tSize | Size | ||
| ) |
Constructor that copies a specified data.
| mds::base::CStaticData< T, M >::CStaticData | ( | const CStaticData< T, M > & | Data | ) |
Constructor copies a given data.
| CStaticData::~CStaticData | ( | ) |
Destructor.
| T& mds::base::CStaticData< T, M >::at | ( | tSize | i | ) |
Returns reference to the element [i].
| const T& mds::base::CStaticData< T, M >::at | ( | tSize | i | ) | const |
| CStaticData< T, M > & CStaticData::create | ( | tSize | Size | ) |
Creates data of a given size.
| CStaticData< T, M > & CStaticData::create | ( | tConstDataPtr | pData, |
| tSize | Size | ||
| ) |
Copies the specified data.
| CStaticData< T, M > & mds::base::CStaticData< T, M >::create | ( | const CStaticData< T, M > & | Data | ) |
Allocates memory and copies the specified data.
| CStaticData< T, M > & CStaticData::fill | ( | const tData & | Value | ) |
Initializes the data.
| Function mds::base::CStaticData< T, M >::forEach | ( | Function | Func | ) |
| Function mds::base::CStaticData< T, M >::forEach | ( | Function | Func | ) |
Calls function object for every element.
| Function mds::base::CStaticData< T, M >::forEach | ( | Function | Func | ) | const |
Calls function object for every element.
| Function mds::base::CStaticData< T, M >::forEach | ( | Function | Func | ) | const |
| Function mds::base::CStaticData< T, M >::forRange | ( | tSize | i, |
| tSize | j, | ||
| Function | Func | ||
| ) |
Calls function object for every element.
| Function mds::base::CStaticData< T, M >::forRange | ( | tSize | i, |
| tSize | j, | ||
| Function | Func | ||
| ) | const |
Calls function object for every element.
| Function mds::base::CStaticData< T, M >::forRange | ( | tSize | i, |
| tSize | j, | ||
| Function | Func | ||
| ) |
| Function mds::base::CStaticData< T, M >::forRange | ( | tSize | i, |
| tSize | j, | ||
| Function | Func | ||
| ) | const |
| T* mds::base::CStaticData< T, M >::getPtr | ( | tSize | i | ) |
Returns pointer to the element [i].
| const T* mds::base::CStaticData< T, M >::getPtr | ( | tSize | i | ) | const |
| T* mds::base::CStaticData< T, M >::getPtr | ( | ) |
Returns pointer to the data.
| const T* mds::base::CStaticData< T, M >::getPtr | ( | ) | const |
| tSize mds::base::CStaticData< T, M >::getSize | ( | ) | const |
Returns current data size.
| bool mds::base::CStaticData< T, M >::isWithinBlock | ( | tSize | i, |
| tSize | j | ||
| ) | const |
Returns true if the specified range of elements lie within a continuous block of memory.
| T& mds::base::CStaticData< T, M >::operator() | ( | tSize | i | ) |
Returns reference to the subscripted element [i].
| const T& mds::base::CStaticData< T, M >::operator() | ( | tSize | i | ) | const |
| CStaticData< T, M > & CStaticData::operator= | ( | const CStaticData< T, M > & | Data | ) |
Assignment operator.
| CStaticData& mds::base::CStaticData< T, M >::set | ( | tSize | i, |
| const T & | Value | ||
| ) |
Sets the element of matrix at the position [i].
tData mds::base::CStaticData< T, M >::m_pData[M] [protected] |
Statically allocated data.
tSize mds::base::CStaticData< T, M >::m_Size [protected] |
Current size.
1.7.6.1