Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem > Class Template Reference

#include <crc.hpp>

Public Types

typedef masking_type::fast value_type
 

Public Member Functions

 BOOST_STATIC_CONSTANT (std::size_t, bit_count=Bits)
 
 BOOST_STATIC_CONSTANT (value_type, truncated_polynominal=TruncPoly)
 
 BOOST_STATIC_CONSTANT (value_type, initial_remainder=InitRem)
 
 BOOST_STATIC_CONSTANT (value_type, final_xor_value=FinalXor)
 
 BOOST_STATIC_CONSTANT (bool, reflect_input=ReflectIn)
 
 BOOST_STATIC_CONSTANT (bool, reflect_remainder=ReflectRem)
 
 crc_optimal (value_type init_rem=InitRem)
 
value_type get_truncated_polynominal () const
 
value_type get_initial_remainder () const
 
value_type get_final_xor_value () const
 
bool get_reflect_input () const
 
bool get_reflect_remainder () const
 
value_type get_interim_remainder () const
 
void reset (value_type new_rem=InitRem)
 
void process_byte (unsigned char byte)
 
void process_block (void const *bytes_begin, void const *bytes_end)
 
void process_bytes (void const *buffer, std::size_t byte_count)
 
value_type checksum () const
 
void operator() (unsigned char byte)
 
value_type operator() () const
 

Member Typedef Documentation

template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
typedef masking_type::fast boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::value_type

Constructor & Destructor Documentation

template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::crc_optimal ( value_type  init_rem = InitRem)
inlineexplicit

Member Function Documentation

template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::BOOST_STATIC_CONSTANT ( std::size_t  ,
bit_count  = Bits 
)
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::BOOST_STATIC_CONSTANT ( value_type  ,
truncated_polynominal  = TruncPoly 
)
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::BOOST_STATIC_CONSTANT ( value_type  ,
initial_remainder  = InitRem 
)
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::BOOST_STATIC_CONSTANT ( value_type  ,
final_xor_value  = FinalXor 
)
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::BOOST_STATIC_CONSTANT ( bool  ,
reflect_input  = ReflectIn 
)
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::BOOST_STATIC_CONSTANT ( bool  ,
reflect_remainder  = ReflectRem 
)
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::value_type boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::checksum ( ) const
inline
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::value_type boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::get_final_xor_value ( ) const
inline
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::value_type boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::get_initial_remainder ( ) const
inline
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::value_type boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::get_interim_remainder ( ) const
inline
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
bool boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::get_reflect_input ( ) const
inline
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
bool boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::get_reflect_remainder ( ) const
inline
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::value_type boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::get_truncated_polynominal ( ) const
inline
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
void boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::operator() ( unsigned char  byte)
inline
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::value_type boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::operator() ( ) const
inline
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
void boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::process_block ( void const *  bytes_begin,
void const *  bytes_end 
)
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
void boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::process_byte ( unsigned char  byte)
inline
template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
void boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::process_bytes ( void const *  buffer,
std::size_t  byte_count 
)
inline

References boost::asio::b, and boost::buffer().

template<std::size_t Bits, typename::boost::uint_t< Bits >::fast TruncPoly, typename::boost::uint_t< Bits >::fast InitRem, typename::boost::uint_t< Bits >::fast FinalXor, bool ReflectIn, bool ReflectRem>
void boost::crc_optimal< Bits, TruncPoly, InitRem, FinalXor, ReflectIn, ReflectRem >::reset ( value_type  new_rem = InitRem)
inline

The documentation for this class was generated from the following file: