STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped > Class Template Reference

Public Types

typedef map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped > _Mytype_t
 
typedef _Key_t key_type
 
typedef _Mapped_t mapped_type
 
typedef _STLCLR GenericPair< _Key_t, _Mapped_t > value_type
 
typedef _STLCLR BinaryDelegate< key_type, key_type, boolkey_compare
 
typedef _STLCLR BinaryDelegate< value_type, value_type, boolvalue_compare
 
typedef _Key_t generic_key
 
typedef _Mapped_t generic_mapped
 

Public Member Functions

 map_traits ()
 
 map_traits (key_compare^_Pred)
 
key_compare key_comp ()
 
value_compare value_comp ()
 

Static Public Member Functions

static key_type get_key (value_type%_Val)
 
static mapped_type get_mapped (value_type%_Val)
 
static void unmake_value (value_type%_Val)
 

Public Attributes

_STLCLR_FIELD_ACCESS __pad0__: bool _Value_compare(value_type _Left
 
_STLCLR_FIELD_ACCESS value_type _Right
 
key_compare comp
 
bool _Multi
 

Member Typedef Documentation

template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
typedef map_traits<_Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped> cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::_Mytype_t
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
typedef _Key_t cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::generic_key
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
typedef _Mapped_t cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::generic_mapped
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
typedef _STLCLR BinaryDelegate<key_type, key_type, bool> cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::key_compare
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
typedef _Key_t cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::key_type
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
typedef _Mapped_t cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::mapped_type
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
typedef _STLCLR BinaryDelegate<value_type, value_type, bool> cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::value_compare
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
typedef _STLCLR GenericPair<_Key_t, _Mapped_t> cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::value_type

Constructor & Destructor Documentation

template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::map_traits ( )
inline
35  : comp(gcnew key_compare(&_Key_compare)),
36  _Multi(_Mflag)
37  { // construct with default comparator
38  }
bool _Multi
Definition: map:82
bool _Key_compare(_Key_t _Left, _Key_t _Right)
Definition: xtree:163
key_compare comp
Definition: map:81
_STLCLR BinaryDelegate< key_type, key_type, bool > key_compare
Definition: map:27
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::map_traits ( key_compare _Pred)
inline
41  : comp(_Pred),
42  _Multi(_Mflag)
43  { // construct with specified comparator
44  }
bool _Multi
Definition: map:82
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
key_compare comp
Definition: map:81

Member Function Documentation

template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
static key_type cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::get_key ( value_type _Val)
inlinestatic
57  { // extract key from element value
58  return (_Val->first);
59  }
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
static mapped_type cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::get_mapped ( value_type _Val)
inlinestatic
62  { // extract mapped from element value
63  return (_Val->second);
64  }
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
key_compare cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::key_comp ( )
inline
47  { // return object for comparing keys
48  return (comp);
49  }
key_compare comp
Definition: map:81
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
static void cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::unmake_value ( value_type _Val)
inlinestatic
67  { // free allocated fields as needed
69  _Val->first);
71  _Val->second);
72  }
static void unmake_value(_Value_t%)
Definition: xutility:92
_FwdIt const _Ty _Val
Definition: algorithm:1938
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
value_compare cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::value_comp ( )
inline
52  { // return object for comparing values
53  return (gcnew value_compare(this, &_Mytype_t::_Value_compare));
54  }
_STLCLR BinaryDelegate< value_type, value_type, bool > value_compare
Definition: map:29

Member Data Documentation

template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
_STLCLR_FIELD_ACCESS cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::__pad0__
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
bool cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::_Multi
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
_STLCLR_FIELD_ACCESS value_type cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::_Right
Initial value:
{
return (comp(_Left->first, _Right->first))
template<typename _Key_t, typename _Mapped_t, bool _Mflag, bool _Is_ref_key, bool _Is_ref_mapped>
key_compare cliext::impl::map_traits< _Key_t, _Mapped_t, _Mflag, _Is_ref_key, _Is_ref_mapped >::comp

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