STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | List of all members
cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped > Class Template Reference
Inheritance diagram for cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >:
cliext::impl::hash_map_base< _Key1_t, _Mapped_t > cliext::impl::hash_map_base0< _Key1_t, _Mapped_t > cliext::impl::hash< hash_map_traits< _Key1_t, _Mapped_t, false > > cliext::impl::hash_map_traits< _Key1_t, _Mapped_t, false >

Public Types

typedef _Key1_t _Gkey_t
 
typedef _Mapped_t _Gmapped_t
 
typedef hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped > _Mytype_t
 
typedef hash_map_base< _Gkey_t, _Gmapped_t_Mybase_t
 
typedef _Key1_t key_type
 
typedef _Mapped_t mapped_type
 
- Public Types inherited from cliext::impl::hash_map_base< _Key1_t, _Mapped_t >
typedef hash_map_base< _Key1_t, _Mapped_t > _Mytype_t
 
typedef hash_map_base0< _Key1_t, _Mapped_t > _Mybase_t
 
typedef _STLCLR GenericPair< _Key1_t, _Mapped_t > _Object_t
 
typedef _Key1_t key_type
 
typedef _Mapped_t mapped_type
 
- Public Types inherited from cliext::impl::hash_map_base0< _Key1_t, _Mapped_t >
typedef hash_map_base0< _Key1_t, _Mapped_t > _Mytype_t
 
typedef hash< hash_map_traits< _Key1_t, _Mapped_t, false > > _Mybase_t
 
typedef _STLCLR GenericPair< _Key1_t, _Mapped_t > _Object_t
 
typedef _Key1_t key_type
 
typedef _Mapped_t mapped_type
 
typedef System::Collections::Generic::KeyValuePair< _Key1_t, _Mapped_t > _Mykvpair_t
 
typedef cli::array< _Mykvpair_t_Mykvarray_t
 
- Public Types inherited from cliext::impl::hash< hash_map_traits< _Key1_t, _Mapped_t, false > >
typedef hash< hash_map_traits< _Key1_t, _Mapped_t, false > > _Mytype_t
 
typedef hash_map_traits< _Key1_t, _Mapped_t, false_Mybase_t
 
typedef hash_map_traits< _Key1_t, _Mapped_t, false >::key_type _Key_t
 
typedef hash_map_traits< _Key1_t, _Mapped_t, false >::value_type _Value_t
 
typedef _STLCLR IHash< _Key_t, _Value_t_Mycont_it
 
typedef System::Collections::Generic::IEnumerable< _Value_t_Myenum_it
 
typedef cli::array< _Value_t_Myarray_t
 
typedef list< _Value_t_Mylist_t
 
typedef list_node< _Value_tnode_type
 
typedef cli::array< node_type^> _Myvector_t
 
typedef _Mylist_t::iterator iterator
 
typedef _Mylist_t::const_iterator const_iterator
 
typedef _Mylist_t::reverse_iterator reverse_iterator
 
typedef _Mylist_t::const_reverse_iterator const_reverse_iterator
 
typedef hash_map_traits< _Key1_t, _Mapped_t, false >::key_type key_type
 
typedef hash_map_traits< _Key1_t, _Mapped_t, false >::value_type value_type
 
typedef hash_map_traits< _Key1_t, _Mapped_t, false >::key_compare key_compare
 
typedef hash_map_traits< _Key1_t, _Mapped_t, false >::value_compare value_compare
 
typedef hash_map_traits< _Key1_t, _Mapped_t, false >::hasher hasher
 
typedef int size_type
 
typedef int difference_type
 
typedef value_type reference
 
typedef value_type const_reference
 
typedef _Mycont_it generic_container
 
typedef value_type generic_value
 
typedef _STLCLR Generic::ContainerBidirectionalIterator< _Value_tgeneric_iterator
 
typedef _Mylist_t::generic_reverse_iterator generic_reverse_iterator
 
typedef _STLCLR GenericPair< iterator, boolpair_iter_bool
 
typedef _STLCLR GenericPair< iterator, iteratorpair_iter_iter
 
typedef _STLCLR GenericPair< node_type^, bool_Pairnb
 
typedef _STLCLR GenericPair< node_type^, node_type^> _Pairnn
 
typedef _STLCLR GenericPair< generic_iterator^, boolgeneric_pair_iter_bool
 
typedef _STLCLR GenericPair< generic_iterator^, generic_iterator^> generic_pair_iter_iter
 
- Public Types inherited from cliext::impl::hash_map_traits< _Key1_t, _Mapped_t, false >
typedef hash_map_traits< _Key1_t, _Mapped_t, _Mflag > _Mytype_t
 
typedef _Key1_t key_type
 
