LV2::EventRef< Required >::I< Derived > Struct Template Reference

#include <lv2plugin.hpp>

Inherits LV2::Extension< Required >.

List of all members.

Protected Member Functions

uint32_t event_ref (LV2_Event *event)
uint32_t event_unref (LV2_Event *event)


Detailed Description

template<bool Required = true>
template<class Derived>
struct LV2::EventRef< Required >::I< Derived >

This is the type that your plugin class will inherit when you use the EventRef mixin. The public and protected members defined here will be available in your plugin class.

Member Function Documentation

template<bool Required = true>
template<class Derived>
uint32_t LV2::EventRef< Required >::I< Derived >::event_ref ( LV2_Event *  event  )  [inline, protected]

This should be called by the plugin for any event of type 0 if it creates an additional copy of it, either by saving more than one copy internally, passing more than one copy through to an output port, or a combination of those. It must be called once for each additional copy of the event. Note that you must not call this function if you just save one copy of the event, or just passes one copy through to an output port. param event The event, as returned by lv2_event_get().

template<bool Required = true>
template<class Derived>
uint32_t LV2::EventRef< Required >::I< Derived >::event_unref ( LV2_Event *  event  )  [inline, protected]

This should be called by the plugin for any event of type 0, unless it keeps a copy of it or passes it through to an event output port. param event The event, as returned by lv2_event_get().


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

Generated on Wed Apr 16 17:53:05 2008 by  doxygen 1.5.5