Claw  1.7.3
Public Types | Public Member Functions | List of all members
claw::rle_encoder< OutputBuffer > Class Template Reference

A class to help run-length encoding (RLE) streams. More...

#include <rle_encoder.hpp>

Public Types

typedef OutputBuffer output_buffer_type
 The type of the output buffer.
typedef
output_buffer_type::pattern_type 
pattern_type
 The type of the stored data.

Public Member Functions

template<typename Iterator >
void encode (Iterator first, Iterator last, output_buffer_type &output) const
 Encode a range of datas.

Detailed Description

template<typename OutputBuffer>
class claw::rle_encoder< OutputBuffer >

A class to help run-length encoding (RLE) streams.

Template parameters :

The OutputBuffer type must have the following typedefs :

The OutputBuffer type must have the following methods :

Author
Julien Jorge

Definition at line 58 of file rle_encoder.hpp.

Member Function Documentation

template<typename OutputBuffer >
template<typename Iterator >
void claw::rle_encoder< OutputBuffer >::encode ( Iterator  first,
Iterator  last,
output_buffer_type output 
) const

Encode a range of datas.

Parameters
firstIterator on the first data.
lastIterator past the last data.
outputThe buffer on which we write the compressed data.
Precondition
Iterator::value_type must be castable to pattern_type.

Definition at line 43 of file rle_encoder.tpp.


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