16 #ifndef HAZELCAST_CLIENT_INTERNAL_ADAPTER_IMAPDATASTRUCTUREADAPTER_H_
17 #define HAZELCAST_CLIENT_INTERNAL_ADAPTER_IMAPDATASTRUCTUREADAPTER_H_
19 #include "hazelcast/client/internal/adapter/DataStructureAdapter.h"
20 #include "hazelcast/client/map/ClientMapProxy.h"
22 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
24 #pragma warning(disable: 4251) //for dll export
34 template <
typename K,
typename V>
47 void set(
const K &key,
const V &value) {
51 boost::shared_ptr<V> put(
const K &key,
const V &value) {
52 return map.putIfAbsent(key, value);
55 boost::shared_ptr<V>
get(
const K &key) {
64 void putAll(
const std::map<K, V> entries) {
68 std::map<K, V> getAll(
const std::set<K> &keys) {
69 return map.getAll(keys);
72 void remove(
const K &key) {
76 bool containsKey(
const K &key)
const {
77 return map.containsKey(key);
80 map::ClientMapProxy<K, V> ↦
87 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
Abstracts the Hazelcast data structures with Near Cache support for the Near Cache usage...
Definition: DataStructureAdapter.h:37
Abstracts the Hazelcast data structures with Near Cache support for the Near Cache usage...
Definition: IMapDataStructureAdapter.h:35
Definition: MapEntryView.h:32