aether::netcode::transcode::as_uint64< T > Struct Template Reference

#include <transcode.hh>

Public Types

using Output = uint64_t
 
using Input = T
 

Public Member Functions

bool apply (const T &input, uint64_t &output) override final
 transform input into output More...
 
bool invert (const uint64_t &_input, T &output) override final
 invert the tranformation More...
 

Member Typedef Documentation

using aether::netcode::transcode::transform_base< T , uint64_t >::Input = T
inherited
using aether::netcode::transcode::transform_base< T , uint64_t >::Output = uint64_t
inherited

Member Function Documentation

template<typename T >
bool aether::netcode::transcode::as_uint64< T >::apply ( const T &  input,
uint64_t &  output 
)
inlinefinaloverridevirtual

transform input into output

Returns
whether the input is valid

Implements aether::netcode::transcode::transform_base< T, uint64_t >.

template<typename T >
bool aether::netcode::transcode::as_uint64< T >::invert ( const uint64_t &  input,
T &  output 
)
inlinefinaloverridevirtual

invert the tranformation

Returns
whehter input is valid

Implements aether::netcode::transcode::transform_base< T, uint64_t >.