/*
 * BWTDecodeNaive.cpp
 *
 *  Created on: 17. 02. 2021
 *      Author: Martin Prokopic
 */

#include <registration/AlgoRegistration.hpp>
#include "BWTDecodeNaive.h"

namespace {

auto BWTDecodeNaive = registration::AbstractRegister <
        stringology::transform::BWTDecodeNaive,
        string::LinearString < >,
        const string::LinearStringTerminatingSymbolBWT < > & > (
        stringology::transform::BWTDecodeNaive::decode ).setDocumentation (
        "Decode a BWT-encoded string and remove terminating symbol.\n"
        "\n"
        "@tparam SymbolType\n"
        "@param str the input BWT-encoded string\n"
        "@return the decoded string with removed terminating symbol" );

auto BWTDecodeNaiveWithData = registration::AbstractRegister <
        stringology::transform::BWTDecodeNaive,
        string::LinearString < >,
        const string::LinearStringTerminatingSymbolBWT < > &,
        const indexes::stringology::BWTAuxiliaryData < > & > (
        stringology::transform::BWTDecodeNaive::decode ).setDocumentation (
        "Decode a BWT-encoded string and remove terminating symbol, reusing precomputed auxiliary data.\n"
        "This implementation uses the M and C arrays. Required data type is M_OCC_PREFIX_SUM.\n"
        "\n"
        "@tparam SymbolType\n"
        "@param str the input BWT-encoded string\n"
        "@param data precomputed auxiliary data\n"
        "@return the decoded string with removed terminating symbol" );

} /* namespace */