SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
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() [1/2]

RWScopeGuardImp::RWScopeGuardImp ( )
inlineprotected

Default constructor

◆ RWScopeGuardImp() [2/2]

RWScopeGuardImp::RWScopeGuardImp ( const RWScopeGuardImp & other)
inlineprotected

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

Member Function Documentation

◆ dismiss()

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.

◆ operator=()

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

Assignment operator. Assignment for this type is prohibited.

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