typedef _Mapped_t mapped_type
 
typedef _STLCLR GenericPair< _Key1_t, _Mapped_t > value_type
 
typedef _STLCLR BinaryDelegate< key_type, key_type, boolkey_compare
 
typedef _STLCLR BinaryDelegate< value_type, value_type, boolvalue_compare
 
typedef _STLCLR UnaryDelegate< key_type, int > hasher
 
typedef _Key1_t generic_key
 
typedef _Mapped_t generic_mapped
 

Public Member Functions

 hash_map_select ()
 
 hash_map_select (hash_map_select%_Right)
 
hash_map_select operator= (hash_map_select%_Right)
 
 hash_map_select (key_compare^_Pred)
 
 hash_map_select (key_compare^_Pred, hasher^_Hasher)
 
template<typename _Iter_t >
 hash_map_select (_Iter_t _First, _Iter_t _Last)
 
template<typename _Iter_t >
 hash_map_select (_Iter_t _First, _Iter_t _Last, key_compare^_Pred)
 
template<typename _Iter_t >
 hash_map_select (_Iter_t _First, _Iter_t _Last, key_compare^_Pred, hasher^_Hasher)
 
pair_iter_bool insert (cliext::pair< key_type, mapped_type > _Val)
 
iterator insert (iterator _Where, cliext::pair< key_type, mapped_type > _Val)
 
- Public Member Functions inherited from cliext::impl::hash_map_base< _Key1_t, _Mapped_t >
 hash_map_base ()
 
 hash_map_base (hash_map_base%_Right)
 
 hash_map_base (key_compare^_Pred)
 
 hash_map_base (key_compare^_Pred, hasher^_Hasher)
 
 hash_map_base (_Iter_t _First, _Iter_t _Last)
 
 hash_map_base (_Iter_t _First, _Iter_t _Last, key_compare^_Pred)
 
 hash_map_base (_Iter_t _First, _Iter_t _Last, key_compare^_Pred, hasher^_Hasher)
 
hash_map_base operator= (hash_map_base%_Right)
 
pair_iter_bool insert (value_type _Val) new
 
iterator insert (iterator, value_type _Val) new
 
void insert (_Iter_t _First, _Iter_t _Last)
 
void insert (_Myenum_it^_Right) new
 
- Public Member Functions inherited from cliext::impl::hash_map_base0< _Key1_t, _Mapped_t >
 hash_map_base0 ()
 
 hash_map_base0 (hash_map_base0%_Right)
 
 hash_map_base0 (key_compare^_Pred)
 
 hash_map_base0 (key_compare^_Pred, hasher^_Hasher)
 
 hash_map_base0 (_Iter_t _First, _Iter_t _Last)
 
 hash_map_base0 (_Iter_t _First, _Iter_t _Last, key_compare^_Pred)
 
 hash_map_base0 (_Iter_t _First, _Iter_t _Last, key_compare^_Pred, hasher^_Hasher)
 
hash_map_base0 operator= (hash_map_base0%_Right)
 
- Public Member Functions inherited from cliext::impl::hash< hash_map_traits< _Key1_t, _Mapped_t, false > >
 hash ()
 
 hash (hash%_Right)
 
 hash (key_compare^_Pred)
 
 hash (key_compare^_Pred, hasher^_Hashfn)
 
hash operator= (hash%_Right)
 
 operator _Mycont_it^ ()
 
 ~hash ()
 
unsigned long get_generation ()
 
node_type get_node (iterator _Where)
 
node_type hash_node (size_type _Idx)
 
void set_hash_node (size_type _Idx, node_type^_Node)
 
node_type front_node ()
 
node_type back_node ()
 
node_type head_node ()
 
_Myarray_t to_array ()
 
key_compare key_comp () new
 
value_compare value_comp () new
 
hasher hash_delegate () new
 
iterator make_iterator (node_type^_Node)
 
iterator begin ()
 
iterator end ()
 
reverse_iterator rbegin ()
 
reverse_iterator rend ()
 
size_type size ()
 
bool empty ()
 
int bucket_count ()
 
float load_factor ()
 
float max_load_factor ()
 
void max_load_factor (float _Newmax)
 
void rehash (int _Buckets)
 
pair_iter_bool insert (value_type _Val)
 
iterator insert (iterator, value_type _Val)
 
void insert (_Iter_t _First, _Iter_t _Last)
 
void insert (_STLCLR Generic::IInputIterator< _Value_t >^_First, _STLCLR Generic::IInputIterator< _Value_t >^_Last)
 
void insert (_Myenum_it^_Right)
 
void insert (System::Collections::IEnumerable^_Right)
 
_Pairnb insert_node (value_type _Val, list_node< value_type >^_Newnode)
 
