PhoneBook Class

Definition

Line 4 of phonebook/phonebook.cm

Constructors & Destructor

static PhoneBook()
private PhoneBook()

Member Functions

public int GetNumber(const String<uchar>& name) const
public static PhoneBook& Instance()

Member Variables

private static UniquePtr<PhoneBook> instance
private Map<String<uchar>, int, Less<String<uchar>>> map

Constructor& Destructor Details

PhoneBook Static Constructor

static PhoneBook()

Definition
Line 6 of phonebook/phonebook.cm


PhoneBook Constructor

private PhoneBook()

Definition
Line 22 of phonebook/phonebook.cm


Member Function Details

GetNumber Member Function

public int GetNumber(const String<uchar>& name)

Definition
Line 13 of phonebook/phonebook.cm


Instance Static Member Function

public static PhoneBook& Instance()

Definition
Line 9 of phonebook/phonebook.cm