SPH
|
#include <StringUtils.h>
Public Member Functions | |
UniqueNameManager ()=default | |
UniqueNameManager (ArrayView< const std::string > initial) | |
std::string | getName (const std::string &name) |
Helper class for generating unique names.
Calling getName stores the name in the object. If the function is called with the same parameter for the second time, the name is made unique by appending a suitable suffix.
Definition at line 46 of file StringUtils.h.
|
default |
|
explicit |
Definition at line 241 of file StringUtils.cpp.
std::string UniqueNameManager::getName | ( | const std::string & | name | ) |
Definition at line 247 of file StringUtils.cpp.