Project

General

Profile

Actions

Task #2494

closed

Backward-compatible refactoring of EncodingBuffer (EncodingImpl class template)

Added by Alex Afanasyev almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Category:
Base
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:

Description

Right now code in encoding/encoding-buffer.hpp is "a little bit" messy and lacks proper doxygen documentation.

This task is to do refactoring of the implementation with move of what can be moved to .cpp files.

Refactoring highlights:

namespace encoding {
class Encoder; // class (not a class template) for encoding
class Estimator; // class (not a class template) for estimation

// both Encoder and Estimator share similar interface for prepend/append

template<bool isRealEncoderNotEstimator>
class EncodingImpl;
}

typedef encoding::EncodingImpl<true> EncodingBuffer;
typedef encoding::EncodingImpl<false> EncodingEstimator;

using encoding::EncodingImpl;
Actions

Also available in: Atom PDF