Galactic Bloodshed
Public Member Functions | Private Attributes | List of all members
IterativeNameGenerator Class Reference

#include <namegen.h>

Inheritance diagram for IterativeNameGenerator:
Collaboration diagram for IterativeNameGenerator:

Public Member Functions

 IterativeNameGenerator (std::string::iterator start, std::string::iterator end)
 
virtual bool next ()
 
virtual const std::string & current ()
 

Private Attributes

std::string::iterator head
 
std::string::iterator tail
 
std::string current_value
 

Additional Inherited Members

- Private Member Functions inherited from NameGenerator
virtual ~NameGenerator ()
 
auto begin ()
 
auto end ()
 

Detailed Description

Definition at line 87 of file namegen.h.

Constructor & Destructor Documentation

◆ IterativeNameGenerator()

IterativeNameGenerator::IterativeNameGenerator ( std::string::iterator  start,
std::string::iterator  end 
)
inline

Definition at line 89 of file namegen.h.

References IterativeNameGenerator().

Referenced by IterativeNameGenerator().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ current()

virtual const std::string& IterativeNameGenerator::current ( )
inlinevirtual

Implements NameGenerator.

Definition at line 92 of file namegen.h.

◆ next()

bool IterativeNameGenerator::next ( )
virtual

Implements NameGenerator.

Definition at line 20 of file namegen.cc.

Member Data Documentation

◆ current_value

std::string IterativeNameGenerator::current_value
private

Definition at line 97 of file namegen.h.

◆ head

std::string::iterator IterativeNameGenerator::head
private

Definition at line 95 of file namegen.h.

◆ tail

std::string::iterator IterativeNameGenerator::tail
private

Definition at line 96 of file namegen.h.


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