Back to index

nux  3.0.0
Public Member Functions | Private Attributes | Friends
nux::TimerHandle Class Reference

#include <TimerProc.h>

Collaboration diagram for nux::TimerHandle:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TimerHandle ()
 TimerHandle (TimerObject *timer_object)
 ~TimerHandle ()
 TimerHandle (const TimerHandle &)
TimerHandleoperator= (const TimerHandle &)
bool IsValid () const
 deprecated.
bool Activated () const
float GetProgress () const
 return a factor between 0.0f and 1.0f representing the progress of the timer.
float GetProgressDelta () const
int GetScheduledIterationCount () const
int GetProgressIterationCount () const
int GetElapsedTimed () const

Private Attributes

TimerObjectm_d

Friends

class TimerHandler

Detailed Description

Definition at line 42 of file TimerProc.h.


Constructor & Destructor Documentation

Definition at line 97 of file TimerProc.cpp.

  {
    m_d = 0;
  }

Definition at line 102 of file TimerProc.cpp.

  {
    m_d = timer_object;
  }

Definition at line 107 of file TimerProc.cpp.

  {
    m_d = 0;
  }
nux::TimerHandle::TimerHandle ( const TimerHandle timer_handle)

Definition at line 112 of file TimerProc.cpp.

  {
    m_d = timer_handle.m_d;
  }

Member Function Documentation

Definition at line 128 of file TimerProc.cpp.

  {
    return m_d != 0;
  }

Here is the caller graph for this function:

Definition at line 161 of file TimerProc.cpp.

  {
    if (m_d)
      return m_d->ElapsedTime;
    return 0;
  }

return a factor between 0.0f and 1.0f representing the progress of the timer.

Definition at line 133 of file TimerProc.cpp.

  {
    if (m_d)
      return m_d->Param;
    return 0.0f;
  }

Definition at line 140 of file TimerProc.cpp.

  {
    if (m_d)
      return m_d->ProgressDelta;
    return 0;
  }

Definition at line 154 of file TimerProc.cpp.

  {
    if (m_d)
      return m_d->ProgressIterationCount;
    return 0;
  }

Definition at line 147 of file TimerProc.cpp.

  {
    if (m_d)
      return m_d->ScheduledIteration;
    return 0;
  }
bool nux::TimerHandle::IsValid ( ) const

deprecated.

use Activated().

Definition at line 123 of file TimerProc.cpp.

  {
    return Activated();
  }

Here is the call graph for this function:

Here is the caller graph for this function:

TimerHandle & nux::TimerHandle::operator= ( const TimerHandle timer_handle)

Definition at line 117 of file TimerProc.cpp.

  {
    m_d = timer_handle.m_d;
    return *this;
  }

Friends And Related Function Documentation

friend class TimerHandler [friend]

Definition at line 65 of file TimerProc.h.


Member Data Documentation

Definition at line 63 of file TimerProc.h.


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