Shadow Stack  0.2
 All Classes Namespaces Files Functions Variables Typedefs Macros
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TerminateOnDestruction Class Referencefinal

A class that terminates the group when its destructor is called This is called even if a C++ exception is thrown Note: this should be used as a backup, terminate_group should still be called if termination is desired! More...

#include <group.hpp>

Public Member Functions

 TerminateOnDestruction ()
 Constructor Enabled terminateion on destruction by default. More...
 
 ~TerminateOnDestruction ()
 Destructor On destruction, terminate the group if enabled. More...
 
void disable ()
 Disable termination of the group on destruction. More...
 

Private Member Functions

 TerminateOnDestruction (TerminateOnDestruction &&)=delete
 
 TerminateOnDestruction (const TerminateOnDestruction &)=delete
 
TerminateOnDestructionoperator= (const TerminateOnDestruction &)=delete
 

Private Attributes

bool enabled
 

Detailed Description

A class that terminates the group when its destructor is called This is called even if a C++ exception is thrown Note: this should be used as a backup, terminate_group should still be called if termination is desired!

Constructor & Destructor Documentation

TerminateOnDestruction::TerminateOnDestruction ( TerminateOnDestruction &&  )
privatedelete
TerminateOnDestruction::TerminateOnDestruction ( const TerminateOnDestruction )
privatedelete
TerminateOnDestruction::TerminateOnDestruction ( )

Constructor Enabled terminateion on destruction by default.

TerminateOnDestruction::~TerminateOnDestruction ( )

Destructor On destruction, terminate the group if enabled.

Member Function Documentation

void TerminateOnDestruction::disable ( )

Disable termination of the group on destruction.

TerminateOnDestruction& TerminateOnDestruction::operator= ( const TerminateOnDestruction )
privatedelete

Member Data Documentation

bool TerminateOnDestruction::enabled
private

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