tudocomp
– The TU Dortmund Compression Framework
tdc::Generator Class Referenceabstract

Base for string generators. More...

#include <Generator.hpp>

Inheritance diagram for tdc::Generator:
tdc::Algorithm tdc::FibonacciGenerator tdc::RandomUniformGenerator tdc::RunRichGenerator tdc::ThueMorseGenerator

Public Member Functions

virtual std::string generate ()=0
 Generates a string based on the environment settings. More...
 
- Public Member Functions inherited from tdc::Algorithm
virtual ~Algorithm ()=default
 
 Algorithm (Algorithm const &)=default
 
 Algorithm (Algorithm &&)=default
 
Algorithmoperator= (Algorithm const &)=default
 
Algorithmoperator= (Algorithm &&)=default
 
 Algorithm (Env &&env)
 Instantiates an algorithm in the specified environment. More...
 
Envenv ()
 Provides access to the environment that the algorithm works in. More...
 
const Envenv () const
 

Detailed Description

Base for string generators.

Definition at line 13 of file Generator.hpp.

Member Function Documentation

◆ generate()

virtual std::string tdc::Generator::generate ( )
pure virtual

Generates a string based on the environment settings.

Returns
the generated string.

Implemented in tdc::RandomUniformGenerator, tdc::RunRichGenerator, tdc::FibonacciGenerator, and tdc::ThueMorseGenerator.


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