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

Structure containing number of references to the image. More...

#include <mdsCvImageRef.h>

List of all members.

Public Member Functions

void addReference () const
 Increases the number of references.
bool delReference ()
 Decreases the number of references.
 SRefInfo (int NumOfRefs=1)
 Constructor that initializes the number of references.
 ~SRefInfo ()
 Empty destructor.

Public Attributes

int m_iReferences
 The number of references to the image.

Detailed Description

template<typename T>
struct mds::img::CvImageRef< T >::SRefInfo

Structure containing number of references to the image.


Constructor & Destructor Documentation

template<typename T >
mds::img::CvImageRef< T >::SRefInfo::SRefInfo ( int  NumOfRefs = 1)

Constructor that initializes the number of references.

template<typename T >
mds::img::CvImageRef< T >::SRefInfo::~SRefInfo ( )

Empty destructor.


Member Function Documentation

template<typename T >
void mds::img::CvImageRef< T >::SRefInfo::addReference ( ) const

Increases the number of references.

template<typename T >
bool mds::img::CvImageRef< T >::SRefInfo::delReference ( )

Decreases the number of references.

  • Returns true if the final number of references is equal to zero, thus the object must be deleted.

Member Data Documentation

template<typename T >
int mds::img::CvImageRef< T >::SRefInfo::m_iReferences [mutable]

The number of references to the image.

  • Zero if there is no reference.

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