GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::FunctionView< Ret(Args...)> Class Template Reference

#include <GREM/core/data/FunctionView.hpp>

Public Member Functions

template<typename FreeFunction>
requires (!std::is_same_v<std::remove_cvref_t<FreeFunction>, FunctionView> && detail::invocable_r<FreeFunction, Ret, Args...> && detail::function_pointer_convertible<FreeFunction, Ret, Args...>)
GREM_ALWAYS_INLINE constexpr FunctionView (FreeFunction &&function) noexcept
template<typename Functor>
requires (!std::is_same_v<std::remove_cvref_t<Functor>, FunctionView> && detail::invocable_r<Functor, Ret, Args...> && !detail::function_pointer_convertible<Functor, Ret, Args...>)
GREM_ALWAYS_INLINE constexpr FunctionView (Functor &&functor) noexcept
constexpr ~FunctionView ()=default
constexpr FunctionView (const FunctionView &)=default
constexpr FunctionView (FunctionView &&) noexcept=default
constexpr FunctionView & operator= (const FunctionView &)=default
constexpr FunctionView & operator= (FunctionView &&) noexcept=default
GREM_ALWAYS_INLINE constexpr decltype(auto) operator() (Args... args) const noexcept(noexcept(dispatcher(data, std::forward< Args >(args)...)))
GREM_ALWAYS_INLINE constexpr bool operator== (const FunctionView &other) const

Constructor & Destructor Documentation

◆ FunctionView() [1/4]

template<typename Ret, typename... Args>
template<typename FreeFunction>
requires (!std::is_same_v<std::remove_cvref_t<FreeFunction>, FunctionView> && detail::invocable_r<FreeFunction, Ret, Args...> && detail::function_pointer_convertible<FreeFunction, Ret, Args...>)
GREM_ALWAYS_INLINE constexpr grem::FunctionView< Ret(Args...)>::FunctionView ( FreeFunction && function)
inlineconstexprnoexcept

◆ FunctionView() [2/4]

template<typename Ret, typename... Args>
template<typename Functor>
requires (!std::is_same_v<std::remove_cvref_t<Functor>, FunctionView> && detail::invocable_r<Functor, Ret, Args...> && !detail::function_pointer_convertible<Functor, Ret, Args...>)
GREM_ALWAYS_INLINE constexpr grem::FunctionView< Ret(Args...)>::FunctionView ( Functor && functor)
inlineconstexprnoexcept

◆ ~FunctionView()

template<typename Ret, typename... Args>
grem::FunctionView< Ret(Args...)>::~FunctionView ( )
constexprdefault

◆ FunctionView() [3/4]

template<typename Ret, typename... Args>
grem::FunctionView< Ret(Args...)>::FunctionView ( const FunctionView< Ret(Args...)> & )
constexprdefault

◆ FunctionView() [4/4]

template<typename Ret, typename... Args>
grem::FunctionView< Ret(Args...)>::FunctionView ( FunctionView< Ret(Args...)> && )
constexprdefaultnoexcept

Member Function Documentation

◆ operator=() [1/2]

template<typename Ret, typename... Args>
FunctionView & grem::FunctionView< Ret(Args...)>::operator= ( const FunctionView< Ret(Args...)> & )
constexprdefault

◆ operator=() [2/2]

template<typename Ret, typename... Args>
FunctionView & grem::FunctionView< Ret(Args...)>::operator= ( FunctionView< Ret(Args...)> && )
constexprdefaultnoexcept

◆ operator()()

template<typename Ret, typename... Args>
GREM_ALWAYS_INLINE constexpr decltype(auto) grem::FunctionView< Ret(Args...)>::operator() ( Args... args) const
inlineconstexprnoexcept

◆ operator==()

template<typename Ret, typename... Args>
GREM_ALWAYS_INLINE constexpr bool grem::FunctionView< Ret(Args...)>::operator== ( const FunctionView< Ret(Args...)> & other) const
inlinenodiscardconstexpr

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