aether::netcode::transcode::transform_base< S, T > Struct Template Referenceabstract

Base for transformers. More...

#include <transcode.hh>

Public Types

using Output = T
 
using Input = S
 

Public Member Functions

virtual bool apply (const S &input, T &output)=0
 transform input into output More...
 
virtual bool invert (const T &input, S &output)=0
 invert the tranformation More...
 
virtual ~transform_base ()
 

Detailed Description

template<typename S, typename T>
struct aether::netcode::transcode::transform_base< S, T >

Base for transformers.

Transcoders are basically semi-inversible functions that takes an S and returns a T;

Member Typedef Documentation

template<typename S, typename T>
using aether::netcode::transcode::transform_base< S, T >::Input = S
template<typename S, typename T>
using aether::netcode::transcode::transform_base< S, T >::Output = T

Constructor & Destructor Documentation

template<typename S, typename T>
virtual aether::netcode::transcode::transform_base< S, T >::~transform_base ( )
inlinevirtual

Member Function Documentation

template<typename S, typename T>
virtual bool aether::netcode::transcode::transform_base< S, T >::apply ( const S &  input,
T &  output 
)
pure virtual
template<typename S, typename T>
virtual bool aether::netcode::transcode::transform_base< S, T >::invert ( const T &  input,
S &  output 
)
pure virtual