40template <
typename T_Key,
typename T_Value>
59 bool put(
const T_Key& key,
const T_Value& value) {
78 const T_Value&
get(
const T_Key& key,
const T_Value& defaultValue = {})
const {
82 if (item.first == key) {
100 bool exist(
const T_Key& key)
const {
104 if (item.first == key) {
126 if (item.first == key) {
void push(const T &value)
Adds an element to the end of the queue.
Definition ClearQueue.h:207
Definition IterableQueue.h:36
const T & next() const
Move to the next element and return the current element.
Definition IterableQueue.h:104
void begin() const
Initialize the iterator to the beginning of the queue.
Definition IterableQueue.h:94
bool isEnd() const
Check if the iterator has reached the end of the queue.
Definition IterableQueue.h:99
const T & current() const
Access the current element without moving the iterator.
Definition IterableQueue.h:111
bool deleteCurrent()
Remove the current element from the queue.
Definition IterableQueue.h:116
bool put(const T_Key &key, const T_Value &value)
Inserts a key-value pair into the map.
Definition Map.h:59
Pair< T_Key, T_Value > MapItem
Type alias for a key-value pair in the map.
Definition Map.h:46
bool exist(const T_Key &key) const
Checks if a key exists in the map.
Definition Map.h:100
const T_Value & get(const T_Key &key, const T_Value &defaultValue={}) const
Retrieves the value associated with a key.
Definition Map.h:78
bool remove(const T_Key &key)
Removes a key-value pair from the map.
Definition Map.h:122
auto MakePair(Args &&...args) -> decltype(std::make_pair(std::forward< Args >(args)...))
Creates a pair instance, alias for std::make_pair.
Definition Common.h:184
std::pair< T_First, T_Second > Pair
Type alias for std::pair with cleaner syntax.
Definition Common.h:169
Contains all classes and functions related to the Uniot Core.