HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TfScoped< void(*)(T *)> Class Template Reference

#include <scoped.h>

Public Types

typedef void(* Procedure )(T *)
 The type of the function executed on destruction. More...
 

Public Member Functions

 TfScoped (const Procedure &leave, T *obj)
 Execute leave, passing obj, when this object goes out of scope. More...
 
 ~TfScoped ()
 

Detailed Description

template<typename T>
class TfScoped< void(*)(T *)>

Definition at line 97 of file scoped.h.

Member Typedef Documentation

template<typename T >
typedef void(* TfScoped< void(*)(T *)>::Procedure)(T *)

The type of the function executed on destruction.

Definition at line 102 of file scoped.h.

Constructor & Destructor Documentation

template<typename T >
TfScoped< void(*)(T *)>::TfScoped ( const Procedure leave,
T obj 
)
inlineexplicit

Execute leave, passing obj, when this object goes out of scope.

Definition at line 105 of file scoped.h.

template<typename T >
TfScoped< void(*)(T *)>::~TfScoped ( )
inline

Definition at line 108 of file scoped.h.


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