HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_StringMap< ITEM_T > Class Template Reference

#include <UT_StringMap.h>

+ Inheritance diagram for UT_StringMap< ITEM_T >:

Public Types

typedef Parent::const_iterator const_iterator
 
typedef Parent::iterator iterator
 
typedef Parent::size_type size_type
 
- Public Types inherited from UT_Map< UT_StringHolder, ITEM_T >
typedef hboost::unordered_map
< UT_StringHolder, ITEM_T,
hboost::hash< UT_StringHolder >
, std::equal_to
< UT_StringHolder > > 
Base
 
typedef Base::key_type key_type
 
typedef Base::mapped_type mapped_type
 
typedef Base::value_type value_type
 
typedef Base::hasher hasher
 
typedef Base::key_equal key_equal
 
typedef Base::iterator iterator
 
typedef Base::const_iterator const_iterator
 
typedef hboost::hash
< UT_StringHolder
Hasher
 
typedef std::equal_to
< UT_StringHolder
Equal
 
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

iterator erase (const_iterator pos)
 
iterator erase (const_iterator first, const_iterator last)
 
- Public Member Functions inherited from UT_Map< UT_StringHolder, ITEM_T >
 UT_Map (const Hasher &hf=Hasher(), const Equal &eql=Equal())
 
 UT_Map (InputIt first, InputIt last)
 Initialize the map from an iterator pair. More...
 
 UT_Map (InputIt first, InputIt last, const Hasher &hf=Hasher(), const Equal &eql=Equal())
 
 UT_Map (std::initializer_list< value_type > init_list)
 
 UT_Map (UT_Map const &other)
 
int64 getMemoryUsage (bool inclusive) const
 
bool contains (const key_type &key) const
 Returns true if a value with the key is contained in the map. More...
 
UT_IteratorRange< key_iteratorkey_range ()
 
UT_IteratorRange
< const_key_iterator
key_range () const
 
UT_IteratorRange< mapped_iteratormapped_range ()
 
UT_IteratorRange
< const_mapped_iterator
mapped_range () const
 

Detailed Description

template<typename ITEM_T>
class UT_StringMap< ITEM_T >

UT_StringMap is a simple specialization of a UT_Map that has UT_StringHolder as its key type which allows C strings to be used. If you know that a string will not be destroyed during the map's lifetime, UTmakeUnsafeRef can be used to insert a shallow reference.

Examples:
field3d/f3d_io.C.

Definition at line 45 of file UT_StringMap.h.

Member Typedef Documentation

template<typename ITEM_T>
typedef Parent::const_iterator UT_StringMap< ITEM_T >::const_iterator

Definition at line 50 of file UT_StringMap.h.

template<typename ITEM_T>
typedef Parent::iterator UT_StringMap< ITEM_T >::iterator

Definition at line 51 of file UT_StringMap.h.

template<typename ITEM_T>
typedef Parent::size_type UT_StringMap< ITEM_T >::size_type

Definition at line 52 of file UT_StringMap.h.

Member Function Documentation

template<typename ITEM_T>
iterator UT_StringMap< ITEM_T >::erase ( const_iterator  pos)
inline

Definition at line 57 of file UT_StringMap.h.

template<typename ITEM_T>
iterator UT_StringMap< ITEM_T >::erase ( const_iterator  first,
const_iterator  last 
)
inline

Definition at line 58 of file UT_StringMap.h.


The documentation for this class was generated from the following file: