Medical Imaging Interaction Toolkit  2021.02.99-540f9ce6
Medical Imaging Interaction Toolkit
mitk::CoreServicePointer< S > Class Template Reference

A RAII helper class for core service objects. More...

#include <mitkCoreServices.h>

Inheritance diagram for mitk::CoreServicePointer< S >:

Public Member Functions

 CoreServicePointer (S *service, us::ModuleContext *context=us::GetModuleContext())
 ~CoreServicePointer ()
S * operator-> () const

Detailed Description

template<class S>
class mitk::CoreServicePointer< S >

A RAII helper class for core service objects.

This is class is intended for usage in local scopes; it calls CoreServices::Unget(S*) in its destructor. You should not construct multiple CoreServicePointer instances using the same service pointer, unless it is retrieved by a new call to a CoreServices getter method.

See also

Definition at line 141 of file mitkCoreServices.h.

Constructor & Destructor Documentation

◆ CoreServicePointer()

template<class S>
mitk::CoreServicePointer< S >::CoreServicePointer ( S *  service,
us::ModuleContext *  context = us::GetModuleContext() 

Definition at line 144 of file mitkCoreServices.h.

◆ ~CoreServicePointer()

template<class S>
mitk::CoreServicePointer< S >::~CoreServicePointer ( )

Definition at line 151 of file mitkCoreServices.h.

Member Function Documentation

◆ operator->()

template<class S>
S* mitk::CoreServicePointer< S >::operator-> ( ) const

Definition at line 167 of file mitkCoreServices.h.

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