Player12
An open source football management simulator
Loading...
Searching...
No Matches
NameRegistry Class Reference

Full names in use in a world, so that no two players share one. More...

#include <world_generation.h>

Public Member Functions

bool isAvailable (const std::string &full_name) const
 
void claim (const std::string &full_name)
 
void clear ()
 
std::size_t size () const
 

Private Attributes

std::unordered_set< std::string > names
 

Detailed Description

Full names in use in a world, so that no two players share one.

Member Function Documentation

◆ claim()

void NameRegistry::claim ( const std::string &  full_name)

◆ clear()

void NameRegistry::clear ( )
inline

◆ isAvailable()

bool NameRegistry::isAvailable ( const std::string &  full_name) const

Not taken yet and not a reserved real name.

◆ size()

std::size_t NameRegistry::size ( ) const
inline

Member Data Documentation

◆ names

std::unordered_set<std::string> NameRegistry::names
private

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