Lightweight 0.20250627.0
Loading...
Searching...
No Matches
UniqueNameBuilder Class Reference

Maintains collisions to create unique names. More...

#include <Utils.hpp>

Public Member Functions

LIGHTWEIGHT_API bool IsColliding (std::string const &name) const noexcept
 Tests if the given name is already registered.
 
LIGHTWEIGHT_API std::optional< std::string > TryDeclareName (std::string name)
 Tries to declare a name and returns it, otherwise returns std::nullopt.
 
LIGHTWEIGHT_API std::string DeclareName (std::string name)
 Creates a name that is definitely not colliding.
 

Detailed Description

Maintains collisions to create unique names.

Definition at line 257 of file Utils.hpp.


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