neoGFX
Cross-platform C++ app/game engine
|
#include <object.hpp>
Public Member Functions | |
define_declared_event (Destroying, destroying) | |
define_declared_event (Destroyed, destroyed) | |
object (lifetime_state aState=lifetime_state::Creating) | |
~object () | |
void | set_destroying () override |
void | set_destroyed () override |
bool | is_alive () const final |
bool | is_destroyed () const final |
Public Member Functions inherited from neolib::lifetime< Base > | |
lifetime (lifetime_state aState=lifetime_state::Alive) | |
virtual | ~lifetime () |
lifetime_state | object_state () const final |
std::shared_ptr< std::atomic< lifetime_state > > | object_state_ptr () const final |
bool | is_creating () const final |
bool | is_destroying () const final |
void | set_alive () override |
Public Member Functions inherited from neolib::i_lifetime | |
virtual | ~i_lifetime ()=default |
Additional Inherited Members | |
Public Types inherited from neolib::lifetime< Base > | |
typedef neolib::destroyed_flag | destroyed_flag |
Definition at line 47 of file object.hpp.
|
inline |
Definition at line 54 of file object.hpp.
|
inline |
Definition at line 58 of file object.hpp.
neolib::object< Base >::define_declared_event | ( | Destroyed | , |
destroyed | |||
) |
neolib::object< Base >::define_declared_event | ( | Destroying | , |
destroying | |||
) |
|
inlinefinalvirtual |
Reimplemented from neolib::lifetime< Base >.
Definition at line 95 of file lifetime.hpp.
|
inlinefinalvirtual |
Reimplemented from neolib::lifetime< Base >.
Definition at line 97 of file lifetime.hpp.
|
inlineoverridevirtual |
Reimplemented from neolib::lifetime< Base >.
Definition at line 74 of file object.hpp.
|
inlineoverridevirtual |
Reimplemented from neolib::lifetime< Base >.
Definition at line 66 of file object.hpp.