Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::events::Timer Class Reference

#include <timer.hpp>

Public Types

using Callback = std::function<void()>

Public Member Functions

 Timer (EventLoop &loop, Duration interval, Callback callback, bool repeating=true)
 ~Timer ()
 Timer (const Timer &)=delete
Timer & operator= (const Timer &)=delete
void start ()
void stop ()
bool is_active () const
void set_interval (Duration interval)
Duration interval () const

Member Typedef Documentation

◆ Callback

using pulp::events::Timer::Callback = std::function<void()>

Constructor & Destructor Documentation

◆ Timer() [1/2]

pulp::events::Timer::Timer ( EventLoop & loop,
Duration interval,
Callback callback,
bool repeating = true )

◆ ~Timer()

pulp::events::Timer::~Timer ( )

◆ Timer() [2/2]

pulp::events::Timer::Timer ( const Timer & )
delete

Member Function Documentation

◆ interval()

Duration pulp::events::Timer::interval ( ) const

◆ is_active()

bool pulp::events::Timer::is_active ( ) const

◆ operator=()

Timer & pulp::events::Timer::operator= ( const Timer & )
delete

◆ set_interval()

void pulp::events::Timer::set_interval ( Duration interval)

◆ start()

void pulp::events::Timer::start ( )

◆ stop()

void pulp::events::Timer::stop ( )

The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/events/include/pulp/events/timer.hpp