Health-GPS  1.2.2.0
Global Health Policy Simulation model (Health-GPS)
hgps::Finally< F > Class Template Reference

Define a scoped reset state data type. More...

#include <finally.h>

Public Member Functions

template<typename Func >
 Finally (Func &&func)
 Initialises a new instance of the Finally class. More...
 
 Finally (const Finally &)=delete
 
 Finally (Finally &&)=delete
 
Finallyoperator= (const Finally &)=delete
 
Finallyoperator= (Finally &&)=delete
 
 ~Finally ()
 Destroys a Finally instance. More...
 

Detailed Description

template<typename F>
class hgps::Finally< F >

Define a scoped reset state data type.

Template Parameters
FThe function to reset

Constructor & Destructor Documentation

◆ Finally() [1/3]

template<typename F >
template<typename Func >
hgps::Finally< F >::Finally ( Func &&  func)
inline

Initialises a new instance of the Finally class.

Template Parameters
FuncFunctor type
Parameters
funcThe functor instance

◆ Finally() [2/3]

template<typename F >
hgps::Finally< F >::Finally ( const Finally< F > &  )
delete

◆ Finally() [3/3]

template<typename F >
hgps::Finally< F >::Finally ( Finally< F > &&  )
delete

◆ ~Finally()

template<typename F >
hgps::Finally< F >::~Finally ( )
inline

Destroys a Finally instance.

Member Function Documentation

◆ operator=() [1/2]

template<typename F >
Finally& hgps::Finally< F >::operator= ( const Finally< F > &  )
delete

◆ operator=() [2/2]

template<typename F >
Finally& hgps::Finally< F >::operator= ( Finally< F > &&  )
delete

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