Class NameGenerator#

Class Documentation#

class NameGenerator#

Public Functions

NameGenerator(size_t first_id = 1)#
NameGenerator(const std::string &pre, size_t first_id = 1, const std::string &suf = std::string(""))#
inline virtual ~NameGenerator(void)#
size_t id(void) const#

Returns the current ID number.

std::string prefix(void) const#

Returns the prefix.

std::string suffix(void) const#

Returns the suffix.

virtual std::string current(void) const#

Returns the current name, based on the current ID number.

std::string next(void)#

Returns the next name, updating the current ID number.