libmoost
|
This is the basic scope exit class, used when supplying custom policies. More...
#include <scope_exit.hpp>
Public Types | |
typedef policyT | policy_t |
typedef policy_t::policy_type | policy_type |
typedef policy_t::scoped_type | scoped_type |
Public Member Functions | |
template<typename scoped_typeT > | |
basic_scope_exit (scoped_typeT &scoped) | |
template<typename scoped_typeT > | |
basic_scope_exit (scoped_typeT const &scoped) | |
template<typename scoped_typeT , typename policy_dataT > | |
basic_scope_exit (scoped_typeT &scoped, policy_dataT &policy_data) | |
template<typename scoped_typeT , typename policy_dataT > | |
basic_scope_exit (scoped_typeT const &scoped, policy_dataT &policy_data) | |
template<typename scoped_typeT , typename policy_dataT > | |
basic_scope_exit (scoped_typeT &scoped, policy_dataT const &policy_data) | |
template<typename scoped_typeT , typename policy_dataT > | |
basic_scope_exit (scoped_typeT const &scoped, policy_dataT const &policy_data) | |
basic_scope_exit & | operator= (policy_t const &exit_policy) |
void | cancel (bool cancel=true) |
bool | is_cancelled () const |
policy_t & | operator* () |
policy_t const & | operator* () const |
policy_t * | operator-> () |
policy_t const * | operator-> () const |
~basic_scope_exit () | |
Private Attributes | |
policy_t | exit_policy_ |
bool | cancel_ |
This is the basic scope exit class, used when supplying custom policies.
Definition at line 321 of file scope_exit.hpp.
typedef policyT moost::utils::scope_exit::basic_scope_exit< policyT >::policy_t |
Definition at line 323 of file scope_exit.hpp.
typedef policy_t::policy_type moost::utils::scope_exit::basic_scope_exit< policyT >::policy_type |
Definition at line 324 of file scope_exit.hpp.
typedef policy_t::scoped_type moost::utils::scope_exit::basic_scope_exit< policyT >::scoped_type |
Definition at line 325 of file scope_exit.hpp.
moost::utils::scope_exit::basic_scope_exit< policyT >::basic_scope_exit | ( | scoped_typeT & | scoped | ) | [inline, explicit] |
Definition at line 328 of file scope_exit.hpp.
moost::utils::scope_exit::basic_scope_exit< policyT >::basic_scope_exit | ( | scoped_typeT const & | scoped | ) | [inline, explicit] |
Definition at line 334 of file scope_exit.hpp.
moost::utils::scope_exit::basic_scope_exit< policyT >::basic_scope_exit | ( | scoped_typeT & | scoped, |
policy_dataT & | policy_data | ||
) | [inline] |
Definition at line 340 of file scope_exit.hpp.
moost::utils::scope_exit::basic_scope_exit< policyT >::basic_scope_exit | ( | scoped_typeT const & | scoped, |
policy_dataT & | policy_data | ||
) | [inline] |
Definition at line 346 of file scope_exit.hpp.
moost::utils::scope_exit::basic_scope_exit< policyT >::basic_scope_exit | ( | scoped_typeT & | scoped, |
policy_dataT const & | policy_data | ||
) | [inline] |
Definition at line 352 of file scope_exit.hpp.
moost::utils::scope_exit::basic_scope_exit< policyT >::basic_scope_exit | ( | scoped_typeT const & | scoped, |
policy_dataT const & | policy_data | ||
) | [inline] |
Definition at line 358 of file scope_exit.hpp.
moost::utils::scope_exit::basic_scope_exit< policyT >::~basic_scope_exit | ( | ) | [inline] |
Definition at line 398 of file scope_exit.hpp.
void moost::utils::scope_exit::basic_scope_exit< policyT >::cancel | ( | bool | cancel = true | ) | [inline] |
bool moost::utils::scope_exit::basic_scope_exit< policyT >::is_cancelled | ( | ) | const [inline] |
Definition at line 373 of file scope_exit.hpp.
policy_t& moost::utils::scope_exit::basic_scope_exit< policyT >::operator* | ( | ) | [inline] |
Definition at line 378 of file scope_exit.hpp.
policy_t const& moost::utils::scope_exit::basic_scope_exit< policyT >::operator* | ( | ) | const [inline] |
Definition at line 383 of file scope_exit.hpp.
policy_t* moost::utils::scope_exit::basic_scope_exit< policyT >::operator-> | ( | ) | [inline] |
Definition at line 388 of file scope_exit.hpp.
policy_t const* moost::utils::scope_exit::basic_scope_exit< policyT >::operator-> | ( | ) | const [inline] |
Definition at line 393 of file scope_exit.hpp.
basic_scope_exit& moost::utils::scope_exit::basic_scope_exit< policyT >::operator= | ( | policy_t const & | exit_policy | ) | [inline] |
Definition at line 363 of file scope_exit.hpp.
bool moost::utils::scope_exit::basic_scope_exit< policyT >::cancel_ [private] |
Definition at line 409 of file scope_exit.hpp.
policy_t moost::utils::scope_exit::basic_scope_exit< policyT >::exit_policy_ [private] |
Definition at line 408 of file scope_exit.hpp.