MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Public Member Functions | Public Attributes
mds::base::CPartedData< T >::SRefInfo Struct Reference

Structure containing information on allocated data and the number of references. More...

#include <mdsPartedData.h>

List of all members.

Public Member Functions

void resize (tSize Size)
 Resizes the data.
 SRefInfo (tSize Size)
 Constructor that allocates a given size of data.
 ~SRefInfo ()
 Destructor deallocates all the data blocks.

Public Attributes

int m_iReferences
 The number of references to the data.
tSize m_NumOfBlocks
 Number of data blocks.
tDataBlocks m_ppData
 Pointers to the allocated data blocks.
tSize m_Size
 Total size of the allocated data.

Detailed Description

template<typename T>
struct mds::base::CPartedData< T >::SRefInfo

Structure containing information on allocated data and the number of references.


Constructor & Destructor Documentation

template<typename T >
CPartedData::SRefInfo::SRefInfo ( tSize  Size)

Constructor that allocates a given size of data.

  • Allocation of the zero size data is allowed.
template<typename T >
CPartedData::SRefInfo::~SRefInfo ( )

Destructor deallocates all the data blocks.


Member Function Documentation

template<typename T >
void CPartedData::SRefInfo::resize ( tSize  Size)

Resizes the data.

  • Function doesn't take care of the number of references.

Member Data Documentation

template<typename T >
int mds::base::CPartedData< T >::SRefInfo::m_iReferences

The number of references to the data.

  • Zero if there is no reference.

Number of data blocks.

Pointers to the allocated data blocks.

template<typename T >
tSize mds::base::CPartedData< T >::SRefInfo::m_Size

Total size of the allocated data.


The documentation for this struct was generated from the following files: