16 #ifndef HAZELCAST_CLIENT_MIXEDTYPE_ILIST_H_
17 #define HAZELCAST_CLIENT_MIXEDTYPE_ILIST_H_
22 #include "hazelcast/client/proxy/IListImpl.h"
23 #include "hazelcast/client/TypedData.h"
24 #include "hazelcast/client/ItemListener.h"
26 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
28 #pragma warning(disable: 4251) //for dll export
38 class HAZELCAST_API
IList :
public proxy::IListImpl {
63 bool removeItemListener(
const std::string ®istrationId);
85 return proxy::IListImpl::contains(toData<E>(element));
92 std::vector<TypedData> toArray();
100 template <
typename E>
101 bool add(
const E &element) {
102 return proxy::IListImpl::add(toData<E>(element));
111 template <
typename E>
112 bool remove(
const E &element) {
113 return proxy::IListImpl::remove(toData<E>(element));
122 template <
typename E>
124 return proxy::IListImpl::containsAll(toDataCollection<E>(elements));
133 template <
typename E>
134 bool addAll(
const std::vector<E> &elements) {
135 return proxy::IListImpl::addAll(toDataCollection<E>(elements));
149 template <
typename E>
150 bool addAll(
int index,
const std::vector<E> &elements) {
151 return proxy::IListImpl::addAll(index, toDataCollection<E>(elements));
160 template <
typename E>
162 return proxy::IListImpl::removeAll(toDataCollection<E>(elements));
172 template <
typename E>
174 return proxy::IListImpl::retainAll(toDataCollection<E>(elements));
205 template <
typename E>
207 return TypedData(proxy::IListImpl::setData(index, toData(element)), context->getSerializationService());
218 template <
typename E>
219 void add(
int index,
const E &element) {
220 proxy::IListImpl::add(index, toData(element));
239 template <
typename E>
241 return proxy::IListImpl::indexOf(toData(element));
250 template <
typename E>
252 return proxy::IListImpl::lastIndexOf(toData(element));
260 std::vector<TypedData> subList(
int fromIndex,
int toIndex);
263 IList(
const std::string &instanceName, spi::ClientContext *context);
269 #if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
TypedData set(int index, const E &element)
Replaced the element in the given index.
Definition: IList.h:206
bool containsAll(const std::vector< E > &elements)
Definition: IList.h:123
bool contains(const E &element)
Definition: IList.h:84
bool removeAll(const std::vector< E > &elements)
Definition: IList.h:161
bool addAll(const std::vector< E > &elements)
Definition: IList.h:134
int indexOf(const E &element)
Definition: IList.h:240
Concurrent, distributed , client implementation of std::list.
Definition: IList.h:38
bool addAll(int index, const std::vector< E > &elements)
Adds elements in vector to the list with given order.
Definition: IList.h:150
bool add(const E &element)
Definition: IList.h:101
bool retainAll(const std::vector< E > &elements)
Removes the elements from this list that are not available in given "elements" vector.
Definition: IList.h:173
Item listener for IQueue, ISet and IList.
Definition: ItemListener.h:40
Definition: MapEntryView.h:32
void add(int index, const E &element)
Adds the element to the given index.
Definition: IList.h:219
TypedData class is a wrapper class for the serialized binary data.
Definition: TypedData.h:40
Hazelcast Client enables you to do all Hazelcast operations without being a member of the cluster...
Definition: HazelcastClient.h:459
int lastIndexOf(const E &element)
Definition: IList.h:251