modm API documentation
modm::amnb::Action Struct Reference

Public Member Functions

template<typename A , typename F = get_callable_signature_t<std::remove_cvref_t<A>>>
 Action (int command, A &&action)
 

Protected Typedefs

template<class Signature >
using function = modm::inplace_function< Signature, MODM_AMNB_HANDLER_STORAGE, alignof (void *)>
 
using Storage = modm::inplace_any< MODM_AMNB_HANDLER_STORAGE+sizeof (void *)>
 
using Redirect = Message (const Message &msg, Storage *cb)
 

Protected Member Functions

auto getRedirect (Response (*)())
 
template<typename T >
auto getRedirect (Response (*)(const T &))
 
auto getRedirect (Response (*)(const uint8_t *, size_t))
 
auto getRedirect (void (*)())
 
template<typename T >
auto getRedirect (void (*)(const T &))
 
auto getRedirect (void (*)(const uint8_t *, size_t))
 
Message call (const Message &msg)
 

Protected Attributes

const uint8_t command
 
Storage callback
 
Redirect *const redirect
 

Friends

template<size_t , size_t >
class Node
 

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