NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Macros
itkNifTKMacro.h File Reference
Include dependency graph for itkNifTKMacro.h:

Go to the source code of this file.

Macros

#define itkThreadSafeGetConstMacro(name, type)
 Assumes the presence of an itk::FastMutexLock::Pointer variable called m_Mutex and a member variable m_"name" and generates a type Get"name"() const method. More...
 
#define itkThreadSafeSetMacro(name, type)
 Assumes the presence of an itk::FastMutexLock::Pointer variable called m_Mutex and a member variable m_"name" and generates a type Get"name"() const method. More...
 

Macro Definition Documentation

#define itkThreadSafeGetConstMacro (   name,
  type 
)
Value:
virtual type Get##name () const \
{ \
itkDebugMacro("returning " << #name " of " << this->m_##name ); \
itk::MutexLockHolder<itk::FastMutexLock> lock(*this->m_Mutex); \
return this->m_##name; \
}
GLuint GLuint GLsizei GLenum type
Definition: glew.h:1237
GLuint const GLchar * name
Definition: glew.h:1798

Assumes the presence of an itk::FastMutexLock::Pointer variable called m_Mutex and a member variable m_"name" and generates a type Get"name"() const method.

#define itkThreadSafeSetMacro (   name,
  type 
)
Value:
virtual void Set##name (const type _arg) \
{ \
itkDebugMacro("setting " #name " to " << _arg); \
if (this->m_##name != _arg) \
{ \
itk::MutexLockHolder<itk::FastMutexLock> lock(*this->m_Mutex); \
this->m_##name = _arg; \
this->Modified(); \
} \
}
GLuint GLuint GLsizei GLenum type
Definition: glew.h:1237
GLuint const GLchar * name
Definition: glew.h:1798

Assumes the presence of an itk::FastMutexLock::Pointer variable called m_Mutex and a member variable m_"name" and generates a type Get"name"() const method.