aether::netcode::trivial_marshaller< 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_marshaller (const config_type &config_)
 
void set_static_data (const static_data_type &data) override
 
void add_entity (const entity_type &entity) override
 
void add_worker_data (uint64_t worker_id, const per_worker_data_type &data) override
 
void reserve (const size_t num_entities) override
 
std::vector< char > encode () const override
 

Member Typedef Documentation

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

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename Traits >
void aether::netcode::trivial_marshaller< Traits >::add_entity ( const entity_type entity)
inlineoverridevirtual
template<typename Traits >
void aether::netcode::trivial_marshaller< Traits >::add_worker_data ( uint64_t  worker_id,
const per_worker_data_type data 
)
inlineoverridevirtual
template<typename Traits >
std::vector<char> aether::netcode::trivial_marshaller< Traits >::encode ( ) const
inlineoverridevirtual
template<typename Traits >
void aether::netcode::trivial_marshaller< Traits >::reserve ( const size_t  num_entities)
inlineoverridevirtual
template<typename Traits >
void aether::netcode::trivial_marshaller< Traits >::set_static_data ( const static_data_type data)
inlineoverridevirtual