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

Surnames of one squad: at most one surname may appear twice. More...

#include <world_generation.h>

Public Member Functions

bool allows (const std::string &last_name) const
 
void add (const std::string &last_name)
 

Private Attributes

std::unordered_map< std::string, int > counts
 
bool repeated = false
 

Detailed Description

Surnames of one squad: at most one surname may appear twice.

Member Function Documentation

◆ add()

void SquadSurnames::add ( const std::string &  last_name)

◆ allows()

bool SquadSurnames::allows ( const std::string &  last_name) const

Member Data Documentation

◆ counts

std::unordered_map<std::string, int> SquadSurnames::counts
private

◆ repeated

bool SquadSurnames::repeated = false
private

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