neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neolib::timer_object Class Reference

#include <timer_object.hpp>

Inheritance diagram for neolib::timer_object:
neolib::lifetime< reference_counted< i_timer_object > > neolib::reference_counted< i_timer_object > neolib::i_timer_object neolib::i_reference_counted neolib::i_lifetime

Public Member Functions

 timer_object (i_timer_service &aService)
 
 ~timer_object ()
 
void expires_at (const std::chrono::steady_clock::time_point &aDeadline) override
 
void async_wait (i_timer_subscriber &aSubscriber) override
 
void unsubscribe (i_timer_subscriber &aSubscriber) override
 
void cancel () override
 
bool poll () override
 
bool debug () const override
 
void set_debug (bool aDebug) override
 
- Public Member Functions inherited from neolib::lifetime< reference_counted< i_timer_object > >
 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::reference_counted< i_timer_object >
 reference_counted () noexcept
 
 reference_counted (const reference_counted &aOther) noexcept
 
 ~reference_counted ()
 
reference_countedoperator= (const reference_counted &)
 
void add_ref () const noexcept override
 
void release () const override
 
int32_t use_count () const noexcept override
 
const base_typerelease_and_take_ownership () const override
 
base_typerelease_and_take_ownership () override
 
void pin () const noexcept override
 
void unpin () const override
 
i_ref_control_blockcontrol_block () override
 
- Public Member Functions inherited from neolib::i_timer_object
virtual ~i_timer_object ()=default
 
template<typename Duration >
void expires_from_now (const Duration &aDuration)
 
i_timer_subscriberasync_wait (const std::function< void()> &aSubscriber)
 
i_timer_subscriberasync_wait (const std::function< void(i_timer_object &)> &aSubscriber)
 
- Public Member Functions inherited from neolib::i_reference_counted
virtual ~i_reference_counted ()=default
 
- Public Member Functions inherited from neolib::i_lifetime
virtual ~i_lifetime ()=default
 

Additional Inherited Members

- Public Types inherited from neolib::lifetime< reference_counted< i_timer_object > >
typedef neolib::destroyed_flag destroyed_flag
 
- Public Types inherited from neolib::i_timer_object
typedef i_timer_object abstract_type
 

Detailed Description

Definition at line 47 of file timer_object.hpp.

Constructor & Destructor Documentation

◆ timer_object()

neolib::timer_object::timer_object ( i_timer_service aService)

◆ ~timer_object()

neolib::timer_object::~timer_object ( )

Member Function Documentation

◆ async_wait()

void neolib::timer_object::async_wait ( i_timer_subscriber aSubscriber)
overridevirtual

◆ cancel()

void neolib::timer_object::cancel ( )
overridevirtual

◆ debug()

bool neolib::timer_object::debug ( ) const
overridevirtual

◆ expires_at()

void neolib::timer_object::expires_at ( const std::chrono::steady_clock::time_point &  aDeadline)
overridevirtual

◆ poll()

bool neolib::timer_object::poll ( )
overridevirtual

◆ set_debug()

void neolib::timer_object::set_debug ( bool  aDebug)
overridevirtual

◆ unsubscribe()

void neolib::timer_object::unsubscribe ( i_timer_subscriber aSubscriber)
overridevirtual

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