iterator erase (iterator _Where)
 
iterator erase (iterator _First, iterator _Last)
 
size_type erase (key_type _Keyval)
 
node_type erase_node (node_type^_Where)
 
void clear ()
 
void swap (_Mytype_t%_Right)
 
iterator find (key_type _Keyval)
 
size_type count (key_type _Keyval)
 
iterator lower_bound (key_type _Keyval)
 
node_type lower_bound_node (key_type _Keyval)
 
iterator upper_bound (key_type _Keyval)
 
node_type upper_bound_node (key_type _Keyval)
 
pair_iter_iter equal_range (key_type _Keyval)
 
_Pairnn equal_range_node (key_type _Keyval)
 
void dumptab ()
 
 for (;_Idx< _Oldsize;++_Idx) _Newvector[_Idx]
 
 for (;_Idx< _Newvector->Length;++_Idx) _Newvector[_Idx]
 
void _Grow (int _Buckets)
 
size_type _Hashval (key_type%_Keyval)
 
void _Init (int _Buckets)
 
void _Reinsert ()
 
void _Rebuild_table (int _Buckets)
 
int _True_buckets (int _Buckets)
 
virtual System::Object Clone ()
 
- Public Member Functions inherited from cliext::impl::hash_map_traits< _Key1_t, _Mapped_t, false >
 hash_map_traits ()
 
 hash_map_traits (key_compare^_Pred)
 
 hash_map_traits (key_compare^_Pred, hasher^_Hashfn)
 
key_compare key_comp ()
 
value_compare value_comp ()
 
hasher hash_delegate ()
 
int get_hash (key_type _Key)
 

Static Public Member Functions

static value_type make_value (key_type _Key, mapped_type _Mapped)
 
- Static Public Member Functions inherited from cliext::impl::hash_map_base< _Key1_t, _Mapped_t >
static value_type make_value (key_type _Key, mapped_type _Mapped)
 
- Static Public Member Functions inherited from cliext::impl::hash_map_traits< _Key1_t, _Mapped_t, false >
static key_type get_key (value_type%_Val)
 
static mapped_type get_mapped (value_type%_Val)
 
static int _Hasher (key_type _Key)
 

Additional Inherited Members

- Public Attributes inherited from cliext::impl::hash_map_base0< _Key1_t, _Mapped_t >
property mapped_type default [key_type]
 
- Public Attributes inherited from cliext::impl::hash< hash_map_traits< _Key1_t, _Mapped_t, false > >
_STLCLR_FIELD_ACCESS __pad0__
 
_STLCLR_FIELD_ACCESS node_type _Pad
 
size_type _Oldsize
 
_Myvector_t _Newvector
 
 _Myvector
 
_Myvector_t _Myvector
 
_Mylist_t _Mylist
 
unsigned long _Mygen
 
int _Mask
 
int _Maxidx
 
float _Max_load_factor
 
- Public Attributes inherited from cliext::impl::hash_map_traits< _Key1_t, _Mapped_t, false >
_STLCLR_FIELD_ACCESS __pad0__
 
_STLCLR_FIELD_ACCESS value_type _Right
 
key_compare comp
 
hasher hash_fun
 
bool _Multi
 
- Static Public Attributes inherited from cliext::impl::hash< hash_map_traits< _Key1_t, _Mapped_t, false > >
static const int _Maxsize
 
static const int _Default_load
 
static const int _Default_buckets
 

Member Typedef Documentation

template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
typedef _Key1_t cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::_Gkey_t
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
typedef _Mapped_t cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::_Gmapped_t
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
typedef hash_map_base<_Gkey_t, _Gmapped_t> cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::_Mybase_t
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
typedef hash_map_select<_Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped> cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::_Mytype_t
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
typedef _Key1_t cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::key_type
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
typedef _Mapped_t cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::mapped_type

Constructor & Destructor Documentation

