HDK
|
Sorted map container. More...
#include <UT_Map.h>
Classes | |
struct | deref_pair_first |
struct | deref_pair_second |
class | partial_iterator_base |
Public Types | |
typedef std::map< K, V, C > | Base |
typedef Base::key_type | key_type |
typedef Base::mapped_type | mapped_type |
typedef Base::value_type | value_type |
typedef Base::key_compare | key_compare |
typedef Base::iterator | iterator |
typedef Base::const_iterator | const_iterator |
typedef C | LessThan |
using | key_iterator = partial_iterator_base< iterator, key_type, deref_pair_first< iterator, key_type >> |
using | const_key_iterator = partial_iterator_base< const_iterator, const key_type, deref_pair_first< const_iterator, const key_type >> |
using | mapped_iterator = partial_iterator_base< iterator, mapped_type, deref_pair_second< iterator, mapped_type >> |
using | const_mapped_iterator = partial_iterator_base< const_iterator, const mapped_type, deref_pair_second< const_iterator, const mapped_type >> |
Public Member Functions | |
UT_SortedMap () | |
UT_SortedMap (const LessThan <) | |
template<typename InputIt > | |
UT_SortedMap (InputIt first, InputIt last) | |
template<typename InputIt > | |
UT_SortedMap (InputIt first, InputIt last, const LessThan <) | |
UT_SortedMap (std::initializer_list< value_type > init_list) | |
int64 | getMemoryUsage (bool inclusive) const |
bool | contains (const key_type &key) const |
UT_IteratorRange< key_iterator > | key_range () |
UT_IteratorRange < const_key_iterator > | key_range () const |
UT_IteratorRange< mapped_iterator > | mapped_range () |
UT_IteratorRange < const_mapped_iterator > | mapped_range () const |
Sorted map container.
typedef std::map<K, V, C> UT_SortedMap< K, V, C >::Base |
typedef Base::const_iterator UT_SortedMap< K, V, C >::const_iterator |
using UT_SortedMap< K, V, C >::const_key_iterator = partial_iterator_base<const_iterator, const key_type, deref_pair_first<const_iterator, const key_type>> |
using UT_SortedMap< K, V, C >::const_mapped_iterator = partial_iterator_base<const_iterator, const mapped_type, deref_pair_second<const_iterator, const mapped_type>> |
typedef Base::iterator UT_SortedMap< K, V, C >::iterator |
typedef Base::key_compare UT_SortedMap< K, V, C >::key_compare |
using UT_SortedMap< K, V, C >::key_iterator = partial_iterator_base<iterator, key_type, deref_pair_first<iterator, key_type>> |
typedef Base::key_type UT_SortedMap< K, V, C >::key_type |
typedef C UT_SortedMap< K, V, C >::LessThan |
using UT_SortedMap< K, V, C >::mapped_iterator = partial_iterator_base<iterator, mapped_type, deref_pair_second<iterator, mapped_type>> |
typedef Base::mapped_type UT_SortedMap< K, V, C >::mapped_type |
typedef Base::value_type UT_SortedMap< K, V, C >::value_type |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
Initialize the map using an initializer list. The initializer list is a list of pairs of items to add to the map. E.g:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |