GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
event_queue Class Reference

#include "event-queue.h"

Inheritance diagram for event_queue:
action_container event_queue_safe

Public Member Functions

 event_queue ()
 
 ~event_queue ()
 
void discard_first ()
 
void run_first ()
 
std::size_t size () const
 
- Public Member Functions inherited from action_container
 action_container ()
 
virtual ~action_container ()=default
 
template<typename F , typename... Args>
void add (F &&fcn, Args &&... args)
 
template<typename T >
void add_delete (T *obj)
 
template<typename... Params, typename... Args>
void add_fcn (void(*fcn)(Params...), Args &&... args)
 
template<typename T , typename... Params, typename... Args>
void add_method (T &obj, void(T::*method)(Params...), Args &&... args)
 
template<typename T , typename... Params, typename... Args>
void add_method (T *obj, void(T::*method)(Params...), Args &&... args)
 
void discard ()
 
void discard (std::size_t num)
 
bool empty () const
 
 operator bool () const
 
template<typename T >
void protect_var (T &var)
 
template<typename T >
void protect_var (T &var, const T &val)
 
void run ()
 
void run (std::size_t num)
 

Protected Member Functions

void add_action (elem *new_elem)
 

Protected Attributes

std::queue< elem * > m_fifo
 

Detailed Description

Definition at line 38 of file event-queue.h.

Constructor & Destructor Documentation

◆ event_queue()

event_queue::event_queue ( )
inline

Definition at line 43 of file event-queue.h.

◆ ~event_queue()

event_queue::~event_queue ( )
inline

Definition at line 50 of file event-queue.h.

Member Function Documentation

◆ add_action()

void event_queue::add_action ( elem new_elem)
inlineprotectedvirtual

Implements action_container.

Definition at line 77 of file event-queue.h.

◆ discard_first()

void event_queue::discard_first ( )
inlinevirtual

Implements action_container.

Definition at line 63 of file event-queue.h.

◆ run_first()

void event_queue::run_first ( )
inlinevirtual

Implements action_container.

Definition at line 52 of file event-queue.h.

◆ size()

std::size_t event_queue::size ( ) const
inlinevirtual

Implements action_container.

Definition at line 73 of file event-queue.h.

Member Data Documentation

◆ m_fifo

std::queue<elem *> event_queue::m_fifo
protected

Definition at line 84 of file event-queue.h.


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