#include <markov_generator.hpp>
Public Member Functions | |
markov_generator (const std::vector< std::string > &items, size_t chain_size, size_t max_len) | |
std::string | generate () const override |
![]() | |
virtual bool | is_valid () const |
virtual | ~name_generator () |
Private Attributes | |
markov_prefix_map | prefixes_ |
size_t | chain_size_ |
size_t | max_len_ |
Definition at line 24 of file markov_generator.hpp.
markov_generator::markov_generator | ( | const std::vector< std::string > & | items, |
size_t | chain_size, | ||
size_t | max_len | ||
) |
Definition at line 126 of file markov_generator.cpp.
|
overridevirtual |
Implements name_generator.
Definition at line 133 of file markov_generator.cpp.
References chain_size_, markov_generate_name(), max_len_, prefixes_, and unicode_cast().
|
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().