Protects a DestructionGuard until this object goes out of scope. More...
#include <destruction_guard.h>
Public Member Functions | |
bool | isProtected () |
Checks if the ScopedProtector successfully protected the DestructionGuard. | |
ScopedProtector (DestructionGuard &guard) | |
Constructor for a ScopedProtector. | |
~ScopedProtector () | |
Releases protection of the DestructionGuard if necessary. | |
Private Attributes | |
DestructionGuard & | guard_ |
bool | protected_ |
Protects a DestructionGuard until this object goes out of scope.
Definition at line 86 of file destruction_guard.h.
actionlib::DestructionGuard::ScopedProtector::ScopedProtector | ( | DestructionGuard & | guard | ) | [inline] |
Constructor for a ScopedProtector.
guard | The DestructionGuard to protect |
Definition at line 93 of file destruction_guard.h.
Releases protection of the DestructionGuard if necessary.
Definition at line 108 of file destruction_guard.h.
bool actionlib::DestructionGuard::ScopedProtector::isProtected | ( | ) | [inline] |
Checks if the ScopedProtector successfully protected the DestructionGuard.
Definition at line 101 of file destruction_guard.h.
Definition at line 114 of file destruction_guard.h.
bool actionlib::DestructionGuard::ScopedProtector::protected_ [private] |
Definition at line 115 of file destruction_guard.h.