VkCV Framework
0.0.1
CV Vulkan framework
|
#include <Event.hpp>
Public Member Functions | |
void | operator() (T... arguments) |
event_handle< T... > | add (typename event_function< T... >::type callback) |
void | remove (event_handle< T... > handle) |
void | lock () |
void | unlock () |
event (bool locked=false) | |
event (const event &other)=delete | |
event (event &&other)=delete | |
event & | operator= (const event &other)=delete |
event & | operator= (event &&other)=delete |
Private Attributes | |
std::vector< event_function< T... > > | m_functions |
uint32_t | m_id_counter |
std::binary_semaphore | m_semaphore |
template for event handling
T | parameter list |
|
inline |
adds a function handle to the event to be called
callback | of the function |
Referenced by vkcv::camera::CameraManager::bindCameraToEvents(), and vkcv::gui::GUI::GUI().
|
inline |
locks the event so its function handles won't be called
Referenced by vkcv::event< int, int, int, int >::operator()(), and vkcv::Window::pollEvents().
|
inline |
calls all function handles with the given arguments
arguments | of the given function |
|
inline |
removes a function handle of the event
handle | of the function |
Referenced by vkcv::camera::CameraManager::~CameraManager(), and vkcv::gui::GUI::~GUI().
|
inline |
unlocks the event so its function handles can be called after locking
Referenced by vkcv::event< int, int, int, int >::operator()(), vkcv::Window::pollEvents(), and vkcv::Window::~Window().