WPILibC++ 2025.2.1
|
#include <wpi/FunctionExtras.h>
Public Member Functions | |
unique_function ()=default | |
unique_function (std::nullptr_t) | |
unique_function (unique_function &&)=default | |
unique_function (const unique_function &)=delete | |
unique_function & | operator= (unique_function &&)=default |
unique_function & | operator= (const unique_function &)=delete |
template<typename CallableT > | |
unique_function (CallableT Callable, detail::EnableUnlessSameType< CallableT, unique_function > *=nullptr, detail::EnableIfCallable< CallableT, R, P... > *=nullptr) | |
R | operator() (P... Params) |
Public Member Functions inherited from wpi::detail::UniqueFunctionBase< R, P... > | |
operator bool () const | |
Additional Inherited Members | |
Protected Types inherited from wpi::detail::UniqueFunctionBase< R, P... > | |
using | AdjustedParamT |
using | CallPtrT |
using | MovePtrT |
using | DestroyPtrT |
using | CallbackPointerUnionT |
Protected Member Functions inherited from wpi::detail::UniqueFunctionBase< R, P... > | |
bool | isInlineStorage () const |
bool | isTrivialCallback () const |
CallPtrT | getTrivialCallback () const |
NonTrivialCallbacks * | getNonTrivialCallbacks () const |
CallPtrT | getCallPtr () const |
void * | getCalleePtr () const |
void * | getInlineStorage () const |
void * | getOutOfLineStorage () const |
size_t | getOutOfLineStorageSize () const |
size_t | getOutOfLineStorageAlignment () const |
void | setOutOfLineStorage (void *Ptr, size_t Size, size_t Alignment) |
UniqueFunctionBase (CallableT Callable, CalledAs< CalledAsT >) | |
UniqueFunctionBase (UniqueFunctionBase &&RHS) noexcept | |
UniqueFunctionBase ()=default | |
~UniqueFunctionBase () | |
UniqueFunctionBase & | operator= (UniqueFunctionBase &&RHS) noexcept |
Static Protected Member Functions inherited from wpi::detail::UniqueFunctionBase< R, P... > | |
static R | CallImpl (void *CallableAddr, AdjustedParamT< ParamTs >... Params) |
static void | MoveImpl (void *LHSCallableAddr, void *RHSCallableAddr) noexcept |
static void | DestroyImpl (void *CallableAddr) noexcept |
Protected Attributes inherited from wpi::detail::UniqueFunctionBase< R, P... > | |
union wpi::detail::UniqueFunctionBase::StorageUnionT | StorageUnion |
PointerIntPair< CallbackPointerUnionT, 1, bool > | CallbackAndInlineFlag |
Static Protected Attributes inherited from wpi::detail::UniqueFunctionBase< R, P... > | |
static constexpr size_t | InlineStorageSize |
|
default |
|
inline |
|
default |
|
delete |
|
inline |
|
inline |
|
delete |
|
default |