libmoost
moost::utils::scope_exit::type< scopedT > Struct Template Reference

This is the general scope exit class, with the various policies ready for use. More...

#include <scope_exit.hpp>

List of all members.

Public Types

typedef basic_scope_exit
< policy::set_default_value
< scopedT > > 
set_default_value
 when scoped exits set scoped member to a default constructed value
typedef basic_scope_exit
< policy::set_specific_value
< scopedT > > 
set_specific_value
 when scoped exits set scoped member to a specific value
typedef basic_scope_exit
< policy::restore_original_value
< scopedT > > 
restore_original_value
 when scoped exits set scoped member to its original value
typedef basic_scope_exit
< policy::call_member_function
< scopedT > > 
call_member_function
 when scoped exits call a member function and pass it scoped member
typedef basic_scope_exit
< policy::call_free_function_with_val
< scopedT > > 
call_free_function_with_val
 when scoped exits call a free function and pass it scoped member by value
typedef basic_scope_exit
< policy::call_free_function_with_ref
< scopedT > > 
call_free_function_with_ref
 when scoped exits call a free function and pass it scoped member by reference
typedef basic_scope_exit
< policy::free_malloc< scopedT > > 
free_malloc
 when scoped exits call free on the scoped member (which must be a pointer pointing to malloc/realloc'd memory)

Private Member Functions

 type ()

Detailed Description

template<typename scopedT>
struct moost::utils::scope_exit::type< scopedT >

This is the general scope exit class, with the various policies ready for use.

Definition at line 418 of file scope_exit.hpp.


Member Typedef Documentation

when scoped exits call a free function and pass it scoped member by reference

Definition at line 436 of file scope_exit.hpp.

when scoped exits call a free function and pass it scoped member by value

Definition at line 433 of file scope_exit.hpp.

template<typename scopedT>
typedef basic_scope_exit<policy::call_member_function<scopedT> > moost::utils::scope_exit::type< scopedT >::call_member_function

when scoped exits call a member function and pass it scoped member

Definition at line 430 of file scope_exit.hpp.

template<typename scopedT>
typedef basic_scope_exit<policy::free_malloc<scopedT> > moost::utils::scope_exit::type< scopedT >::free_malloc

when scoped exits call free on the scoped member (which must be a pointer pointing to malloc/realloc'd memory)

Definition at line 439 of file scope_exit.hpp.

when scoped exits set scoped member to its original value

Definition at line 427 of file scope_exit.hpp.

template<typename scopedT>
typedef basic_scope_exit<policy::set_default_value<scopedT> > moost::utils::scope_exit::type< scopedT >::set_default_value

when scoped exits set scoped member to a default constructed value

Definition at line 421 of file scope_exit.hpp.

template<typename scopedT>
typedef basic_scope_exit<policy::set_specific_value<scopedT> > moost::utils::scope_exit::type< scopedT >::set_specific_value

when scoped exits set scoped member to a specific value

Definition at line 424 of file scope_exit.hpp.


Constructor & Destructor Documentation

template<typename scopedT>
moost::utils::scope_exit::type< scopedT >::type ( ) [private]

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