19 #ifndef HAZELCAST_CLIENT_ADAPTOR_RAWPOINTERTRANSACTIONALMULTIMAP_H_
20 #define HAZELCAST_CLIENT_ADAPTOR_RAWPOINTERTRANSACTIONALMULTIMAP_H_
22 #include "hazelcast/client/TransactionalMultiMap.h"
23 #include "hazelcast/client/impl/DataArrayImpl.h"
36 template<
typename K,
typename V>
40 m.context->getSerializationService()) {
48 bool put(
const K &key,
const V &value) {
49 return map.put(key, value);
57 std::auto_ptr<DataArray<K> >
get(
const K &key) {
58 return std::auto_ptr<DataArray<K> >(
new hazelcast::client::impl::DataArrayImpl<K>(map.getData(serializationService.toData<K>(&key)), serializationService));
66 bool remove(
const K &key,
const V &value) {
67 return map.remove(key, value);
75 std::auto_ptr<DataArray<V> >
remove(
const K &key) {
76 return std::auto_ptr<DataArray<V> >(
new hazelcast::client::impl::DataArrayImpl<V>(map.removeData(serializationService.toData<K>(&key)), serializationService));
86 return map.valueCount(key);
100 serialization::pimpl::SerializationService &serializationService;
106 #endif //HAZELCAST_CLIENT_ADAPTOR_RAWPOINTERTRANSACTIONALMULTIMAP_H_
int size()
Transactional implementation of Multimap::size().
Definition: RawPointerTransactionalMultiMap.h:94
Transactional implementation of MultiMap.
Definition: RawPointerTransactionalMultiMap.h:37
Transactional implementation of MultiMap.
Definition: TransactionalMultiMap.h:40
bool put(const K &key, const V &value)
Transactional implementation of Multimap::put(key , value).
Definition: RawPointerTransactionalMultiMap.h:48
int valueCount(const K &key)
Transactional implementation of Multimap::valueCount(key).
Definition: RawPointerTransactionalMultiMap.h:85
Definition: MapEntryView.h:32