Nameless Engine
Loading...
Searching...
No Matches
ne::UniqueValueGenerator Class Reference

#include <UniqueValueGenerator.h>

Public Member Functions

 UniqueValueGenerator (const UniqueValueGenerator &)=delete
 
UniqueValueGeneratoroperator= (const UniqueValueGenerator &)=delete
 
std::string getUniqueWindowName ()
 

Static Public Member Functions

static UniqueValueGeneratorget ()
 

Private Attributes

unsigned long long iWindowCounter = 0
 

Detailed Description

Used to generate unique values and names.

Member Function Documentation

◆ get()

UniqueValueGenerator & ne::UniqueValueGenerator::get ( )
static

Returns a reference to the generator instance. If no instance was created yet, this function will create it and return a reference to it.

Returns
Reference to the generator instance.

◆ getUniqueWindowName()

std::string ne::UniqueValueGenerator::getUniqueWindowName ( )

Returns a unique window name.

Returns
Unique window name.

Member Data Documentation

◆ iWindowCounter

unsigned long long ne::UniqueValueGenerator::iWindowCounter = 0
private

Used to make sure that window class names are unique.


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