The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
markov_generator Class Reference

#include <markov_generator.hpp>

Inheritance diagram for markov_generator:
Inheritance graph

Public Member Functions

 markov_generator (const std::vector< std::string > &items, size_t chain_size, size_t max_len)
 
std::string generate () const override
 
- Public Member Functions inherited from name_generator
virtual bool is_valid () const
 
virtual ~name_generator ()
 

Private Attributes

markov_prefix_map prefixes_
 
size_t chain_size_
 
size_t max_len_
 

Detailed Description

Definition at line 24 of file markov_generator.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

std::string markov_generator::generate ( ) const
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().

Member Data Documentation

size_t markov_generator::chain_size_
private

Definition at line 26 of file markov_generator.hpp.

Referenced by generate().

size_t markov_generator::max_len_
private

Definition at line 26 of file markov_generator.hpp.

Referenced by generate().

markov_prefix_map markov_generator::prefixes_
private

Definition at line 25 of file markov_generator.hpp.

Referenced by generate().


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