nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params > Struct Template Reference

#include <varlength_block_stream_processor.hpp>

+ Collaboration diagram for nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >:

Public Types

typedef params_type::endian_type endian_type
 
typedef std::array< value_type, block_valuesvalue_array_type
 
typedef boost::uint_t< value_bits >::least value_type
 

Public Member Functions

 BOOST_STATIC_ASSERT (input_block_bits % value_bits==0)
 
template<typename ValueType >
void operator() (const std::initializer_list< ValueType > &il)
 
template<typename ValueType , typename = typename std::enable_if<std::is_same<ValueType, input_value_type>::value>::type>
void operator() (const ValueType &value)
 
template<typename InputIterator >
void operator() (InputIterator first, InputIterator last)
 
template<typename InputIterator , typename Category >
void operator() (InputIterator first, InputIterator last, Category)
 
template<typename InputIterator >
void operator() (InputIterator first, InputIterator last, std::random_access_iterator_tag)
 
void reset ()
 
 varlength_block_stream_processor (StateAccumulator &s)
 

Public Attributes

StateAccumulator & state
 

Static Public Attributes

constexpr static const std::size_t block_values = input_block_bits / value_bits
 
constexpr static const std::size_t value_bits = params_type::value_bits
 

Member Typedef Documentation

◆ endian_type

template<typename Mode , typename StateAccumulator , typename Params >
typedef params_type::endian_type nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::endian_type

◆ value_array_type

template<typename Mode , typename StateAccumulator , typename Params >
typedef std::array<value_type, block_values> nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::value_array_type

◆ value_type

template<typename Mode , typename StateAccumulator , typename Params >
typedef boost::uint_t<value_bits>::least nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::value_type

Constructor & Destructor Documentation

◆ varlength_block_stream_processor()

template<typename Mode , typename StateAccumulator , typename Params >
nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::varlength_block_stream_processor ( StateAccumulator &  s)
inline

Member Function Documentation

◆ BOOST_STATIC_ASSERT()

template<typename Mode , typename StateAccumulator , typename Params >
nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::BOOST_STATIC_ASSERT ( input_block_bits %  value_bits = =0)

◆ operator()() [1/5]

template<typename Mode , typename StateAccumulator , typename Params >
template<typename ValueType >
void nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::operator() ( const std::initializer_list< ValueType > &  il)
inline

◆ operator()() [2/5]

template<typename Mode , typename StateAccumulator , typename Params >
template<typename ValueType , typename = typename std::enable_if<std::is_same<ValueType, input_value_type>::value>::type>
void nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::operator() ( const ValueType &  value)
inline

◆ operator()() [3/5]

template<typename Mode , typename StateAccumulator , typename Params >
template<typename InputIterator >
void nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::operator() ( InputIterator  first,
InputIterator  last 
)
inline

◆ operator()() [4/5]

template<typename Mode , typename StateAccumulator , typename Params >
template<typename InputIterator , typename Category >
void nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::operator() ( InputIterator  first,
InputIterator  last,
Category   
)
inline

◆ operator()() [5/5]

template<typename Mode , typename StateAccumulator , typename Params >
template<typename InputIterator >
void nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::operator() ( InputIterator  first,
InputIterator  last,
std::random_access_iterator_tag   
)
inline

◆ reset()

template<typename Mode , typename StateAccumulator , typename Params >
void nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::reset ( )
inline

Member Data Documentation

◆ block_values

template<typename Mode , typename StateAccumulator , typename Params >
constexpr static const std::size_t nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::block_values = input_block_bits / value_bits
staticconstexpr

◆ state

template<typename Mode , typename StateAccumulator , typename Params >
StateAccumulator& nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::state

◆ value_bits

template<typename Mode , typename StateAccumulator , typename Params >
constexpr static const std::size_t nil::crypto3::codec::varlength_block_stream_processor< Mode, StateAccumulator, Params >::value_bits = params_type::value_bits
staticconstexpr

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