Monado OpenXR Runtime
xrt::auxiliary::util::detail::GenericCallbackEntry< CallbackType, MaskType > Struct Template Reference

Element type stored in GenericCallbacks, for internal use only. More...

#include <util/u_generic_callbacks.hpp>

Collaboration diagram for xrt::auxiliary::util::detail::GenericCallbackEntry< CallbackType, MaskType >:

Public Member Functions

 GenericCallbackEntry (CallbackType callback_, MaskType event_mask_, void *userdata_) noexcept
 
bool matches (GenericCallbackEntry const &other) const noexcept
 Do the two entries match? Used for removal "by value". More...
 
bool operator== (GenericCallbackEntry const &other) const noexcept
 
bool shouldInvoke (MaskType event) const noexcept
 

Data Fields

CallbackType callback
 
MaskType event_mask
 
void * userdata
 
bool should_remove = false
 

Detailed Description

template<typename CallbackType, typename MaskType = std::uint32_t>
struct xrt::auxiliary::util::detail::GenericCallbackEntry< CallbackType, MaskType >

Element type stored in GenericCallbacks, for internal use only.

Member Function Documentation

◆ matches()

template<typename CallbackType , typename MaskType = std::uint32_t>
bool xrt::auxiliary::util::detail::GenericCallbackEntry< CallbackType, MaskType >::matches ( GenericCallbackEntry< CallbackType, MaskType > const &  other) const
inlinenoexcept

Do the two entries match? Used for removal "by value".


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