creaImageIO_lib
creaImageIO::ImagePointerHolder Class Reference

#include <creaImageIOImagePointerHolder.h>

Public Member Functions

 ImagePointerHolder (vtkImageData *im)
 
 ImagePointerHolder ()
 
void Set (vtkImageData *im)
 
vtkImageData * Get ()
 

Private Attributes

vtkImageData * mImage
 
boost::mutex mMutex
 The mutex. More...
 

Detailed Description

Definition at line 39 of file creaImageIOImagePointerHolder.h.

Constructor & Destructor Documentation

creaImageIO::ImagePointerHolder::ImagePointerHolder ( vtkImageData *  im)
inline

Definition at line 42 of file creaImageIOImagePointerHolder.h.

43  :
44  mImage(im)
{}
creaImageIO::ImagePointerHolder::ImagePointerHolder ( )

Member Function Documentation

vtkImageData* creaImageIO::ImagePointerHolder::Get ( )
inline

Definition at line 47 of file creaImageIOImagePointerHolder.h.

References mImage, and mMutex.

47 {boost::mutex::scoped_lock lock(mMutex);return mImage;}
void creaImageIO::ImagePointerHolder::Set ( vtkImageData *  im)
inline

Definition at line 46 of file creaImageIOImagePointerHolder.h.

References mImage, and mMutex.

46 {boost::mutex::scoped_lock lock(mMutex);mImage=im;}

Member Data Documentation

vtkImageData* creaImageIO::ImagePointerHolder::mImage
private

Definition at line 49 of file creaImageIOImagePointerHolder.h.

Referenced by Get(), and Set().

boost::mutex creaImageIO::ImagePointerHolder::mMutex
private

The mutex.

Definition at line 51 of file creaImageIOImagePointerHolder.h.

Referenced by Get(), and Set().


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