Effective implementation of algorithms (Master Thesis)
Effective and error-free implementation of algorithms
|
#include <sequence_loader.h>
Static Public Member Functions | |
static std::vector< unsigned char > | loadSequence (const char *filename, const std::map< unsigned char, unsigned char > &conversion_map) |
Implementation of file reader which can re-map input characters according to same map.
This class is useful for testing string manipulations, as you can re-map 256 character alphabet to anything you want.
static std::vector<unsigned char> strings::utils::SequenceLoader::loadSequence | ( | const char * | filename, |
const std::map< unsigned char, unsigned char > & | conversion_map | ||
) | [inline, static] |
Load sequence of re-mapped characters from input file
filename | |
map | which characters match to which value, if the character read on input is not included in the map, it won't appear in the resulting sequence. |