MostlyHarmless 0.0.1
 
Loading...
Searching...
No Matches
mostly_harmless::events::InputEventContext Struct Reference

Trivially copyable wrapper around the clap-api provided clap_input_events queue, for easier iterating. More...

#include <mostlyharmless_InputEventContext.h>

Public Member Functions

 InputEventContext (const clap_input_events_t *inputEventQueue)
 
InputEventContextoperator++ ()
 
InputEventContext operator++ (int)
 
const clap_event_header_t * next () noexcept
 

Detailed Description

Trivially copyable wrapper around the clap-api provided clap_input_events queue, for easier iterating.

Constructor & Destructor Documentation

◆ InputEventContext()

mostly_harmless::events::InputEventContext::InputEventContext ( const clap_input_events_t * inputEventQueue)
explicit
Parameters
inputEventQueueThe clap provided clap_input_events queue.

Member Function Documentation

◆ next()

const clap_event_header_t * mostly_harmless::events::InputEventContext::next ( )
nodiscardnoexcept

Attempts to access the next event in the queue - note that this could be a nullptr.

Returns
The next event in the queue.

◆ operator++() [1/2]

InputEventContext & mostly_harmless::events::InputEventContext::operator++ ( )

Prefix increment - Advances the internal iterator to the next event in the queue.

◆ operator++() [2/2]

InputEventContext mostly_harmless::events::InputEventContext::operator++ ( int )

Postfix increment - Advances the internal iterator to the next event in the queue.


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