libmoost
moost::utils::scope_exit::basic_scope_exit< policyT > Struct Template Reference

This is the basic scope exit class, used when supplying custom policies. More...

#include <scope_exit.hpp>

List of all members.

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_exitoperator= (policy_t const &exit_policy)
void cancel (bool cancel=true)
bool is_cancelled () const
policy_toperator* ()
policy_t const & operator* () const
policy_toperator-> ()
policy_t const * operator-> () const
 ~basic_scope_exit ()

Private Attributes

policy_t exit_policy_
bool cancel_

Detailed Description

template<typename policyT>
struct moost::utils::scope_exit::basic_scope_exit< policyT >

This is the basic scope exit class, used when supplying custom policies.

Definition at line 321 of file scope_exit.hpp.


Member Typedef Documentation

template<typename policyT >
typedef policyT moost::utils::scope_exit::basic_scope_exit< policyT >::policy_t

Definition at line 323 of file scope_exit.hpp.

template<typename policyT >
typedef policy_t::policy_type moost::utils::scope_exit::basic_scope_exit< policyT >::policy_type

Definition at line 324 of file scope_exit.hpp.

template<typename policyT >
typedef policy_t::scoped_type moost::utils::scope_exit::basic_scope_exit< policyT >::scoped_type

Definition at line 325 of file scope_exit.hpp.


Constructor & Destructor Documentation

template<typename policyT >
template<typename scoped_typeT >
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.

template<typename policyT >
template<typename scoped_typeT >
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.

template<typename policyT >
template<typename scoped_typeT , typename policy_dataT >
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.

template<typename policyT >
template<typename scoped_typeT , typename policy_dataT >
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.

template<typename policyT >
template<typename scoped_typeT , typename policy_dataT >
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.

template<typename policyT >
template<typename scoped_typeT , typename policy_dataT >
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.

template<typename policyT >
moost::utils::scope_exit::basic_scope_exit< policyT >::~basic_scope_exit ( ) [inline]

Definition at line 398 of file scope_exit.hpp.


Member Function Documentation

template<typename policyT >
void moost::utils::scope_exit::basic_scope_exit< policyT >::cancel ( bool  cancel = true) [inline]

Definition at line 368 of file scope_exit.hpp.

Here is the caller graph for this function:

template<typename policyT >
bool moost::utils::scope_exit::basic_scope_exit< policyT >::is_cancelled ( ) const [inline]

Definition at line 373 of file scope_exit.hpp.

template<typename policyT >
policy_t& moost::utils::scope_exit::basic_scope_exit< policyT >::operator* ( ) [inline]

Definition at line 378 of file scope_exit.hpp.

template<typename policyT >
policy_t const& moost::utils::scope_exit::basic_scope_exit< policyT >::operator* ( ) const [inline]

Definition at line 383 of file scope_exit.hpp.

template<typename policyT >
policy_t* moost::utils::scope_exit::basic_scope_exit< policyT >::operator-> ( ) [inline]

Definition at line 388 of file scope_exit.hpp.

template<typename policyT >
policy_t const* moost::utils::scope_exit::basic_scope_exit< policyT >::operator-> ( ) const [inline]

Definition at line 393 of file scope_exit.hpp.

template<typename policyT >
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.


Member Data Documentation

template<typename policyT >
bool moost::utils::scope_exit::basic_scope_exit< policyT >::cancel_ [private]

Definition at line 409 of file scope_exit.hpp.

template<typename policyT >
policy_t moost::utils::scope_exit::basic_scope_exit< policyT >::exit_policy_ [private]

Definition at line 408 of file scope_exit.hpp.


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