neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::lifetime< Base > Class Template Reference

#include <lifetime.hpp>

Inheritance diagram for neolib::lifetime< Base >:
neolib::i_lifetime neolib::basic_packet_connection< typename packet_type::character_type, Protocol, 1024 > neolib::logger::logger< 0u > neolib::object< i_app > neolib::object< i_button > neolib::object< i_image_widget > neolib::object< i_layout > neolib::object< i_title_bar > neolib::object< i_object > neolib::object< i_push_button > neolib::object< i_radio_button > neolib::object< i_spacer > neolib::object< i_status_bar > neolib::object< i_surface_window > neolib::object< i_terminal > neolib::object< i_text_widget > neolib::object< i_widget > neolib::object< i_window > neolib::object< i_ecs > neolib::object< neogfx::i_window > neogfx::DesignStudio::console_client neogfx::property< T, Category, Context, Calculator > neolib::async_task neolib::basic_packet_connection< CharType, Protocol, ReceiveBufferSize > neolib::logger::logger< Instance > neolib::object< Base > neolib::packet_stream< PacketType, Protocol, ReceiveBufferSize > neolib::tcp_packet_stream_server< PacketType > neolib::timer

Public Types

typedef neolib::destroyed_flag destroyed_flag
 

Public Member Functions

 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_alive () const final
 
bool is_destroying () const final
 
bool is_destroyed () const final
 
void set_alive () override
 
void set_destroying () override
 
void set_destroyed () override
 
- Public Member Functions inherited from neolib::i_lifetime
virtual ~i_lifetime ()=default
 

Detailed Description

template<typename Base = i_lifetime>
class neolib::lifetime< Base >

Definition at line 81 of file lifetime.hpp.

Member Typedef Documentation

◆ destroyed_flag

template<typename Base = i_lifetime>
typedef neolib::destroyed_flag neolib::lifetime< Base >::destroyed_flag

Definition at line 87 of file lifetime.hpp.

Constructor & Destructor Documentation

◆ lifetime()

template<typename Base >
neolib::lifetime< Base >::lifetime ( lifetime_state  aState = lifetime_state::Alive)
inline

Definition at line 106 of file lifetime.hpp.

◆ ~lifetime()

template<typename Base >
neolib::lifetime< Base >::~lifetime ( )
inlinevirtual

Definition at line 111 of file lifetime.hpp.

Member Function Documentation

◆ is_alive()

◆ is_creating()

template<typename Base >
bool neolib::lifetime< Base >::is_creating ( ) const
inlinefinalvirtual

Implements neolib::i_lifetime.

Definition at line 133 of file lifetime.hpp.

◆ is_destroyed()

◆ is_destroying()

template<typename Base >
bool neolib::lifetime< Base >::is_destroying ( ) const
inlinefinalvirtual

Implements neolib::i_lifetime.

Definition at line 145 of file lifetime.hpp.

◆ object_state()

template<typename Base >
lifetime_state neolib::lifetime< Base >::object_state ( ) const
inlinefinalvirtual

Implements neolib::i_lifetime.

Definition at line 121 of file lifetime.hpp.

◆ object_state_ptr()

template<typename Base >
std::shared_ptr< std::atomic< lifetime_state > > neolib::lifetime< Base >::object_state_ptr ( ) const
inlinefinalvirtual

Implements neolib::i_lifetime.

Definition at line 127 of file lifetime.hpp.

◆ set_alive()

template<typename Base >
void neolib::lifetime< Base >::set_alive ( )
inlineoverridevirtual

Implements neolib::i_lifetime.

Definition at line 157 of file lifetime.hpp.

◆ set_destroyed()

◆ set_destroying()


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