Health-GPS 3.0.0.0
Global Health Policy Simulation model (Health-GPS)
Loading...
Searching...
No Matches
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.
 Finally (const Finally &)=delete
 Finally (Finally &&)=delete
Finally & operator= (const Finally &)=delete
Finally & operator= (Finally &&)=delete
 ~Finally ()
 Destroys a Finally instance.

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
Here is the caller graph for this function:

◆ Finally() [2/3]

template<typename F>
hgps::Finally< F >::Finally ( const Finally< F > & )
delete
Here is the call graph for this function:

◆ Finally() [3/3]

template<typename F>
hgps::Finally< F >::Finally ( Finally< F > && )
delete
Here is the call graph for this function:

◆ ~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
Here is the call graph for this function:

◆ operator=() [2/2]

template<typename F>
Finally & hgps::Finally< F >::operator= ( Finally< F > && )
delete
Here is the call graph for this function:

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