16 #ifndef HAZELCAST_CLIENT_ADAPTOR_RAWPOINTERLIST_H_ 
   17 #define HAZELCAST_CLIENT_ADAPTOR_RAWPOINTERLIST_H_ 
   19 #include "hazelcast/client/IList.h" 
   20 #include "hazelcast/client/adaptor/MapEntryView.h" 
   21 #include "hazelcast/client/impl/DataArrayImpl.h" 
   22 #include "hazelcast/client/impl/EntryArrayImpl.h" 
   24 #if  defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) 
   26 #pragma warning(disable: 4251) //for dll export 
   41                         list.context->getSerializationService()) {
 
  102                     return std::auto_ptr<DataArray<T> >(
new impl::DataArrayImpl<T>(list.toArrayData(), serializationService));
 
  111                 bool add(
const T &element) {
 
  112                     return list.
add(element);
 
  121                 bool remove(
const T &element) {
 
  122                     return list.
remove(element);
 
  141                 bool addAll(
const std::vector<T> &elements) {
 
  142                     return list.
addAll(elements);
 
  156                 bool addAll(
int index, 
const std::vector<T> &elements) {
 
  157                     return list.
addAll(index, elements);
 
  200                 std::auto_ptr<T> 
get(
int index) {
 
  201                     return serializationService.toObject<T>(list.getData(index).
get());
 
  213                 std::auto_ptr<T> 
set(
int index, 
const T &element) {
 
  214                     return serializationService.toObject<T>(list.setData(index, serializationService.toData<T>(&element)).
get());
 
  225                 void add(
int index, 
const T &element) {
 
  226                     list.
add(index, element);
 
  236                 std::auto_ptr<T> 
remove(
int index) {
 
  237                     return serializationService.toObject<T>(list.removeData(index).
get());
 
  266                 std::auto_ptr<DataArray<T> > 
subList(
int fromIndex, 
int toIndex) {
 
  267                     return std::auto_ptr<DataArray<T> >(
new impl::DataArrayImpl<T>(list.subListData(fromIndex, toIndex), serializationService));
 
  272                 serialization::pimpl::SerializationService &serializationService;
 
  278 #if  defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64) 
bool containsAll(const std::vector< T > &elements)
Definition: RawPointerList.h:131
 
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: IList.h:58
 
int size()
Definition: RawPointerList.h:75
 
int indexOf(const E &element)
Definition: IList.h:254
 
bool retainAll(const std::vector< T > &elements)
Removes the elements from this list that are not available in given "elements" vector. 
Definition: RawPointerList.h:177
 
bool removeAll(const std::vector< T > &elements)
Definition: RawPointerList.h:166
 
int lastIndexOf(const T &element)
Definition: RawPointerList.h:257
 
int lastIndexOf(const E &element)
Definition: IList.h:264
 
bool retainAll(const std::vector< E > &elements)
Removes the elements from this list that are not available in given "elements" vector. 
Definition: IList.h:184
 
void clear()
Removes all elements from list. 
Definition: RawPointerList.h:184
 
int indexOf(const T &element)
Definition: RawPointerList.h:247
 
bool addAll(const std::vector< T > &elements)
Definition: RawPointerList.h:141
 
int size()
Definition: IList.h:82
 
boost::shared_ptr< E > get(int index)
You can check if element is available by. 
Definition: IList.h:207
 
bool removeAll(const std::vector< E > &elements)
Definition: IList.h:173
 
std::auto_ptr< DataArray< T > > subList(int fromIndex, int toIndex)
Definition: RawPointerList.h:266
 
bool removeItemListener(const std::string ®istrationId)
Removes the specified item listener. 
Definition: IList.h:74
 
bool containsAll(const std::vector< E > &elements)
Definition: IList.h:138
 
bool contains(const T &element)
Definition: RawPointerList.h:93
 
bool add(const E &element)
Definition: IList.h:118
 
Concurrent, distributed , client implementation of std::list. 
Definition: RawPointerList.h:38
 
std::auto_ptr< T > set(int index, const T &element)
Replaced the element in the given index. 
Definition: RawPointerList.h:213
 
void clear()
Removes all elements from list. 
Definition: IList.h:191
 
bool isEmpty()
Definition: RawPointerList.h:83
 
std::auto_ptr< DataArray< T > > toArray()
Definition: RawPointerList.h:101
 
bool remove(const E &element)
Definition: IList.h:128
 
bool isEmpty()
Definition: IList.h:90
 
bool addAll(const std::vector< E > &elements)
Definition: IList.h:148
 
void add(int index, const T &element)
Adds the element to the given index. 
Definition: RawPointerList.h:225
 
Item listener for IQueue, ISet and IList. 
Definition: ItemListener.h:40
 
bool add(const T &element)
Definition: RawPointerList.h:111
 
bool removeItemListener(const std::string ®istrationId)
Removes the specified item listener. 
Definition: RawPointerList.h:67
 
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: RawPointerList.h:55
 
bool addAll(int index, const std::vector< T > &elements)
Adds elements in vector to the list with given order. 
Definition: RawPointerList.h:156
 
bool contains(const E &element)
Definition: IList.h:100