LibrePCB Developers Documentation
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() [1/2]

ScopeGuardBase ( )
inlinenoexcept

◆ ScopeGuardBase() [2/2]

ScopeGuardBase ( ScopeGuardBase &&  rhs)
inlinenoexcept

◆ ~ScopeGuardBase()

~ScopeGuardBase ( )
protecteddefault

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

+ Here is the caller graph for this function:

Member Function Documentation

◆ dismiss()

void dismiss ( )
inlinenoexcept

Do not execute cleanup code

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ mActive

bool mActive
protected

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