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

#include <object.hpp>

Inheritance diagram for neolib::object< Base >:
neolib::lifetime< Base > neolib::i_lifetime neogfx::object< reference_counted< i_basic_item_model< T > > > neogfx::object< reference_counted< i_item_presentation_model > > neogfx::object< reference_counted< i_item_selection_model > > neogfx::object< reference_counted< i_layout_item_cache > > neogfx::object< i_scrollbar > neogfx::object< Base > neogfx::basic_item_model< T, Columns, CellType, ContainerTraits > neogfx::basic_item_presentation_model< item_model > neogfx::basic_item_presentation_model< ItemModel > neogfx::basic_item_selection_model< Alloc > neogfx::layout_item_cache neogfx::scrollbar neogfx::DesignStudio::widget_property_model neogfx::DesignStudio::widget_property_presentation_model neogfx::default_drop_list_presentation_model< ItemModel >

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
 

Detailed Description

template<typename Base = i_object>
class neolib::object< Base >

Definition at line 47 of file object.hpp.

Constructor & Destructor Documentation

◆ object()

template<typename Base = i_object>
neolib::object< Base >::object ( lifetime_state  aState = lifetime_state::Creating)
inline

Definition at line 54 of file object.hpp.

◆ ~object()

template<typename Base = i_object>
neolib::object< Base >::~object ( )
inline

Definition at line 58 of file object.hpp.

Member Function Documentation

◆ define_declared_event() [1/2]

template<typename Base = i_object>
neolib::object< Base >::define_declared_event ( Destroyed  ,
destroyed   
)

◆ define_declared_event() [2/2]

template<typename Base = i_object>
neolib::object< Base >::define_declared_event ( Destroying  ,
destroying   
)

◆ is_alive()

template<typename Base = i_object>
bool neolib::lifetime< Base >::is_alive ( ) const
inlinefinalvirtual

Reimplemented from neolib::lifetime< Base >.

Definition at line 95 of file lifetime.hpp.

◆ is_destroyed()

template<typename Base = i_object>
bool neolib::lifetime< Base >::is_destroyed ( ) const
inlinefinalvirtual

Reimplemented from neolib::lifetime< Base >.

Definition at line 97 of file lifetime.hpp.

◆ set_destroyed()

template<typename Base = i_object>
void neolib::object< Base >::set_destroyed ( )
inlineoverridevirtual

Reimplemented from neolib::lifetime< Base >.

Definition at line 74 of file object.hpp.

◆ set_destroying()

template<typename Base = i_object>
void neolib::object< Base >::set_destroying ( )
inlineoverridevirtual

Reimplemented from neolib::lifetime< Base >.

Definition at line 66 of file object.hpp.


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