aether::netcode::transcode::transform_coder< T, Transformer, Coder > Struct Template Referencefinal

A coder that transforms the input with Transformer, then encodes it with Coder More...

#include <transcode.hh>

Public Types

using Item = T
 

Public Member Functions

bool encode (const T &input, bit_appender &w) override final
 
bool decode (bit_stream &r, T &out) override final
 
virtual bool encode_stream (io::reader &r, bit_appender &w)
 
virtual bool decode_stream (bit_stream &r, io::writer &w)
 

Static Public Attributes

static constexpr size_t bit_size = Coder::bit_size
 

Detailed Description

template<typename T, typename Transformer, typename Coder>
struct aether::netcode::transcode::transform_coder< T, Transformer, Coder >

A coder that transforms the input with Transformer, then encodes it with Coder

Member Typedef Documentation

template<typename T>
using aether::netcode::transcode::transcode_base< T >::Item = T
inherited

Member Function Documentation

template<typename T , typename Transformer , typename Coder >
bool aether::netcode::transcode::transform_coder< T, Transformer, Coder >::decode ( bit_stream r,
T &  out 
)
inlinefinaloverridevirtual
template<typename T>
virtual bool aether::netcode::transcode::transcode_base< T >::decode_stream ( bit_stream r,
io::writer w 
)
inlinevirtualinherited
template<typename T , typename Transformer , typename Coder >
bool aether::netcode::transcode::transform_coder< T, Transformer, Coder >::encode ( const T &  input,
bit_appender w 
)
inlinefinaloverridevirtual
template<typename T>
virtual bool aether::netcode::transcode::transcode_base< T >::encode_stream ( io::reader r,
bit_appender w 
)
inlinevirtualinherited

Member Data Documentation

template<typename T , typename Transformer , typename Coder >
constexpr size_t aether::netcode::transcode::transform_coder< T, Transformer, Coder >::bit_size = Coder::bit_size
static