tudocomp
– The TU Dortmund Compression Framework
tdc::FibonacciGenerator Class Reference

Generates the n-th Fibonacci word. More...

#include <FibonacciGenerator.hpp>

Inheritance diagram for tdc::FibonacciGenerator:
tdc::Generator tdc::Algorithm

Public Member Functions

virtual std::string generate () override
 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
 

Static Public Member Functions

static Meta meta ()
 
static std::string generate (size_t n)
 

Detailed Description

Generates the n-th Fibonacci word.

Definition at line 8 of file FibonacciGenerator.hpp.

Member Function Documentation

◆ generate() [1/2]

static std::string tdc::FibonacciGenerator::generate ( size_t  n)
inlinestatic

Definition at line 17 of file FibonacciGenerator.hpp.

◆ generate() [2/2]

virtual std::string tdc::FibonacciGenerator::generate ( )
inlineoverridevirtual

Generates a string based on the environment settings.

Returns
the generated string.

Implements tdc::Generator.

Definition at line 40 of file FibonacciGenerator.hpp.

◆ meta()

static Meta tdc::FibonacciGenerator::meta ( )
inlinestatic

Definition at line 11 of file FibonacciGenerator.hpp.


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