class decoder_factory

Scope: kodo_slide

In header: #include <kodo_slide/decoder_factory.hpp>

Member functions (public)

  decoder_factory ()
decoder build ()
finite_field field () const
void initialize (decoder & codec)
void set_field (finite_field field)
void set_symbol_size (uint64_t symbol_size)
uint64_t symbol_size () const

Description

Factory for decoders. The factory is used to build and initialize decoders. If needed, e.g. for efficiency reasons, it is possible to re-initialize already built decoders in order to reuse them.

Member Function Description

decoder_factory ()

Constructor.

decoder build ()

Returns:
A new decoder.

finite_field field ()

Returns:
The finite field used.

void initialize (decoder & codec)

Parameter codec:
Initialize a decoder with the factory settings. After calling initialize the decoder will be ready for use.

void set_field (finite_field field)

Parameter field:
Set the finite field to use

void set_symbol_size (uint64_t symbol_size)

Parameter symbol_size:
Sets the size of a symbol in bytes

uint64_t symbol_size ()

Returns:
The current specified symbol size in bytes.