Kagome
Polkadot Runtime Engine in C++17
kagome::network::MessageReadWriter< Adapter, Ancestor > Struct Template Referencefinal

#include <message_read_writer.hpp>

Collaboration diagram for kagome::network::MessageReadWriter< Adapter, Ancestor >:

Public Types

using AncestorType = Ancestor
 
using AdapterType = Adapter
 
using BufferContainer = std::vector< uint8_t >
 
using SelfType = MessageReadWriter< AdapterType, AncestorType >
 

Public Member Functions

 MessageReadWriter ()=default
 
 ~MessageReadWriter ()=default
 
 MessageReadWriter (MessageReadWriter &&) noexcept=default
 
MessageReadWriteroperator= (MessageReadWriter &&) noexcept=default
 
 MessageReadWriter (const MessageReadWriter &)=delete
 
MessageReadWriteroperator= (const MessageReadWriter &)=delete
 

Static Public Member Functions

template<typename T >
static size_t need_to_reserve (const T &t)
 
template<typename T >
static BufferContainer::iterator write (const T &t, BufferContainer &out, size_t reserved=0ull)
 
template<typename T >
static outcome::result< BufferContainer::const_iterator > read (T &out, const BufferContainer &src, BufferContainer::const_iterator from)
 

Detailed Description

template<typename Adapter, typename Ancestor>
struct kagome::network::MessageReadWriter< Adapter, Ancestor >

Chain specific messages read-writer

Definition at line 28 of file message_read_writer.hpp.

Member Typedef Documentation

template<typename Adapter, typename Ancestor>
using kagome::network::MessageReadWriter< Adapter, Ancestor >::AdapterType = Adapter

Definition at line 30 of file message_read_writer.hpp.

template<typename Adapter, typename Ancestor>
using kagome::network::MessageReadWriter< Adapter, Ancestor >::AncestorType = Ancestor

Definition at line 29 of file message_read_writer.hpp.

template<typename Adapter, typename Ancestor>
using kagome::network::MessageReadWriter< Adapter, Ancestor >::BufferContainer = std::vector<uint8_t>

Definition at line 31 of file message_read_writer.hpp.

template<typename Adapter, typename Ancestor>
using kagome::network::MessageReadWriter< Adapter, Ancestor >::SelfType = MessageReadWriter<AdapterType, AncestorType>

Definition at line 32 of file message_read_writer.hpp.

Constructor & Destructor Documentation

template<typename Adapter, typename Ancestor>
kagome::network::MessageReadWriter< Adapter, Ancestor >::MessageReadWriter ( )
default
template<typename Adapter, typename Ancestor>
kagome::network::MessageReadWriter< Adapter, Ancestor >::~MessageReadWriter ( )
default
template<typename Adapter, typename Ancestor>
kagome::network::MessageReadWriter< Adapter, Ancestor >::MessageReadWriter ( MessageReadWriter< Adapter, Ancestor > &&  )
defaultnoexcept
template<typename Adapter, typename Ancestor>
kagome::network::MessageReadWriter< Adapter, Ancestor >::MessageReadWriter ( const MessageReadWriter< Adapter, Ancestor > &  )
delete

Member Function Documentation

template<typename Adapter, typename Ancestor>
template<typename T >
static size_t kagome::network::MessageReadWriter< Adapter, Ancestor >::need_to_reserve ( const T &  t)
inlinestatic

Definition at line 46 of file message_read_writer.hpp.

template<typename Adapter, typename Ancestor>
MessageReadWriter& kagome::network::MessageReadWriter< Adapter, Ancestor >::operator= ( MessageReadWriter< Adapter, Ancestor > &&  )
defaultnoexcept
template<typename Adapter, typename Ancestor>
MessageReadWriter& kagome::network::MessageReadWriter< Adapter, Ancestor >::operator= ( const MessageReadWriter< Adapter, Ancestor > &  )
delete
template<typename Adapter, typename Ancestor>
template<typename T >
static outcome::result<BufferContainer::const_iterator> kagome::network::MessageReadWriter< Adapter, Ancestor >::read ( T &  out,
const BufferContainer src,
BufferContainer::const_iterator  from 
)
inlinestatic

Definition at line 67 of file message_read_writer.hpp.

template<typename Adapter, typename Ancestor>
template<typename T >
static BufferContainer::iterator kagome::network::MessageReadWriter< Adapter, Ancestor >::write ( const T &  t,
BufferContainer out,
size_t  reserved = 0ull 
)
inlinestatic

Definition at line 51 of file message_read_writer.hpp.


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