16 #ifndef HAZELCAST_CLIENT_ADAPTOR_RAWPOINTERSET_H_
17 #define HAZELCAST_CLIENT_ADAPTOR_RAWPOINTERSET_H_
19 #include "hazelcast/client/ISet.h"
20 #include "hazelcast/client/impl/DataArrayImpl.h"
93 return std::auto_ptr<DataArray<T> >(
new impl::DataArrayImpl<T>(set.toArrayData(), serializationService));
102 bool add(
const T &element) {
103 return set.
add(element);
112 bool remove(
const T &element) {
113 return set.
remove(element);
132 bool addAll(
const std::vector<T> &elements) {
133 return set.
addAll(elements);
167 serialization::pimpl::SerializationService &serializationService;
bool removeAll(const std::vector< E > &elements)
Definition: ISet.h:152
bool addAll(const std::vector< T > &elements)
Definition: RawPointerSet.h:132
bool retainAll(const std::vector< T > &elements)
Removes the elements from this set that are not available in given "elements" vector.
Definition: RawPointerSet.h:153
bool containsAll(const std::vector< E > &elements)
Definition: ISet.h:131
int size()
Definition: ISet.h:75
bool add(const T &element)
Definition: RawPointerSet.h:102
int size()
Definition: RawPointerSet.h:66
bool contains(const T &element)
Definition: RawPointerSet.h:84
bool removeAll(const std::vector< T > &elements)
Definition: RawPointerSet.h:142
Concurrent, distributed client implementation of std::unordered_set.
Definition: RawPointerSet.h:31
void clear()
Removes all elements from set.
Definition: ISet.h:172
bool add(const E &element)
Definition: ISet.h:111
bool addAll(const std::vector< E > &elements)
Definition: ISet.h:141
std::auto_ptr< DataArray< T > > toArray()
Definition: RawPointerSet.h:92
bool containsAll(const std::vector< T > &elements)
Definition: RawPointerSet.h:122
bool remove(const E &element)
Definition: ISet.h:121
std::string addItemListener(ItemListener< E > &listener, bool includeValue)
Warning 1: If listener should do a time consuming operation, off-load the operation to another thread...
Definition: ISet.h:51
bool removeItemListener(const std::string ®istrationId)
Removes the specified item listener.
Definition: RawPointerSet.h:58
Item listener for IQueue, ISet and IList.
Definition: ItemListener.h:40
bool removeItemListener(const std::string ®istrationId)
Removes the specified item listener.
Definition: ISet.h:67
bool contains(const E &element)
Definition: ISet.h:93
std::string addItemListener(ItemListener< T > &listener, bool includeValue)
Warning 1: If listener should do a time consuming operation, off-load the operation to another thread...
Definition: RawPointerSet.h:46
bool isEmpty()
Definition: RawPointerSet.h:74
bool retainAll(const std::vector< E > &elements)
Removes the elements from this set that are not available in given "elements" vector.
Definition: ISet.h:164
bool isEmpty()
Definition: ISet.h:83
void clear()
Removes all elements from set.
Definition: RawPointerSet.h:161