GNU Octave  8.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:
Collaboration diagram for event_queue:

Public Member Functions

 event_queue (const event_queue &)=delete
 
 event_queue (void)
 
 ~event_queue (void)
 
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 (std::size_t num)
 
void discard (void)
 
void discard_first (void)
 
bool empty (void) const
 
 operator bool (void) const
 
event_queueoperator= (const event_queue &)=delete
 
template<typename T >
void protect_var (T &var)
 
template<typename T >
void protect_var (T &var, const T &val)
 
OCTAVE_API void run (std::size_t num)
 
void run (void)
 
void run_first (void)
 
std::size_t size (void) const
 

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() [1/2]

event_queue::event_queue ( void  )
inline

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

◆ event_queue() [2/2]

event_queue::event_queue ( const event_queue )
delete

◆ ~event_queue()

event_queue::~event_queue ( void  )
inline

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

Member Function Documentation

◆ add()

template<typename F , typename... Args>
void action_container::add ( F &&  fcn,
Args &&...  args 
)
inlineinherited

◆ add_action()

void event_queue::add_action ( elem new_elem)
inlineprotectedvirtual

Implements action_container.

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

◆ add_delete()

template<typename T >
void action_container::add_delete ( T *  obj)
inlineinherited

Definition at line 177 of file action-container.h.

Referenced by get_data_and_bytesize(), and run_command_and_return_output().

◆ add_fcn()

template<typename... Params, typename... Args>
void action_container::add_fcn ( void(*)(Params...)  fcn,
Args &&...  args 
)
inlineinherited

Definition at line 157 of file action-container.h.

◆ add_method() [1/2]

template<typename T , typename... Params, typename... Args>
void action_container::add_method ( T &  obj,
void(T::*)(Params...)  method,
Args &&...  args 
)
inlineinherited

Definition at line 169 of file action-container.h.

◆ add_method() [2/2]

template<typename T , typename... Params, typename... Args>
void action_container::add_method ( T *  obj,
void(T::*)(Params...)  method,
Args &&...  args 
)
inlineinherited

Definition at line 163 of file action-container.h.

◆ discard() [1/2]

void action_container::discard ( std::size_t  num)
inlineinherited

◆ discard() [2/2]

void action_container::discard ( void  )
inlineinherited

Definition at line 215 of file action-container.h.

References action_container::discard().

Referenced by action_container::discard().

◆ discard_first()

void event_queue::discard_first ( void  )
inlinevirtual

Implements action_container.

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

◆ empty()

bool action_container::empty ( void  ) const
inlineinherited

Definition at line 219 of file action-container.h.

◆ operator bool()

action_container::operator bool ( void  ) const
inlineinherited

Definition at line 196 of file action-container.h.

◆ operator=()

event_queue& event_queue::operator= ( const event_queue )
delete

◆ protect_var() [1/2]

template<typename T >
void action_container::protect_var ( T &  var)
inlineinherited

◆ protect_var() [2/2]

template<typename T >
void action_container::protect_var ( T &  var,
const T &  val 
)
inlineinherited

Definition at line 191 of file action-container.h.

◆ run() [1/2]

void action_container::run ( std::size_t  num)
inherited

◆ run() [2/2]

void action_container::run ( void  )
inlineinherited

Definition at line 202 of file action-container.h.

References action_container::run().

Referenced by action_container::run().

◆ run_first()

void event_queue::run_first ( void  )
inlinevirtual

Implements action_container.

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

◆ size()

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

Implements action_container.

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

Member Data Documentation

◆ m_fifo

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

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


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