libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
crn::Destroyer Class Reference

An objects that calls a functor when destroyed. More...

#include <CRNAtScopeExit.h>

Public Member Functions

 Destroyer (const std::function< void(void)> &f)
 Constructor. More...
 
 Destroyer (std::function< void(void)> &&f)
 Constructor. More...
 
 ~Destroyer ()
 Destructor that calls the functor. More...
 

Detailed Description

An objects that calls a functor when destroyed.

Definition at line 32 of file CRNAtScopeExit.h.

Constructor & Destructor Documentation

crn::Destroyer::Destroyer ( const std::function< void(void)> &  f)
inline

Constructor.

Parameters
[in]fthe functor that will be called when the object is destroyed

Definition at line 38 of file CRNAtScopeExit.h.

crn::Destroyer::Destroyer ( std::function< void(void)> &&  f)
inline

Constructor.

Parameters
[in]fthe functor that will be called when the object is destroyed

Definition at line 42 of file CRNAtScopeExit.h.

crn::Destroyer::~Destroyer ( )
inline

Destructor that calls the functor.

Definition at line 44 of file CRNAtScopeExit.h.


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