emlabcpp
modern opinionated embedded C++ library
emlabcpp::rpc Namespace Reference

MIT License. More...

Classes

struct  void_return_type
 
struct  reactor_error
 
struct  reply_error
 
struct  error
 
struct  traits
 
struct  traits< std::tuple< Calls... > >
 
class  reactor
 
class  controller
 
struct  derive
 
class  class_wrapper
 
struct  bind
 
class  bind_wrapper
 

Typedefs

template<typename Wrapper >
using wrapper_traits = traits< typename Wrapper::call_defs >
 

Functions

template<typename CallDefs >
static constexpr std::size_t get_call_index (auto id)
 

Detailed Description

MIT License.

Copyright (c) 2025 Jan Veverak Koniarik

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Class Documentation

◆ emlabcpp::rpc::void_return_type

struct emlabcpp::rpc::void_return_type

◆ emlabcpp::rpc::reactor_error

struct emlabcpp::rpc::reactor_error
+ Collaboration diagram for emlabcpp::rpc::reactor_error:
Class Members
error_record record

◆ emlabcpp::rpc::reply_error

struct emlabcpp::rpc::reply_error
Class Members
size_t expected_index
size_t index

◆ emlabcpp::rpc::error

struct emlabcpp::rpc::error
Class Members
variant< reactor_error, error_record, reply_error > er

◆ emlabcpp::rpc::traits

struct emlabcpp::rpc::traits

template<typename T>
struct emlabcpp::rpc::traits< T >

◆ emlabcpp::rpc::traits< std::tuple< Calls... > >

struct emlabcpp::rpc::traits< std::tuple< Calls... > >

template<typename... Calls>
struct emlabcpp::rpc::traits< std::tuple< Calls... > >

Class Members
call_defs
typedef variant< reply_group, reactor_error > outter_reply_group
reply_group
typedef message< max_size > reply_message_type
typedef traits_for< outter_reply_group > reply_traits
typedef typename traits_for< outter_reply_group >::value_type reply_type
typedef typename traits_for< reply_group >::value_type reply_variant
request_group
typedef message< max_size > request_message_type
typedef traits_for< request_type > request_traits
typedef typename traits_for< request_group >::value_type request_type

Typedef Documentation

◆ wrapper_traits

template<typename Wrapper >
using emlabcpp::rpc::wrapper_traits = typedef traits< typename Wrapper::call_defs >

Function Documentation

◆ get_call_index()

template<typename CallDefs >
static constexpr std::size_t emlabcpp::rpc::get_call_index ( auto  id)
staticconstexpr