aether::netcode::transcode::transcode_base< T > Struct Template Referenceabstract

Base interface for Transcoders. More...

#include <transcode.hh>

Public Types

using Item = T
 

Public Member Functions

virtual bool encode (const T &input, bit_appender &w)=0
 
virtual bool encode_stream (io::reader &r, bit_appender &w)
 
virtual bool decode (bit_stream &r, T &out)=0
 
virtual bool decode_stream (bit_stream &r, io::writer &w)
 
virtual ~transcode_base ()
 

Detailed Description

template<typename T>
struct aether::netcode::transcode::transcode_base< T >

Base interface for Transcoders.

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<typename T>
virtual aether::netcode::transcode::transcode_base< T >::~transcode_base ( )
inlinevirtual

Member Function Documentation

template<typename T>
virtual bool aether::netcode::transcode::transcode_base< T >::decode_stream ( bit_stream r,
io::writer w 
)
inlinevirtual
template<typename T>
virtual bool aether::netcode::transcode::transcode_base< T >::encode_stream ( io::reader r,
bit_appender w 
)
inlinevirtual