LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ScopeGuardBase Class Reference

#include <scopeguard.h>

+ Inheritance diagram for ScopeGuardBase:
+ Collaboration diagram for ScopeGuardBase:

Public Member Functions

 ScopeGuardBase () noexcept
 
 ScopeGuardBase (ScopeGuardBase &&rhs) noexcept
 
void dismiss () noexcept
 

Protected Member Functions

 ~ScopeGuardBase ()=default
 

Protected Attributes

bool mActive
 

Detailed Description

Base class for ScopGuard mainly providing dismiss()

Constructor & Destructor Documentation

ScopeGuardBase ( )
inlinenoexcept
ScopeGuardBase ( ScopeGuardBase &&  rhs)
inlinenoexcept
~ScopeGuardBase ( )
protecteddefault

Do not allow to delete a ScopeGuardBase directly. So we can avoid a virtual destructor.

Member Function Documentation

void dismiss ( )
inlinenoexcept

Do not execute cleanup code

+ Here is the caller graph for this function:

Member Data Documentation

bool mActive
protected

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