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

#include <lifetime.hpp>

Inheritance diagram for neolib::lifetime_flag< RequiredState >:
neolib::i_lifetime_flag

Public Member Functions

 lifetime_flag (const i_lifetime &aSubject)
 
template<typename Subject >
 lifetime_flag (const Subject &aSubject, std::enable_if_t< std::is_base_of_v< i_lifetime, Subject >, sfinae >={})
 
template<typename Subject >
 lifetime_flag (const Subject &aSubject, std::enable_if_t<!std::is_base_of_v< i_lifetime, Subject >, sfinae >={})
 
 lifetime_flag (const lifetime_flag &aOther)
 
 lifetime_flag (lifetime_flag &&aOther)
 
 ~lifetime_flag ()
 
lifetime_flagoperator= (const lifetime_flag &aOther)
 
lifetime_flagoperator= (lifetime_flag &&aOther)
 
bool is_creating () const final
 
bool is_alive () const final
 
bool is_destroying () const final
 
bool is_destroyed () const final
 
 operator bool () const final
 
bool debug () const override
 
void set_debug (bool aDebug=true) override
 
- Public Member Functions inherited from neolib::i_lifetime_flag
virtual ~i_lifetime_flag ()=default
 

Detailed Description

template<lifetime_state RequiredState>
class neolib::lifetime_flag< RequiredState >

Definition at line 45 of file lifetime.hpp.

Constructor & Destructor Documentation

◆ lifetime_flag() [1/5]

template<lifetime_state RequiredState>
neolib::lifetime_flag< RequiredState >::lifetime_flag ( const i_lifetime aSubject)

◆ lifetime_flag() [2/5]

template<lifetime_state RequiredState>
template<typename Subject >
neolib::lifetime_flag< RequiredState >::lifetime_flag ( const Subject aSubject,
std::enable_if_t< std::is_base_of_v< i_lifetime, Subject >, sfinae = {} 
)
inline

Definition at line 50 of file lifetime.hpp.

◆ lifetime_flag() [3/5]

template<lifetime_state RequiredState>
template<typename Subject >
neolib::lifetime_flag< RequiredState >::lifetime_flag ( const Subject aSubject,
std::enable_if_t<!std::is_base_of_v< i_lifetime, Subject >, sfinae = {} 
)
inline

Definition at line 53 of file lifetime.hpp.

◆ lifetime_flag() [4/5]

template<lifetime_state RequiredState>
neolib::lifetime_flag< RequiredState >::lifetime_flag ( const lifetime_flag< RequiredState > &  aOther)

◆ lifetime_flag() [5/5]

template<lifetime_state RequiredState>
neolib::lifetime_flag< RequiredState >::lifetime_flag ( lifetime_flag< RequiredState > &&  aOther)

◆ ~lifetime_flag()

Member Function Documentation

◆ debug()

template<lifetime_state RequiredState>
bool neolib::lifetime_flag< RequiredState >::debug ( ) const
overridevirtual

◆ is_alive()

template<lifetime_state RequiredState>
bool neolib::lifetime_flag< RequiredState >::is_alive ( ) const
finalvirtual

◆ is_creating()

template<lifetime_state RequiredState>
bool neolib::lifetime_flag< RequiredState >::is_creating ( ) const
finalvirtual

◆ is_destroyed()

template<lifetime_state RequiredState>
bool neolib::lifetime_flag< RequiredState >::is_destroyed ( ) const
finalvirtual

◆ is_destroying()

template<lifetime_state RequiredState>
bool neolib::lifetime_flag< RequiredState >::is_destroying ( ) const
finalvirtual

◆ operator bool()

template<lifetime_state RequiredState>
neolib::lifetime_flag< RequiredState >::operator bool ( ) const
finalvirtual

◆ operator=() [1/2]

template<lifetime_state RequiredState>
lifetime_flag & neolib::lifetime_flag< RequiredState >::operator= ( const lifetime_flag< RequiredState > &  aOther)

◆ operator=() [2/2]

template<lifetime_state RequiredState>
lifetime_flag & neolib::lifetime_flag< RequiredState >::operator= ( lifetime_flag< RequiredState > &&  aOther)

◆ set_debug()

template<lifetime_state RequiredState>
void neolib::lifetime_flag< RequiredState >::set_debug ( bool  aDebug = true)
overridevirtual

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