WPILibC++ 2027.0.0-alpha-4
Loading...
Searching...
No Matches
wpi::hal::SimCallbackRegistry< CallbackFunction, GetName > Class Template Reference

Simulation callback registry. More...

#include <wpi/hal/simulation/SimCallbackRegistry.hpp>

Inheritance diagram for wpi::hal::SimCallbackRegistry< CallbackFunction, GetName >:
wpi::hal::impl::SimCallbackRegistryBase

Public Member Functions

int32_t Register (CallbackFunction callback, void *param)
template<typename... U>
void Invoke (U &&... u) const
template<typename... U>
LLVM_ATTRIBUTE_ALWAYS_INLINE void operator() (U &&... u) const
Public Member Functions inherited from wpi::hal::impl::SimCallbackRegistryBase
void Cancel (int32_t uid)
void Reset ()
wpi::util::recursive_spinlockGetMutex ()

Additional Inherited Members

Public Types inherited from wpi::hal::impl::SimCallbackRegistryBase
using RawFunctor = void (*)()
Protected Types inherited from wpi::hal::impl::SimCallbackRegistryBase
using CallbackVector
Protected Member Functions inherited from wpi::hal::impl::SimCallbackRegistryBase
int32_t DoRegister (RawFunctor callback, void *param)
LLVM_ATTRIBUTE_ALWAYS_INLINE void DoReset ()
Protected Attributes inherited from wpi::hal::impl::SimCallbackRegistryBase
wpi::util::recursive_spinlock m_mutex
std::unique_ptr< CallbackVectorm_callbacks

Detailed Description

template<typename CallbackFunction, const char *(*)() GetName>
class wpi::hal::SimCallbackRegistry< CallbackFunction, GetName >

Simulation callback registry.

Provides callback functionality.

Template Parameters
CallbackFunctioncallback function type (e.g. HAL_BufferCallback)
GetNamefunction that returns a const char* for the name

Member Function Documentation

◆ Invoke()

template<typename CallbackFunction, const char *(*)() GetName>
template<typename... U>
void wpi::hal::SimCallbackRegistry< CallbackFunction, GetName >::Invoke ( U &&... u) const
inline

◆ operator()()

template<typename CallbackFunction, const char *(*)() GetName>
template<typename... U>
LLVM_ATTRIBUTE_ALWAYS_INLINE void wpi::hal::SimCallbackRegistry< CallbackFunction, GetName >::operator() ( U &&... u) const
inline

◆ Register()

template<typename CallbackFunction, const char *(*)() GetName>
int32_t wpi::hal::SimCallbackRegistry< CallbackFunction, GetName >::Register ( CallbackFunction callback,
void * param )
inline

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