Concurrent, distributed client implementation of std::unordered_set.
More...
#include <ISet.h>
|
std::string | addItemListener (MixedItemListener &listener, bool includeValue) |
| Warning 1: If listener should do a time consuming operation, off-load the operation to another thread. More...
|
|
bool | removeItemListener (const std::string ®istrationId) |
| Removes the specified item listener. More...
|
|
int | size () |
|
bool | isEmpty () |
|
template<typename E > |
bool | contains (const E &element) |
|
std::vector< TypedData > | toArray () |
|
template<typename E > |
bool | add (const E &element) |
|
template<typename E > |
bool | remove (const E &element) |
|
template<typename E > |
bool | containsAll (const std::vector< E > &elements) |
|
template<typename E > |
bool | addAll (const std::vector< E > &elements) |
|
template<typename E > |
bool | removeAll (const std::vector< E > &elements) |
|
template<typename E > |
bool | retainAll (const std::vector< E > &elements) |
| Removes the elements from this set that are not available in given "elements" vector. More...
|
|
void | clear () |
| Removes all elements from set.
|
|
|
class | client::HazelcastClient |
|
Concurrent, distributed client implementation of std::unordered_set.
template<typename E >
bool hazelcast::client::mixedtype::ISet::add |
( |
const E & |
element | ) |
|
|
inline |
- Parameters
-
- Returns
- true if element is added successfully. If elements was already there returns false.
- Exceptions
-
IClassCastException | if the type of the specified element is incompatible with the server side. |
template<typename E >
bool hazelcast::client::mixedtype::ISet::addAll |
( |
const std::vector< E > & |
elements | ) |
|
|
inline |
- Parameters
-
- Returns
- true if all elements given in vector can be added to set.
- Exceptions
-
IClassCastException | if the type of the specified element is incompatible with the server side. |
std::string hazelcast::client::mixedtype::ISet::addItemListener |
( |
MixedItemListener & |
listener, |
|
|
bool |
includeValue |
|
) |
| |
Warning 1: If listener should do a time consuming operation, off-load the operation to another thread.
otherwise it will slow down the system.
Warning 2: Do not make a call to hazelcast. It can cause deadlock.
- Parameters
-
listener | to be added |
includeValue | boolean value representing value should be included in incoming ItemEvent or not. |
- Returns
- registrationId that can be used to remove item listener
template<typename E >
bool hazelcast::client::mixedtype::ISet::contains |
( |
const E & |
element | ) |
|
|
inline |
- Parameters
-
- Returns
- true if set contains element
- Exceptions
-
IClassCastException | if the type of the specified element is incompatible with the server side. |
template<typename E >
bool hazelcast::client::mixedtype::ISet::containsAll |
( |
const std::vector< E > & |
elements | ) |
|
|
inline |
- Parameters
-
- Returns
- true if this set contains all elements given in vector.
- Exceptions
-
IClassCastException | if the type of the specified element is incompatible with the server side. |
bool hazelcast::client::mixedtype::ISet::isEmpty |
( |
| ) |
|
template<typename E >
bool hazelcast::client::mixedtype::ISet::remove |
( |
const E & |
element | ) |
|
|
inline |
- Parameters
-
- Returns
- true if element is removed successfully.
- Exceptions
-
IClassCastException | if the type of the specified element is incompatible with the server side. |
template<typename E >
bool hazelcast::client::mixedtype::ISet::removeAll |
( |
const std::vector< E > & |
elements | ) |
|
|
inline |
- Parameters
-
- Returns
- true if all elements are removed successfully.
- Exceptions
-
IClassCastException | if the type of the specified element is incompatible with the server side. |
bool hazelcast::client::mixedtype::ISet::removeItemListener |
( |
const std::string & |
registrationId | ) |
|
Removes the specified item listener.
Returns false if the specified listener is not added before.
- Parameters
-
registrationId | Id of listener registration. |
- Returns
- true if registration is removed, false otherwise
template<typename E >
bool hazelcast::client::mixedtype::ISet::retainAll |
( |
const std::vector< E > & |
elements | ) |
|
|
inline |
Removes the elements from this set that are not available in given "elements" vector.
- Parameters
-
- Returns
- true if operation is successful.
- Exceptions
-
IClassCastException | if the type of the specified element is incompatible with the server side. |
int hazelcast::client::mixedtype::ISet::size |
( |
| ) |
|
- Returns
- size of the distributed set
std::vector< TypedData > hazelcast::client::mixedtype::ISet::toArray |
( |
| ) |
|
- Returns
- all elements as std::vector
The documentation for this class was generated from the following files:
- hazelcast/include/hazelcast/client/mixedtype/ISet.h
- hazelcast/src/hazelcast/client/mixedtype/ISet.cpp