2#ifndef _aspose_system_collections_key_value_list_h_
3#define _aspose_system_collections_key_value_list_h_
5#include <system/collections/keyvalue_collection.h>
7namespace System {
namespace Collections {
namespace Generic {
14template <
typename Dict>
19 typedef typename Dict::map_t::key_type
TKey;
29 virtual TKey idx_get(
int index)
const override {
return (this->m_dict->data().begin() + index)->first; }
36 return this->m_dict->data().find(item) != this->m_dict->data().end();
48template <
typename Dict>
53 typedef typename Dict::map_t::mapped_type
TValue;
63 virtual TValue idx_get(
int index)
const {
return (this->m_dict->data().begin() + index)->second; }
Collection of Dictionary's keys. References collection, doesn't copy anything. Objects of this class ...
Definition: keyvalue_collection.h:94
Dict::map_t::key_type TKey
Key type.
Definition: keyvalue_collection.h:97
Implements list of dictionary's keys. Objects of this class should only be allocated using System::Ma...
Definition: keyvalue_list.h:16
bool Contains(const TKey &item) const override
Checks if specified key is present in collection.
Definition: keyvalue_list.h:34
~_KeyList() override=default
_KeyList(const typename Dict::Ptr &dict)
Initializes collection referencing specified dictionary.
Definition: keyvalue_list.h:23
virtual TKey idx_get(int index) const override
Gets key at specified position.
Definition: keyvalue_list.h:29
Dict::map_t::key_type TKey
Key type.
Definition: keyvalue_list.h:19
Collection of Dictionary's values. References collection, doesn't copy anything. Objects of this clas...
Definition: keyvalue_collection.h:248
Dict::map_t::mapped_type TValue
Value type.
Definition: keyvalue_collection.h:251
Implements list of dictionary's values. Objects of this class should only be allocated using System::...
Definition: keyvalue_list.h:50
_ValueList(const typename Dict::Ptr &dict)
Initializes collection referencing specified dictionary.
Definition: keyvalue_list.h:57
virtual TValue idx_get(int index) const
Gets value at specified position.
Definition: keyvalue_list.h:63
Dict::map_t::mapped_type TValue
Value type.
Definition: keyvalue_list.h:53
Definition: db_command.h:9