|
ActiveLib
|
#include <NameID.h>


Public Types | |
| using | Option = std::optional<NameID> |
| Optional. | |
Public Member Functions | |
| NameID () | |
| NameID (const String &str, const Guid &guid=Guid{}) | |
| NameID (const char *str, const Guid &guid=Guid{}) | |
| NameID (const Guid &guid, const String &str=String{}) | |
| bool | operator== (const NameID &ref) const |
| bool | operator!= (const NameID &ref) const |
| bool | operator< (const NameID &ref) const |
| operator bool () const | |
| void | clear () |
Public Attributes | |
| String | name |
| Guid | id |
A utility class for a form of identity combining a name and guid
Any combination of name and guid can be used, i.e. just name, just guid or both (depending on context). The intention is to provide a single container that can be used in a variety of contexts where names or IDs might both come into play in different combinations
|
inline |
Default constructor
Constructor
| str | The identifying name |
| guid | The guid |
Constructor
| str | The identifying name |
| guid | The guid |
Constructor
| guid | The guid |
| str | The identifying name |
|
inline |
Clear the guid value
|
inline |
Conversion operator
|
inline |
Inequality operator
| ref | The object to compare with this |
|
inline |
Less-than operator
| ref | The object to compare with this |
|
inline |
Equality operator
| ref | The object to compare with this |
