Utility class for safe checking of region validity.
More...
#include <gui_alive_checker.hpp>
Utility class for safe checking of region validity.
To use this class, construct an instance of alive_checker with any object you wish to monitor. Then use the object. Then use alive_checker::is_alive() to check if the object is still alive.
maybe_destroy_this();
if (!checker.is_alive()) return;
Utility class for safe checking of region validity.
Definition at line 30 of file gui_alive_checker.hpp.
◆ alive_checker() [1/3]
lxgui::gui::alive_checker::alive_checker |
( |
region & |
object | ) |
|
|
inlineexplicit |
◆ alive_checker() [2/3]
lxgui::gui::alive_checker::alive_checker |
( |
const alive_checker & |
| ) |
|
|
delete |
◆ alive_checker() [3/3]
◆ is_alive()
bool lxgui::gui::alive_checker::is_alive |
( |
| ) |
const |
|
inline |
Check if the wrapped region is still alive.
- Returns
- 'true' if the region is alive, 'false' otherwise
Definition at line 48 of file gui_alive_checker.hpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: