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

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

#include <mdsRefData.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.

Public Attributes

int m_iReferences
 The number of references to the data.
tDataPtr m_pData
 Pointer to the allocated data.
tSize m_Size
 Size of the allocated data.

Detailed Description

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

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


Constructor & Destructor Documentation

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

Constructor that allocates a given size of data.

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

Destructor.

  • Deallocates the data.

Member Function Documentation

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

Resizes the data.

  • Function doesn't check the number of references.

Member Data Documentation

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

The number of references to the data.

  • Zero if there is no reference.
template<typename T >
tDataPtr mds::base::CRefData< T >::SRefInfo::m_pData

Pointer to the allocated data.

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

Size of the allocated data.


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