Hazelcast C++ Client
Public Member Functions | List of all members
hazelcast::client::DataArray< T > Class Template Referenceabstract

Public Member Functions

virtual size_t size () const =0
 
virtual const T * get (size_t index)=0
 Please note that this operation MAY (if the de-serialization is not done before) be costly due to de-serialization. More...
 
virtual std::auto_ptr< T > release (size_t index)=0
 Will release the de-serialized data. More...
 
virtual const T * operator[] (size_t index)=0
 Please note that this operation MAY (if the de-serialization is not done before) be costly due to de-serialization. More...
 

Member Function Documentation

template<typename T >
virtual const T* hazelcast::client::DataArray< T >::get ( size_t  index)
pure virtual

Please note that this operation MAY (if the de-serialization is not done before) be costly due to de-serialization.

It will cache the de-serialized data.

Parameters
indexThe index of the desired item in the array.
Returns
Deserializes the data and returns the pointer for the newly created object for the data at the provided index.
Exceptions
IllegalArgumentExceptionIf provided index is greater than the maximum array index.
template<typename T >
virtual const T* hazelcast::client::DataArray< T >::operator[] ( size_t  index)
pure virtual

Please note that this operation MAY (if the de-serialization is not done before) be costly due to de-serialization.

It will cache the de-serialized data.

Parameters
indexThe index of the desired item in the array.
Returns
Deserializes the data and returns the pointer for the newly created object for the data at the provided index.
Exceptions
IllegalArgumentExceptionIf provided index is greater than the maximum array index.
template<typename T >
virtual std::auto_ptr<T> hazelcast::client::DataArray< T >::release ( size_t  index)
pure virtual

Will release the de-serialized data.

Parameters
indexThe index of the desired item in the array.
Returns
Deserializes the data and returns the pointer for the newly created object for the data at the provided index.
Exceptions
IllegalArgumentExceptionIf provided index is greater than the maximum array index.
template<typename T >
virtual size_t hazelcast::client::DataArray< T >::size ( ) const
pure virtual
Returns
Returns the number of data items

The documentation for this class was generated from the following file: