File: config.cpp

package info (click to toggle)
libsdsl 2.1.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,992 kB
  • sloc: cpp: 42,286; makefile: 1,171; ansic: 318; sh: 201; python: 27
file content (23 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "sdsl/config.hpp"
#include "sdsl/util.hpp"

namespace sdsl
{
cache_config::cache_config(bool f_delete_files, std::string f_dir, std::string f_id, tMSS f_file_map) : delete_files(f_delete_files), dir(f_dir), id(f_id), file_map(f_file_map)
{
    if ("" == id) {
        id = util::to_string(util::pid())+"_"+util::to_string(util::id());
    }
}

template<>
const char* key_text_trait<0>::KEY_TEXT = conf::KEY_TEXT_INT;
template<>
const char* key_text_trait<8>::KEY_TEXT = conf::KEY_TEXT;

template<>
const char* key_bwt_trait<0>::KEY_BWT = conf::KEY_BWT_INT;
template<>
const char* key_bwt_trait<8>::KEY_BWT = conf::KEY_BWT;

}// end namespace sdsl