Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
us::TrackedTypeTraitsBase< T, TTT > Struct Template Reference

#include <usServiceTracker.h>

Inheritance diagram for us::TrackedTypeTraitsBase< T, TTT >:

Public Types

typedef T TrackedType
 

Static Public Member Functions

static TrackedType ConvertToTrackedType (const InterfaceMap &)
 
static TrackedType ConvertToTrackedType (void *)
 

Detailed Description

template<class T, class TTT>
struct us::TrackedTypeTraitsBase< T, TTT >

A base class template for type traits for objects tracked by a ServiceTracker instance. It provides the TrackedType typedef and two dummy method definitions.

Tracked type traits (TTT) classes must additionally provide the following methods:

  • static bool IsValid(const TrackedType& t) Returns true if t is a valid object, false otherwise.
  • static void Dispose(TrackedType& t) Clears any resources held by the tracked object t.
  • static TrackedType DefaultValue() Returns the default value for newly created tracked objects.
Template Parameters
TThe type of the tracked object.
TTTThe tracked type traits class deriving from this class.
See also
ServiceTracker

Definition at line 60 of file usServiceTracker.h.

Member Typedef Documentation

template<class T, class TTT>
typedef T us::TrackedTypeTraitsBase< T, TTT >::TrackedType

Definition at line 62 of file usServiceTracker.h.

Member Function Documentation

template<class T, class TTT>
static TrackedType us::TrackedTypeTraitsBase< T, TTT >::ConvertToTrackedType ( const InterfaceMap )
inlinestatic

Definition at line 65 of file usServiceTracker.h.

template<class T, class TTT>
static TrackedType us::TrackedTypeTraitsBase< T, TTT >::ConvertToTrackedType ( void *  )
inlinestatic

Definition at line 72 of file usServiceTracker.h.


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