#include <markov_generator.hpp>
Public Member Functions | |
markov_generator (const std::vector< std::string > &items, std::size_t chain_size, std::size_t max_len) | |
std::string | generate () const override |
Public Member Functions inherited from name_generator | |
std::string | generate (const std::map< std::string, std::string > &variables) const |
name_generator () | |
virtual | ~name_generator () |
Private Attributes | |
markov_prefix_map | prefixes_ |
std::size_t | chain_size_ |
std::size_t | max_len_ |
Definition at line 24 of file markov_generator.hpp.
markov_generator::markov_generator | ( | const std::vector< std::string > & | items, |
std::size_t | chain_size, | ||
std::size_t | max_len | ||
) |
Definition at line 127 of file markov_generator.cpp.
|
overridevirtual |
Reimplemented from name_generator.
Definition at line 134 of file markov_generator.cpp.
References chain_size_, markov_generate_name(), max_len_, and prefixes_.
|
private |
Definition at line 26 of file markov_generator.hpp.
Referenced by generate().
|
private |
Definition at line 26 of file markov_generator.hpp.
Referenced by generate().
|
private |
Definition at line 25 of file markov_generator.hpp.
Referenced by generate().