aether::netcode::trivial_demarshaller< Traits > Class Template Reference

#include <trivial_marshalling.hh>

Public Types

using entity_type = typename Traits::entity_type
 
using static_data_type = typename Traits::static_data_type
 
using per_worker_data_type = typename Traits::per_worker_data_type
 
using config_type = detail::trivial_marshalling_config
 

Public Member Functions

 trivial_demarshaller (const config_type &config_)
 
int decode (const void *data, size_t count) override
 
std::vector< entity_typeget_entities () const override
 
aether::optional< static_data_typeget_static_data () const override
 
std::unordered_map< uint64_t, per_worker_data_typeget_worker_data () const override
 

Member Typedef Documentation

template<typename Traits >
using aether::netcode::trivial_demarshaller< Traits >::entity_type = typename Traits::entity_type
template<typename Traits >
using aether::netcode::trivial_demarshaller< Traits >::per_worker_data_type = typename Traits::per_worker_data_type
template<typename Traits >
using aether::netcode::trivial_demarshaller< Traits >::static_data_type = typename Traits::static_data_type

Constructor & Destructor Documentation

template<typename Traits >
aether::netcode::trivial_demarshaller< Traits >::trivial_demarshaller ( const config_type config_)
inline

Member Function Documentation

template<typename Traits >
int aether::netcode::trivial_demarshaller< Traits >::decode ( const void *  data,
size_t  count 
)
inlineoverridevirtual
template<typename Traits >
std::vector<entity_type> aether::netcode::trivial_demarshaller< Traits >::get_entities ( ) const
inlineoverridevirtual
template<typename Traits >
aether::optional<static_data_type> aether::netcode::trivial_demarshaller< Traits >::get_static_data ( ) const
inlineoverridevirtual
template<typename Traits >
std::unordered_map<uint64_t, per_worker_data_type> aether::netcode::trivial_demarshaller< Traits >::get_worker_data ( ) const
inlineoverridevirtual