Pol  Revision:cb584c9
Pol::Core::OneShotTaskInst< T > Class Template Reference

#include <schedule.h>

+ Inheritance diagram for Pol::Core::OneShotTaskInst< T >:

Public Member Functions

 OneShotTaskInst (OneShotTask **handle, polclock_t run_when, void(*f)(T data), T data)
 
virtual ~OneShotTaskInst ()
 
virtual void on_run () POL_OVERRIDE
 
- Public Member Functions inherited from Pol::Core::OneShotTask
 OneShotTask (OneShotTask **handle, polclock_t run_when)
 
virtual void cancel (void) POL_OVERRIDE
 
- Public Member Functions inherited from Pol::Core::ScheduledTask
 ScheduledTask (polclock_t next_run_clock)
 
virtual ~ScheduledTask ()
 
polclock_t clocksleft (polclock_t now)
 
bool late (polclock_t now)
 
polclock_t next_run_clock () const
 
bool ready (polclock_t now)
 
polticks_t ticks_late (polclock_t now)
 
polticks_t ticks_left (polclock_t now) const
 

Private Attributes

data_
 
void(* f_ )(T data)
 

Additional Inherited Members

- Protected Member Functions inherited from Pol::Core::OneShotTask
virtual ~OneShotTask ()
 
virtual void execute (polclock_t now) POL_OVERRIDE
 
- Protected Attributes inherited from Pol::Core::ScheduledTask
bool cancelled
 
polclock_t last_run_clock_
 
polclock_t next_run_clock_
 

Detailed Description

template<class T>
class Pol::Core::OneShotTaskInst< T >

Definition at line 114 of file schedule.h.

Constructor & Destructor Documentation

template<class T>
Pol::Core::OneShotTaskInst< T >::OneShotTaskInst ( OneShotTask **  handle,
polclock_t  run_when,
void(*)(T data f,
data 
)
inline

Definition at line 117 of file schedule.h.

template<class T>
virtual Pol::Core::OneShotTaskInst< T >::~OneShotTaskInst ( )
inlinevirtual

Definition at line 121 of file schedule.h.

References POL_OVERRIDE.

Member Function Documentation

template<class T >
void Pol::Core::OneShotTaskInst< T >::on_run ( )
virtual

Implements Pol::Core::OneShotTask.

Definition at line 131 of file schedule.h.

Member Data Documentation

template<class T>
T Pol::Core::OneShotTaskInst< T >::data_
private

Definition at line 126 of file schedule.h.

template<class T>
void( * Pol::Core::OneShotTaskInst< T >::f_) (T data)
private

Definition at line 127 of file schedule.h.


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