DataKey
DataKey
Strong type wrapper for data keys used to index data objects in DataManager.
#include <StrongKeyTypes.hpp>
Public Functions
| Name | |
|---|---|
| DataKey() =default Construct an empty DataKey. |
|
| DataKey(std::string value) Explicitly construct from std::string. |
|
| DataKey(std::string_view value) Explicitly construct from std::string_view. |
|
| std::string const & | str() const Access the underlying string value. |
| bool | empty() const Check if the key is empty. |
| bool | operator==(DataKey const & other) const |
| bool | operator!=(DataKey const & other) const |
| bool | operator<(DataKey const & other) const |
| DataKey() =default Construct an empty DataKey. |
|
| DataKey(std::string value) Explicitly construct from std::string. |
|
| DataKey(std::string_view value) Explicitly construct from std::string_view. |
|
| std::string const & | str() const Access the underlying string value. |
| bool | empty() const Check if the key is empty. |
| bool | operator==(DataKey const & other) const |
| bool | operator!=(DataKey const & other) const |
| bool | operator<(DataKey const & other) const |
Public Functions Documentation
function DataKey
DataKey() =defaultConstruct an empty DataKey.
function DataKey
inline explicit DataKey(
std::string value
)Explicitly construct from std::string.
Parameters:
- value Key string
function DataKey
inline explicit DataKey(
std::string_view value
)Explicitly construct from std::string_view.
Parameters:
- value Key string view
function str
inline std::string const & str() constAccess the underlying string value.
function empty
inline bool empty() constCheck if the key is empty.
function operator==
inline bool operator==(
DataKey const & other
) constfunction operator!=
inline bool operator!=(
DataKey const & other
) constfunction operator<
inline bool operator<(
DataKey const & other
) constfunction DataKey
DataKey() =defaultConstruct an empty DataKey.
function DataKey
inline explicit DataKey(
std::string value
)Explicitly construct from std::string.
Parameters:
- value Key string
function DataKey
inline explicit DataKey(
std::string_view value
)Explicitly construct from std::string_view.
Parameters:
- value Key string view
function str
inline std::string const & str() constAccess the underlying string value.
function empty
inline bool empty() constCheck if the key is empty.
function operator==
inline bool operator==(
DataKey const & other
) constfunction operator!=
inline bool operator!=(
DataKey const & other
) constfunction operator<
inline bool operator<(
DataKey const & other
) constUpdated on 2026-11-13 at 20:25:41 +0000