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

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

namespace {

auto SuffixArrayFromBWTNaive = registration::AbstractRegister <
        stringology::indexing::SuffixArrayFromBWTNaive,
        indexes::stringology::SuffixArray < >,
        const string::LinearStringTerminatingSymbolBWT < > & > ( stringology::indexing::SuffixArrayFromBWTNaive::construct ).setDocumentation (
                "Construct a suffix array of the decoded string from the transformed string. The terminating symbol is removed in the process and the suffix array is shifted accordingly.\n"
                "\n"
                "@tparam SymbolType\n"
                "@param str the input BWT-encoded string\n"
                "@return the suffix array of the original (decoded) string" );

auto SuffixArrayFromBWTNaiveWithData = registration::AbstractRegister <
        stringology::indexing::SuffixArrayFromBWTNaive,
        indexes::stringology::SuffixArray < >,
        const string::LinearStringTerminatingSymbolBWT < > &,
        const indexes::stringology::BWTAuxiliaryData < > & > ( stringology::indexing::SuffixArrayFromBWTNaive::construct ).setDocumentation (
        "Construct a suffix array of the decoded string from the transformed string, reusing precomputed auxiliary data.. The terminating symbol is removed in the process and the suffix array is shifted accordingly.\n"
        "Required data types are W_FORWARD_DECODE and 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 suffix array of the original (decoded) string" );

} /* namespace */
