associative_mapper.h
Go to the documentation of this file.
300 static std::pair<const_itr_t, const_itr_t> equal_range(const container_t& container, const key_t& key)
354 static std::pair<itr_t, bool> insert_key_value(container_t& container, const key_t& key, const value_t& value)
The array_range class provides a view into an underlying data structure with lower and upper limits.
Definition array_range.h:64
const_iterator end()
Returns an iterator to the element following the last element of the range.
const_iterator begin()
Returns an iterator to the first element of the range.
Definition access_levels.h:34
detail::enum_data< Enum_Type > value(string_view, Enum_Type value)
The value function should be used to add a mapping from enum name to value during the registration pr...
The associative_container_mapper class is a class template to access an associative container via one...
Definition associative_mapper.h:189
typename T::key_type key_t
An alias to the key type.
Definition associative_mapper.h:194
static itr_t begin(container_t &container)
Returns an iterator to the first element of the container.
Definition associative_mapper.h:234
typename T::const_iterator const_itr_t
An alias delcaration to the const iterator.
Definition associative_mapper.h:199
static const_itr_t begin(const container_t &container)
Returns an iterator to the first element of the container.
Definition associative_mapper.h:242
static bool is_empty(const container_t &container)
Returns the number of elements in the container.
Definition associative_mapper.h:318
static const value_t & get_value(const const_itr_t &itr)
Returns the current iterator's value as const reference.
Definition associative_mapper.h:224
static const_itr_t find(const container_t &container, const key_t &key)
Finds an element with key equivalent to key and returns its iterator.
Definition associative_mapper.h:278
typename T::iterator itr_t
An alias delcaration to the iterator.
Definition associative_mapper.h:198
static std::pair< itr_t, bool > insert_key_value(container_t &container, const key_t &key, const value_t &value)
Inserts a key-value into the container.
Definition associative_mapper.h:354
static itr_t end(container_t &container)
Returns an iterator to the element following the last element of the container.
Definition associative_mapper.h:252
static std::size_t erase(container_t &container, const key_t &key)
Removes the element (if one exists) with the key equivalent to key.
Definition associative_mapper.h:334
static void clear(container_t &container)
Removes all elements from the container.
Definition associative_mapper.h:310
static std::pair< itr_t, bool > insert_key(container_t &container, const key_t &key)
Inserts a key into the container.
Definition associative_mapper.h:344
static std::pair< itr_t, itr_t > equal_range(container_t &container, const key_t &key)
Returns a range containing all elements with the given key in the container.
Definition associative_mapper.h:290
static const_itr_t end(const container_t &container)
Returns an iterator to the element following the last element of the container.
Definition associative_mapper.h:260
static value_t & get_value(itr_t &itr)
Returns the current iterator's value as reference.
Definition associative_mapper.h:216
typename T::mapped_type value_t
Definition associative_mapper.h:195
static std::pair< const_itr_t, const_itr_t > equal_range(const container_t &container, const key_t &key)
Returns a range containing all elements with the given key in the container.
Definition associative_mapper.h:300
static const key_t & get_key(const const_itr_t &itr)
Returns the current iterator's key as a const reference.
Definition associative_mapper.h:206
static std::size_t get_size(const container_t &container)
Returns the number of elements in the container.
Definition associative_mapper.h:326
static itr_t find(container_t &container, const key_t &key)
Finds an element with key equivalent to key and returns its iterator.
Definition associative_mapper.h:270
Generated on Fri Jan 26 2024 00:00:00 for rttr - 0.9.7 by doxygen.