Jolt Physics
A multi core friendly Game Physics Engine
|
Class that calls a function when it goes out of scope. More...
#include <ScopeExit.h>
Public Member Functions | |
JPH_INLINE | ScopeExit (F &&inFunction) |
Constructor specifies the exit function. More... | |
JPH_INLINE | ~ScopeExit () |
Destructor calls the exit function. More... | |
JPH_INLINE void | Invoke () |
Call the exit function now instead of when going out of scope. More... | |
JPH_INLINE void | Release () |
No longer call the exit function when going out of scope. More... | |
Public Member Functions inherited from NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
void | operator= (const NonCopyable &)=delete |
Class that calls a function when it goes out of scope.
|
inlineexplicit |
Constructor specifies the exit function.
Destructor calls the exit function.
|
inline |
Call the exit function now instead of when going out of scope.
|
inline |
No longer call the exit function when going out of scope.