template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::hash_map_select ( )
inline
651  : _Mybase_t()
652  { // construct empty map from defaults
653  }
hash_map_base< _Gkey_t, _Gmapped_t > _Mybase_t
Definition: hash_map:626
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::hash_map_select ( hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >%  _Right)
inline
657  { // construct by copying a hash_map
658  }
_STLCLR_FIELD_ACCESS value_type _Right
Definition: hash_map:91
hash_map_base< _Gkey_t, _Gmapped_t > _Mybase_t
Definition: hash_map:626
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::hash_map_select ( key_compare _Pred)
inlineexplicit
668  : _Mybase_t(_Pred)
669  { // construct empty map from comparator
670  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
hash_map_base< _Gkey_t, _Gmapped_t > _Mybase_t
Definition: hash_map:626
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::hash_map_select ( key_compare _Pred,
hasher _Hasher 
)
inline
674  { // construct with specified compare and hash
675  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
static int _Hasher(key_type _Key)
Definition: hash_map:95
hash_map_base< _Gkey_t, _Gmapped_t > _Mybase_t
Definition: hash_map:626
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
template<typename _Iter_t >
cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::hash_map_select ( _Iter_t  _First,
_Iter_t  _Last 
)
inline
679  : _Mybase_t()
680  { // construct map from [_First, _Last), default comparator
681  for (; _First != _Last; ++_First)
682  insert((value_type)*_First);
683  }
hash_map_traits< _Key1_t, _Mapped_t, false >::value_type value_type
Definition: xhash:65
pair_iter_bool insert(cliext::pair< key_type, mapped_type > _Val)
Definition: hash_map:731
hash_map_base< _Gkey_t, _Gmapped_t > _Mybase_t
Definition: hash_map:626
_FwdIt _Last
Definition: algorithm:1936
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
template<typename _Iter_t >
cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::hash_map_select ( _Iter_t  _First,
_Iter_t  _Last,
key_compare _Pred 
)
inline
687  : _Mybase_t(_Pred)
688  { // construct map from [_First, _Last), comparator
689  for (; _First != _Last; ++_First)
690  insert((value_type)*_First);
691  }
hash_map_traits< _Key1_t, _Mapped_t, false >::value_type value_type
Definition: xhash:65
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
pair_iter_bool insert(cliext::pair< key_type, mapped_type > _Val)
Definition: hash_map:731
hash_map_base< _Gkey_t, _Gmapped_t > _Mybase_t
Definition: hash_map:626
_FwdIt _Last
Definition: algorithm:1936
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
template<typename _Iter_t >
cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::hash_map_select ( _Iter_t  _First,
_Iter_t  _Last,
key_compare _Pred,
hasher _Hasher 
)
inline
697  { // construct hash_map from [_First, _Last), compare and hash
698  for (; _First != _Last; ++_First)
699  insert((value_type)*_First);
700  }
hash_map_traits< _Key1_t, _Mapped_t, false >::value_type value_type
Definition: xhash:65
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
static int _Hasher(key_type _Key)
Definition: hash_map:95
pair_iter_bool insert(cliext::pair< key_type, mapped_type > _Val)
Definition: hash_map:731
hash_map_base< _Gkey_t, _Gmapped_t > _Mybase_t
Definition: hash_map:626
_FwdIt _Last
Definition: algorithm:1936

Member Function Documentation

template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
pair_iter_bool cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::insert ( cliext::pair< key_type, mapped_type _Val)
inline
732  { // try to insert node with value _Val, return iterator
733  _Pairnb _Ans =
734  insert_node(make_value(_Val.first, _Val.second), nullptr);
735 
736  return (pair_iter_bool(iterator(_Ans.first),
737  _Ans.second));
738  }
_Pairnb insert_node(value_type _Val, list_node< value_type >^_Newnode)
Definition: xhash:372
_STLCLR GenericPair< node_type^, bool > _Pairnb
Definition: xhash:85
_STLCLR GenericPair< iterator, bool > pair_iter_bool
Definition: xhash:83
first_type first
Definition: utility:96
static value_type make_value(key_type _Key, mapped_type _Mapped)
Definition: hash_map:723
second_type second
Definition: utility:97
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
iterator cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::insert ( iterator  _Where,
cliext::pair< key_type, mapped_type _Val 
)
inline
742  { // insert a key value, with hint
743  return (_Mybase_t::insert(_Where,
744  make_value(_Val.first, _Val.second)));
745  }
first_type first
Definition: utility:96
static value_type make_value(key_type _Key, mapped_type _Mapped)
Definition: hash_map:723
second_type second
Definition: utility:97
pair_iter_bool insert(value_type _Val) new
Definition: hash_map:495
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
static value_type cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::make_value ( key_type  _Key,
mapped_type  _Mapped 
)
inlinestatic
724  { // make a value_type
725  return (gcnew _Object_t(_Key, _Mapped));
726  }
_STLCLR GenericPair< _Key1_t, _Mapped_t > _Object_t
Definition: hash_map:419
template<typename _Key1_t, typename _Mapped_t, bool _Is_ref_key, bool _Is_ref_mapped>
hash_map_select cliext::impl::hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >::operator= ( hash_map_select< _Key1_t, _Mapped_t, _Is_ref_key, _Is_ref_mapped >%  _Right)
inline
661  { // assign
663  return (*this);
664  }
_STLCLR_FIELD_ACCESS value_type _Right
Definition: hash_map:91
hash_map_base operator=(hash_map_base%_Right)
Definition: hash_map:451

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