An AmqpMap represents an AMQP "map" type.
More...
#include <amqp_value.hpp>
|
| AmqpMap () |
| Construct a new AmqpMap object.
|
|
| AmqpMap (std::initializer_list< std::map< AmqpValue, AmqpValue >::value_type > const &values) |
| Construct a new AmqpArray object with an initializer list.
|
|
| AmqpMap (AmqpMap &&other) noexcept=default |
| Move Constructor.
|
|
AmqpMap & | operator= (AmqpMap &&other) noexcept=default |
| Move assignment operator.
|
|
| AmqpMap (const AmqpMap &other)=default |
| Copy Constructor.
|
|
AmqpMap & | operator= (const AmqpMap &other)=default |
| Copy assignment operator.
|
|
| AmqpMap (AmqpValue const &value) |
| Construct a new AmqpMap object from an existing uAMQP AMQP_VALUE item.
|
|
decltype(m_value) ::mapped_type & | operator[] (decltype(m_value)::key_type &&keyVal) |
| Access an element in the map.
|
|
template<class... ValueTypes> |
std::pair< decltype(m_value)::iterator, bool > | emplace (ValueTypes &&... values) |
| Insert a new key/value pair into the map.
|
|
An AMQP Map is a polymorphic map of distinct keys to values.
◆ AmqpMap()
Azure::Core::Amqp::Models::AmqpMap::AmqpMap |
( |
AmqpValue const & |
value | ) |
|
- Parameters
-
value | - the AMQP array value to capture. |
◆ emplace()
template<class... ValueTypes>
std::pair< decltype(m_value)::iterator, bool > Azure::Core::Amqp::Models::AmqpMap::emplace |
( |
ValueTypes &&... |
values | ) |
|
|
inline |
- Returns
- std::pair<iterator, bool> - a pair containing an iterator to the inserted element, or an iterator to the element that prevented the insertion, and a bool indicating whether the insertion took place.
◆ operator[]()
decltype(m_value) ::mapped_type & Azure::Core::Amqp::Models::AmqpMap::operator[] |
( |
decltype(m_value)::key_type && |
keyVal | ) |
|
|
inline |
- Returns
- a reference to the value associated with the specified key.
The documentation for this class was generated from the following files: