TimeKey
TimeKey
Strong type wrapper for time frame keys used to index TimeFrame objects in DataManager.
#include <StrongKeyTypes.hpp>
Public Functions
| Name | |
|---|---|
| TimeKey() =default Construct an empty TimeKey. |
|
| TimeKey(const char * value) | |
| TimeKey(std::string value) Explicitly construct from std::string. |
|
| TimeKey(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==(TimeKey const & other) const |
| bool | operator!=(TimeKey const & other) const |
| bool | operator<(TimeKey const & other) const |
| TimeKey() =default Construct an empty TimeKey. |
|
| TimeKey(const char * value) | |
| TimeKey(std::string value) Explicitly construct from std::string. |
|
| TimeKey(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==(TimeKey const & other) const |
| bool | operator!=(TimeKey const & other) const |
| bool | operator<(TimeKey const & other) const |
Public Functions Documentation
function TimeKey
TimeKey() =defaultConstruct an empty TimeKey.
function TimeKey
inline explicit TimeKey(
const char * value
)function TimeKey
inline explicit TimeKey(
std::string value
)Explicitly construct from std::string.
Parameters:
- value Key string
function TimeKey
inline explicit TimeKey(
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==(
TimeKey const & other
) constfunction operator!=
inline bool operator!=(
TimeKey const & other
) constfunction operator<
inline bool operator<(
TimeKey const & other
) constfunction TimeKey
TimeKey() =defaultConstruct an empty TimeKey.
function TimeKey
inline explicit TimeKey(
const char * value
)function TimeKey
inline explicit TimeKey(
std::string value
)Explicitly construct from std::string.
Parameters:
- value Key string
function TimeKey
inline explicit TimeKey(
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==(
TimeKey const & other
) constfunction operator!=
inline bool operator!=(
TimeKey const & other
) constfunction operator<
inline bool operator<(
TimeKey const & other
) constUpdated on 2026-11-13 at 20:25:39 +0000