Public Member Functions | Public Attributes | List of all members
CRT::ChannelView::MaybeDeleter< T > Struct Template Reference

Public Member Functions

 MaybeDeleter (const bool toDelete)
 
void operator() (T *obj) const
 

Public Attributes

const bool fDeleteMe
 

Detailed Description

template<class T>
struct CRT::ChannelView::MaybeDeleter< T >

Definition at line 51 of file ChannelView.h.

Constructor & Destructor Documentation

template<class T >
CRT::ChannelView::MaybeDeleter< T >::MaybeDeleter ( const bool  toDelete)
inline

Definition at line 53 of file ChannelView.h.

53 : fDeleteMe(toDelete) {}

Member Function Documentation

template<class T >
void CRT::ChannelView::MaybeDeleter< T >::operator() ( T *  obj) const
inline

Definition at line 55 of file ChannelView.h.

56  {
57  if(fDeleteMe) delete obj;
58  }

Member Data Documentation

template<class T >
const bool CRT::ChannelView::MaybeDeleter< T >::fDeleteMe

Definition at line 60 of file ChannelView.h.


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