libpsynth 0.2.1
Public Types | Public Member Functions | Protected Member Functions
psynth::io::detail::async_base_impl Class Reference

Utility class for writing async_base implementations. More...

#include <async_base.hpp>

Inheritance diagram for psynth::io::detail::async_base_impl:
Inheritance graph
[legend]
Collaboration diagram for psynth::io::detail::async_base_impl:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::function< void(std::size_t)> callback_type

Public Member Functions

 async_base_impl (callback_type cb=callback_type())
virtual ~async_base_impl ()
async_state state () const
void set_callback (callback_type cb)

Protected Member Functions

void set_state (async_state state)
void process (std::size_t nframes)

Detailed Description

Utility class for writing async_base implementations.

This code actually was in async_base but it was factored out to ease writing async_base decorators.


Member Typedef Documentation

typedef std::function<void (std::size_t)> psynth::io::detail::async_base_impl::callback_type

Constructor & Destructor Documentation

psynth::io::detail::async_base_impl::async_base_impl ( callback_type  cb = callback_type ()) [inline]
virtual psynth::io::detail::async_base_impl::~async_base_impl ( ) [inline, virtual]

Member Function Documentation

void psynth::io::detail::async_base_impl::process ( std::size_t  nframes) [inline, protected]
void psynth::io::detail::async_base_impl::set_callback ( callback_type  cb) [inline, virtual]
void psynth::io::detail::async_base_impl::set_state ( async_state  state) [inline, protected]
async_state psynth::io::detail::async_base_impl::state ( ) const [inline, virtual]

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