Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Static Public Member Functions
string::generate::RandomStringFactory Class Reference

#include <RandomStringFactory.h>

Static Public Member Functions

static string::LinearString< std::string > generateLinearString (size_t size, size_t alphabetSize, bool randomizedAlphabet, bool integerSymbols)
 
static string::LinearString< std::string > generateLinearString (size_t size, size_t alphabetSize, bool randomizedAlphabet)
 
template<class SymbolType >
static string::LinearString< SymbolType > generateLinearString (size_t size, ext::set< SymbolType > alphabet)
 
template<class SymbolType >
static string::LinearString< SymbolType > generateLinearString (size_t size, ext::vector< SymbolType > alphabet)
 

Detailed Description

Generator of random strings.

Member Function Documentation

◆ generateLinearString() [1/4]

template<class SymbolType >
string::LinearString< SymbolType > string::generate::RandomStringFactory::generateLinearString ( size_t  size,
ext::set< SymbolType >  alphabet 
)
static

Generates a random string of given size

Template Parameters
SymbolTypethe type of symbols of the random string
Parameters
sizethe length of the generated string
alphabetalphabet of the generated string
Returns
random string
Here is the call graph for this function:

◆ generateLinearString() [2/4]

template<class SymbolType >
string::LinearString< SymbolType > string::generate::RandomStringFactory::generateLinearString ( size_t  size,
ext::vector< SymbolType >  alphabet 
)
static

Generates a random string of given size

Template Parameters
SymbolTypethe type of symbols of the random string
Parameters
sizethe length of the generated string
alphabetalphabet of the generated string
Returns
random string

◆ generateLinearString() [3/4]

string::LinearString< std::string > string::generate::RandomStringFactory::generateLinearString ( size_t  size,
size_t  alphabetSize,
bool  randomizedAlphabet 
)
static

Generates a random string of given size.

Parameters
sizethe length of the generated string
alphabetSizesize of the alphabet (1-26 for characters)
randomizedAlphabetselects random symbols from a-z range if true
Returns
random string
Here is the call graph for this function:

◆ generateLinearString() [4/4]

string::LinearString< std::string > string::generate::RandomStringFactory::generateLinearString ( size_t  size,
size_t  alphabetSize,
bool  randomizedAlphabet,
bool  integerSymbols 
)
static

Generates a random string of given size.

Parameters
sizethe length of the generated string
alphabetSizesize of the alphabet (1-26 for characters and 0-INT_MAX for integers)
randomizedAlphabetselects random symbols from a-z range if true
integerSymbolsuse integers as symbols in the generated string is true, randomize alphabet is not used if integer alphabet is requested
Returns
random string
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: