Classes | Public Types | Public Member Functions | Public Attributes | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
google::protobuf::Map< Key, T > Class Template Reference

#include <map.h>

Classes

class  const_iterator
 
class  InnerMap
 
class  iterator
 
class  KeyValuePair
 
class  MapAllocator
 

Public Types

typedef hash< Key > hasher
 
typedef Key key_type
 
typedef T mapped_type
 
typedef value_typepointer
 
typedef value_typereference
 
typedef size_t size_type
 
typedef MapPair< Key, Tvalue_type
 

Public Member Functions

Tat (const key_type &key)
 
const Tat (const key_type &key) const
 
iterator begin ()
 
const_iterator begin () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
void clear ()
 
bool contains (const Key &key) const
 
size_type count (const key_type &key) const
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
std::pair< iterator, iteratorequal_range (const key_type &key)
 
std::pair< const_iterator, const_iteratorequal_range (const key_type &key) const
 
size_type erase (const key_type &key)
 
void erase (iterator first, iterator last)
 
iterator erase (iterator pos)
 
iterator find (const key_type &key)
 
const_iterator find (const key_type &key) const
 
hasher hash_function () const
 
std::pair< iterator, bool > insert (const value_type &value)
 
template<class InputIt >
void insert (InputIt first, InputIt last)
 
void insert (std::initializer_list< value_type > values)
 
 Map ()
 
 Map (Arena *arena)
 
template<class InputIt >
 Map (const InputIt &first, const InputIt &last)
 
 Map (const Map &other)
 
 Map (Map &&other) noexcept
 
Mapoperator= (const Map &other)
 
Mapoperator= (Map &&other) noexcept
 
Toperator[] (const key_type &key)
 
size_type size () const
 
void swap (Map &other)
 
 ~Map ()
 

Public Attributes

const typedef value_typeconst_pointer
 
const typedef value_typeconst_reference
 

Private Types

typedef MapAllocator< KeyValuePairAllocator
 
typedef void DestructorSkippable_
 
typedef void InternalArenaConstructable_
 

Private Member Functions

value_typeCreateValueTypeInternal (const Key &key)
 
value_typeCreateValueTypeInternal (const value_type &value)
 
void Init ()
 
void SetDefaultEnumValue (int default_enum_value)
 

Private Attributes

Arenaarena_
 
int default_enum_value_
 
InnerMapelements_
 

Friends

class Arena
 
template<typename Derived , typename K , typename V , internal::WireFormatLite::FieldType key_wire_type, internal::WireFormatLite::FieldType value_wire_type, int default_enum_value>
class internal::MapFieldLite
 

Detailed Description

template<typename Key, typename T>
class google::protobuf::Map< Key, T >

Definition at line 62 of file map.h.

Member Typedef Documentation

◆ Allocator

template<typename Key , typename T >
typedef MapAllocator<KeyValuePair> google::protobuf::Map< Key, T >::Allocator
private

Definition at line 303 of file map.h.

◆ DestructorSkippable_

template<typename Key , typename T >
typedef void google::protobuf::Map< Key, T >::DestructorSkippable_
private

Definition at line 1211 of file map.h.

◆ hasher

template<typename Key , typename T >
typedef hash<Key> google::protobuf::Map< Key, T >::hasher

Definition at line 141 of file map.h.

◆ InternalArenaConstructable_

template<typename Key , typename T >
typedef void google::protobuf::Map< Key, T >::InternalArenaConstructable_
private

Definition at line 1210 of file map.h.

◆ key_type

template<typename Key , typename T >
typedef Key google::protobuf::Map< Key, T >::key_type

Definition at line 131 of file map.h.

◆ mapped_type

template<typename Key , typename T >
typedef T google::protobuf::Map< Key, T >::mapped_type

Definition at line 132 of file map.h.

◆ pointer

template<typename Key , typename T >
typedef value_type* google::protobuf::Map< Key, T >::pointer

Definition at line 135 of file map.h.

◆ reference

template<typename Key , typename T >
typedef value_type& google::protobuf::Map< Key, T >::reference

Definition at line 137 of file map.h.

◆ size_type

template<typename Key , typename T >
typedef size_t google::protobuf::Map< Key, T >::size_type

Definition at line 140 of file map.h.

◆ value_type

template<typename Key , typename T >
typedef MapPair<Key, T> google::protobuf::Map< Key, T >::value_type

Definition at line 133 of file map.h.

Constructor & Destructor Documentation

◆ Map() [1/5]

template<typename Key , typename T >
google::protobuf::Map< Key, T >::Map ( )
inline

Definition at line 143 of file map.h.

◆ Map() [2/5]

template<typename Key , typename T >
google::protobuf::Map< Key, T >::Map ( Arena arena)
inlineexplicit

Definition at line 144 of file map.h.

◆ Map() [3/5]

template<typename Key , typename T >
google::protobuf::Map< Key, T >::Map ( const Map< Key, T > &  other)
inline

Definition at line 146 of file map.h.

◆ Map() [4/5]

template<typename Key , typename T >
google::protobuf::Map< Key, T >::Map ( Map< Key, T > &&  other)
inlinenoexcept

Definition at line 152 of file map.h.

◆ Map() [5/5]

template<typename Key , typename T >
template<class InputIt >
google::protobuf::Map< Key, T >::Map ( const InputIt &  first,
const InputIt &  last 
)
inline

Definition at line 171 of file map.h.

◆ ~Map()

template<typename Key , typename T >
google::protobuf::Map< Key, T >::~Map ( )
inline

Definition at line 177 of file map.h.

Member Function Documentation

◆ at() [1/2]

template<typename Key , typename T >
T& google::protobuf::Map< Key, T >::at ( const key_type key)
inline

Definition at line 1063 of file map.h.

◆ at() [2/2]

template<typename Key , typename T >
const T& google::protobuf::Map< Key, T >::at ( const key_type key) const
inline

Definition at line 1058 of file map.h.

◆ begin() [1/2]

template<typename Key , typename T >
iterator google::protobuf::Map< Key, T >::begin ( )
inline

Definition at line 1033 of file map.h.

◆ begin() [2/2]

template<typename Key , typename T >
const_iterator google::protobuf::Map< Key, T >::begin ( ) const
inline

Definition at line 1035 of file map.h.

◆ cbegin()

template<typename Key , typename T >
const_iterator google::protobuf::Map< Key, T >::cbegin ( ) const
inline

Definition at line 1041 of file map.h.

◆ cend()

template<typename Key , typename T >
const_iterator google::protobuf::Map< Key, T >::cend ( ) const
inline

Definition at line 1042 of file map.h.

◆ clear()

template<typename Key , typename T >
void google::protobuf::Map< Key, T >::clear ( )
inline

Definition at line 1143 of file map.h.

◆ contains()

template<typename Key , typename T >
bool google::protobuf::Map< Key, T >::contains ( const Key &  key) const
inline

Definition at line 1079 of file map.h.

◆ count()

template<typename Key , typename T >
size_type google::protobuf::Map< Key, T >::count ( const key_type key) const
inline

Definition at line 1070 of file map.h.

◆ CreateValueTypeInternal() [1/2]

template<typename Key , typename T >
value_type* google::protobuf::Map< Key, T >::CreateValueTypeInternal ( const Key &  key)
inlineprivate

Definition at line 1178 of file map.h.

◆ CreateValueTypeInternal() [2/2]

template<typename Key , typename T >
value_type* google::protobuf::Map< Key, T >::CreateValueTypeInternal ( const value_type value)
inlineprivate

Definition at line 1191 of file map.h.

◆ empty()

template<typename Key , typename T >
bool google::protobuf::Map< Key, T >::empty ( ) const
inline

Definition at line 1046 of file map.h.

◆ end() [1/2]

template<typename Key , typename T >
iterator google::protobuf::Map< Key, T >::end ( )
inline

Definition at line 1034 of file map.h.

◆ end() [2/2]

template<typename Key , typename T >
const_iterator google::protobuf::Map< Key, T >::end ( ) const
inline

Definition at line 1038 of file map.h.

◆ equal_range() [1/2]

template<typename Key , typename T >
std::pair<iterator, iterator> google::protobuf::Map< Key, T >::equal_range ( const key_type key)
inline

Definition at line 1090 of file map.h.

◆ equal_range() [2/2]

template<typename Key , typename T >
std::pair<const_iterator, const_iterator> google::protobuf::Map< Key, T >::equal_range ( const key_type key) const
inline

Definition at line 1080 of file map.h.

◆ erase() [1/3]

template<typename Key , typename T >
size_type google::protobuf::Map< Key, T >::erase ( const key_type key)
inline

Definition at line 1123 of file map.h.

◆ erase() [2/3]

template<typename Key , typename T >
void google::protobuf::Map< Key, T >::erase ( iterator  first,
iterator  last 
)
inline

Definition at line 1138 of file map.h.

◆ erase() [3/3]

template<typename Key , typename T >
iterator google::protobuf::Map< Key, T >::erase ( iterator  pos)
inline

Definition at line 1132 of file map.h.

◆ find() [1/2]

template<typename Key , typename T >
iterator google::protobuf::Map< Key, T >::find ( const key_type key)
inline

Definition at line 1078 of file map.h.

◆ find() [2/2]

template<typename Key , typename T >
const_iterator google::protobuf::Map< Key, T >::find ( const key_type key) const
inline

Definition at line 1075 of file map.h.

◆ hash_function()

template<typename Key , typename T >
hasher google::protobuf::Map< Key, T >::hash_function ( ) const
inline

Definition at line 1170 of file map.h.

◆ Init()

template<typename Key , typename T >
void google::protobuf::Map< Key, T >::Init ( )
inlineprivate

Definition at line 185 of file map.h.

◆ insert() [1/3]

template<typename Key , typename T >
std::pair<iterator, bool> google::protobuf::Map< Key, T >::insert ( const value_type value)
inline

Definition at line 1101 of file map.h.

◆ insert() [2/3]

template<typename Key , typename T >
template<class InputIt >
void google::protobuf::Map< Key, T >::insert ( InputIt  first,
InputIt  last 
)
inline

Definition at line 1110 of file map.h.

◆ insert() [3/3]

template<typename Key , typename T >
void google::protobuf::Map< Key, T >::insert ( std::initializer_list< value_type values)
inline

Definition at line 1118 of file map.h.

◆ operator=() [1/2]

template<typename Key , typename T >
Map& google::protobuf::Map< Key, T >::operator= ( const Map< Key, T > &  other)
inline

Definition at line 1146 of file map.h.

◆ operator=() [2/2]

template<typename Key , typename T >
Map& google::protobuf::Map< Key, T >::operator= ( Map< Key, T > &&  other)
inlinenoexcept

Definition at line 159 of file map.h.

◆ operator[]()

template<typename Key , typename T >
T& google::protobuf::Map< Key, T >::operator[] ( const key_type key)
inline

Definition at line 1049 of file map.h.

◆ SetDefaultEnumValue()

template<typename Key , typename T >
void google::protobuf::Map< Key, T >::SetDefaultEnumValue ( int  default_enum_value)
inlineprivate

Definition at line 1174 of file map.h.

◆ size()

template<typename Key , typename T >
size_type google::protobuf::Map< Key, T >::size ( ) const
inline

Definition at line 1045 of file map.h.

◆ swap()

template<typename Key , typename T >
void google::protobuf::Map< Key, T >::swap ( Map< Key, T > &  other)
inline

Definition at line 1154 of file map.h.

Friends And Related Function Documentation

◆ Arena

template<typename Key , typename T >
friend class Arena
friend

Definition at line 1209 of file map.h.

◆ internal::MapFieldLite

template<typename Key , typename T >
template<typename Derived , typename K , typename V , internal::WireFormatLite::FieldType key_wire_type, internal::WireFormatLite::FieldType value_wire_type, int default_enum_value>
friend class internal::MapFieldLite
friend

Definition at line 1216 of file map.h.

Member Data Documentation

◆ arena_

template<typename Key , typename T >
Arena* google::protobuf::Map< Key, T >::arena_
private

Definition at line 1205 of file map.h.

◆ const_pointer

template<typename Key , typename T >
const typedef value_type* google::protobuf::Map< Key, T >::const_pointer

Definition at line 136 of file map.h.

◆ const_reference

template<typename Key , typename T >
const typedef value_type& google::protobuf::Map< Key, T >::const_reference

Definition at line 138 of file map.h.

◆ default_enum_value_

template<typename Key , typename T >
int google::protobuf::Map< Key, T >::default_enum_value_
private

Definition at line 1206 of file map.h.

◆ elements_

template<typename Key , typename T >
InnerMap* google::protobuf::Map< Key, T >::elements_
private

Definition at line 1207 of file map.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:08