SourcePro® API Reference Guide

 
List of all members | Public Member Functions | Protected Member Functions | Private Member Functions
RWScopeGuardImp Class Reference

Base class for derived RWScopeGuardImp classes. More...

#include <rw/tools/scopeguard.h>

Inheritance diagram for RWScopeGuardImp:
RWScopeGuard0GImp< Fun > RWScopeGuard0MImp< Obj, Fun > RWScopeGuard1GImp< Fun, P1 > RWScopeGuard1MImp< Obj, Fun, P1 > RWScopeGuard2GImp< Fun, P1, P2 > RWScopeGuard2MImp< Obj, Fun, P1, P2 > RWScopeGuard3GImp< Fun, P1, P2, P3 > RWScopeGuard3MImp< Obj, Fun, P1, P2, P3 > RWScopeGuard4GImp< Fun, P1, P2, P3, P4 > RWScopeGuard4MImp< Obj, Fun, P1, P2, P3, P4 > RWScopeGuard5GImp< Fun, P1, P2, P3, P4, P5 > RWScopeGuard5MImp< Obj, Fun, P1, P2, P3, P4, P5 >

Public Member Functions

void dismiss () const
 

Protected Member Functions

 RWScopeGuardImp ()
 
 RWScopeGuardImp (const RWScopeGuardImp &other)
 

Private Member Functions

RWScopeGuardImpoperator= (const RWScopeGuardImp &)
 

Detailed Description

Base class for derived RWScopeGuardImp classes. This class should not be used directly; rather, use the typedef RWScopeGuard and the rwtMakeScopeGuardG() or rwtMakeScopeGuardM() convenience functions.

See also
RWScopeGuard

Constructor & Destructor Documentation

RWScopeGuardImp::RWScopeGuardImp ( )
inlineprotected

Default constructor

RWScopeGuardImp::RWScopeGuardImp ( const RWScopeGuardImp other)
inlineprotected

Copy constructor. Transfers responsibility for invoking the associated action to self, and dismisses other.

Member Function Documentation

void RWScopeGuardImp::dismiss ( ) const
inline

Dismisses the action associated with this RWScopeGuardImp instance, so that the action does not execute at the end of the current scope.

RWScopeGuardImp& RWScopeGuardImp::operator= ( const RWScopeGuardImp )
private

Assignment operator. Assignment for this type is prohibited.

Copyright © 2023 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.