Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cTimerFunc Class Reference

#include <cTimer.h>

Inheritance diagram for GrayLib::cTimerFunc:
GrayLib::cTimerInst Gray::cRefBase IUnknown

Public Member Functions

 cTimerFunc (TIMER_FUNC_t pFunc, UINT_PTR nUserArg, cTimerGroup *pTimerGroup=nullptr, TIMESYS_t tCallNext=cTimeSys::k_CLEAR)
 
- Public Member Functions inherited from GrayLib::cTimerInst
 cTimerInst (cTimerGroup *pTimerGroup=nullptr, TIMESYS_t tCallNext=cTimeSys::k_CLEAR)
 
virtual ~cTimerInst ()
 
TIMESYS_t get_SortValue () const noexcept
 
bool SetTimer (TIMESYS_t tCallNext)
 
void KillTimer ()
 
- Public Member Functions inherited from Gray::cRefBase
 cRefBase (int iRefCount=0) noexcept
 
virtual ~cRefBase ()
 
int get_RefCount () const noexcept
 
HASHCODE_t get_HashCode () const noexcept
 
 STDMETHOD_ (HASHCODE_t, get_HashCodeX)() const noexcept
 
virtual void onFinalRelease ()
 
bool isValidObj () const noexcept
 
 STDMETHOD_ (ULONG, AddRef)(void) override
 
 STDMETHOD_ (ULONG, Release)(void) override
 
STDMETHOD() QueryInterface (const IID &riid, void __RPC_FAR *__RPC_FAR *ppvObject) override
 
void IncRefCount ()
 
void DecRefCount ()
 
bool isStaticConstruct () const noexcept
 
void StaticConstruct ()
 
void StaticDestruct ()
 
bool isDestructing () noexcept
 
void SetDestructing ()
 

Protected Member Functions

virtual void OnTimer () override
 

Detailed Description

cTimerInst for supporting old fashioned function callbacks. TIMER_FUNC_t

Note
Try not to use this. Better to just override private version of cTimerInst::OnTimer()

Constructor & Destructor Documentation

◆ cTimerFunc()

GrayLib::cTimerFunc::cTimerFunc ( TIMER_FUNC_t  pFunc,
UINT_PTR  nUserArg,
cTimerGroup pTimerGroup = nullptr,
TIMESYS_t  tCallNext = cTimeSys::k_CLEAR 
)
inline

Member Function Documentation

◆ OnTimer()

virtual void GrayLib::cTimerFunc::OnTimer ( )
inlineoverrideprotectedvirtual

Call the provided m_pFunc

Reimplemented from GrayLib::cTimerInst.


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