GemStone::GemFire::Cache::CacheableLinkedHashSet Class Reference

Inherits GemStone::GemFire::Cache::Internal::CacheableHashSetType< GemStone::GemFire::Cache::GemFireClassIds::CacheableLinkedHashSet, gemfire::CacheableLinkedHashSet >.


Detailed Description

A mutable ICacheableKey hash set wrapper that can serve as a distributable object for caching. This is provided for compability with java side though is functionally identical to CacheableHashSet i.e. does not provide the linked semantics of java LinkedHashSet.

Public Member Functions

virtual void Add (ICacheableKey^ item)
 CacheableLinkedHashSet (int32_t size)
 CacheableLinkedHashSet ()
virtual void Clear ()
virtual bool Contains (ICacheableKey^ item)
virtual void CopyTo (array< ICacheableKey^ >^array, int32_t arrayIndex)
virtual IGFSerializable^  FromData (DataInput^ input) override
virtual
System::Collections::Generic::IEnumerator
< ICacheableKey^ >^ 
GetEnumerator ()
virtual bool Remove (ICacheableKey^ item)
virtual void Resize (int32_t size) sealed
virtual void Swap (CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >^other) sealed
virtual void ToData (DataOutput^ output) override
virtual String^ ToString () override

Static Public Member Functions

static
CacheableLinkedHashSet
Create (int32_t size)
static
CacheableLinkedHashSet
Create ()
static operator GemStone::GemFire::Cache::Serializable^ (array< String^ >^value)
static operator GemStone::GemFire::Cache::Serializable^ (String^ value)
static operator GemStone::GemFire::Cache::Serializable^ (array< int64_t >^value)
static operator GemStone::GemFire::Cache::Serializable^ (array< int32_t >^value)
static operator GemStone::GemFire::Cache::Serializable^ (int32_t value)
static operator GemStone::GemFire::Cache::Serializable^ (array< int16_t >^value)
static operator GemStone::GemFire::Cache::Serializable^ (array< Char >^value)
static operator GemStone::GemFire::Cache::Serializable^ (Char value)
static operator GemStone::GemFire::Cache::Serializable^ (int16_t value)
static operator GemStone::GemFire::Cache::Serializable^ (array< Single >^value)
static operator GemStone::GemFire::Cache::Serializable^ (Single value)
static operator GemStone::GemFire::Cache::Serializable^ (array< Double >^value)
static operator GemStone::GemFire::Cache::Serializable^ (Double value)
static operator GemStone::GemFire::Cache::Serializable^ (array< bool >^value)
static operator GemStone::GemFire::Cache::Serializable^ (array< Byte >^value)
static operator GemStone::GemFire::Cache::Serializable^ (Byte value)
static operator GemStone::GemFire::Cache::Serializable^ (bool value)
static operator Serializable^ (int64_t value)
static void RegisterType (TypeFactoryMethod^ creationMethod)

Protected Member Functions

 C (int32_t size)
 C ()
 C (gemfire::Serializable *nativeptr)

Properties

int32_t BucketCount [get]
virtual uint32_t ClassId [get]
virtual int32_t Count [get]
bool IsEmpty [get]
virtual bool IsReadOnly [get]
int32_t MaxSize [get]
virtual uint32_t ObjectSize [get]

Constructor & Destructor Documentation

GemStone::GemFire::Cache::CacheableLinkedHashSet::CacheableLinkedHashSet (  )  [inline]

Allocates a new empty instance.

GemStone::GemFire::Cache::CacheableLinkedHashSet::CacheableLinkedHashSet ( int32_t  size  )  [inline]

Allocates a new instance with the given size.

Parameters:
size the intial size of the new instance


Member Function Documentation

virtual void GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::Add ( ICacheableKey^   item  )  [inline, virtual, inherited]

Adds an item to the CacheableHashSet.

Parameters:
item The object to add to the collection.

GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::C ( int32_t  size  )  [inline, protected, inherited]

Allocates a new empty instance with given initial size.

Parameters:
size The initial size of the HashSet.

GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::C (  )  [inline, protected, inherited]

Allocates a new empty instance.

GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::C ( gemfire::Serializable *  nativeptr  )  [inline, protected, inherited]

Private constructor to wrap a native object pointer

Parameters:
nativeptr The native object pointer

virtual void GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::Clear (  )  [inline, virtual, inherited]

Removes all items from the CacheableHashSet.

virtual bool GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::Contains ( ICacheableKey^   item  )  [inline, virtual, inherited]

Determines whether the CacheableHashSet contains a specific value.

Parameters:
item The object to locate in the CacheableHashSet.
Returns:
true if item is found in the CacheableHashSet; otherwise false.

virtual void GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::CopyTo ( array< ICacheableKey^ >^  array,
int32_t  arrayIndex 
) [inline, virtual, inherited]

Copies the elements of the CacheableHashSet to an System.Array, starting at a particular System.Array index.

Parameters:
array The one-dimensional System.Array that is the destination of the elements copied from CacheableHashSet. The System.Array must have zero-based indexing.
arrayIndex The zero-based index in array at which copying begins.
Exceptions:
IllegalArgumentException arrayIndex is less than 0 or array is null.
OutOfRangeException arrayIndex is equal to or greater than the length of array. -or-The number of elements in the source CacheableHashSet is greater than the available space from arrayIndex to the end of the destination array.

static CacheableLinkedHashSet ^ GemStone::GemFire::Cache::CacheableLinkedHashSet::Create ( int32_t  size  )  [inline, static]

Static function to create a new instance with the given size.

static CacheableLinkedHashSet ^ GemStone::GemFire::Cache::CacheableLinkedHashSet::Create (  )  [inline, static]

Static function to create a new empty instance.

virtual IGFSerializable ^ GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::FromData ( DataInput^   input  )  [inline, override, virtual, inherited]

Deserializes the native (C++) object -- returns an instance of the Serializable class with the native object wrapped inside.

Parameters:
input the DataInput stream to use for reading the object data
Returns:
the deserialized object

Reimplemented from GemStone::GemFire::Cache::Serializable.

virtual System::Collections::Generic::IEnumerator<ICacheableKey^> ^ GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::GetEnumerator (  )  [inline, virtual, inherited]

Returns an enumerator that iterates through the CacheableHashSet.

Returns:
A System.Collections.Generic.IEnumerator that can be used to iterate through the CacheableHashSet.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( array< String^ >^  value  )  [static, inherited]

Implicit conversion operator from a string array to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( String^   value  )  [static, inherited]

Implicit conversion operator from a string to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( array< int64_t >^  value  )  [static, inherited]

Implicit conversion operator from a 64-bit integer array to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( array< int32_t >^  value  )  [static, inherited]

Implicit conversion operator from a 32-bit integer array to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( int32_t  value  )  [static, inherited]

Implicit conversion operator from a 32-bit integer to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( array< int16_t >^  value  )  [static, inherited]

Implicit conversion operator from a 16-bit integer array to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( array< Char >^  value  )  [static, inherited]

Implicit conversion operator from a character array to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( Char  value  )  [static, inherited]

Implicit conversion operator from a character to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( int16_t  value  )  [static, inherited]

Implicit conversion operator from a 16-bit integer to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( array< Single >^  value  )  [static, inherited]

Implicit conversion operator from a float array to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( Single  value  )  [static, inherited]

Implicit conversion operator from a float to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( array< Double >^  value  )  [static, inherited]

Implicit conversion operator from a double array to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( Double  value  )  [static, inherited]

Implicit conversion operator from a double to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( array< bool >^  value  )  [static, inherited]

Implicit conversion operator from an boolean array to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( array< Byte >^  value  )  [static, inherited]

Implicit conversion operator from an array of bytes to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( Byte  value  )  [static, inherited]

Implicit conversion operator from a byte to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator GemStone::GemFire::Cache::Serializable^ ( bool  value  )  [static, inherited]

Implicit conversion operator from a boolean to a Serializable.

static GemStone::GemFire::Cache::Serializable::operator Serializable^ ( int64_t  value  )  [static, inherited]

Implicit conversion operator from a 64-bit integer to a Serializable.

static void GemStone::GemFire::Cache::Serializable::RegisterType ( TypeFactoryMethod^   creationMethod  )  [static, inherited]

Register an instance factory method for a given type. This should be used when registering types that implement IGFSerializable.

Parameters:
creationMethod the creation function to register
Exceptions:
IllegalArgumentException if the method is null
IllegalStateException if the typeId has already been registered, or there is an error in registering the type; check Utils::LastError for more information in the latter case.

virtual bool GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::Remove ( ICacheableKey^   item  )  [inline, virtual, inherited]

Removes the first occurrence of a specific object from the CacheableHashSet.

Parameters:
item The object to remove from the CacheableHashSet.
Returns:
true if item was successfully removed from the CacheableHashSet; otherwise, false. This method also returns false if item is not found in the original CacheableHashSet.

virtual void GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::Resize ( int32_t  size  )  [inline, sealed, virtual, inherited]

Increases the bucket count to at least size elements.

Parameters:
size The new size of the HashSet.

virtual void GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::Swap ( CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >^  other  )  [inline, sealed, virtual, inherited]

Swap the contents of this CacheableHashSet with the given one.

Parameters:
other The other CacheableHashSet to use for swapping.

virtual void GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::ToData ( DataOutput^   output  )  [inline, override, virtual, inherited]

Serializes this native (C++) object.

Parameters:
output the DataOutput object to use for serializing the object

Reimplemented from GemStone::GemFire::Cache::Serializable.

virtual String ^ GemStone::GemFire::Cache::Serializable::ToString (  )  [override, virtual, inherited]

Return a string representation of the object. It simply returns the string representation of the underlying native object by calling its toString() function.

Implements GemStone::GemFire::Cache::IGFSerializable.

Reimplemented in GemStone::GemFire::Cache::Template::CacheableBuiltinKey< TNative, TManaged, TYPEID >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< TNative, TNativePtr, TManaged, TYPEID >, GemStone::GemFire::Cache::CacheableStringArray, GemStone::GemFire::Cache::CacheableString, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableFloat, Single, GemFireClassIds::CacheableFloat >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableByte, Byte, GemFireClassIds::CacheableByte >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableWideChar, Char, GemFireClassIds::CacheableCharacter >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableDouble, Double, GemFireClassIds::CacheableDouble >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableInt64, int64_t, GemFireClassIds::CacheableInt64 >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableBoolean, bool, GemFireClassIds::CacheableBoolean >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableInt16, int16_t, GemFireClassIds::CacheableInt16 >, GemStone::GemFire::Cache::Template::CacheableBuiltinKey< gemfire::CacheableInt32, int32_t, GemFireClassIds::CacheableInt32 >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CacheableBytes, gemfire::CacheableBytesPtr, Byte, GemFireClassIds::CacheableBytes >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CacheableInt32Array, gemfire::CacheableInt32ArrayPtr, int32_t, GemFireClassIds::CacheableInt32Array >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CacheableInt64Array, gemfire::CacheableInt64ArrayPtr, int64_t, GemFireClassIds::CacheableInt64Array >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CharArray, gemfire::CharArrayPtr, Char, GemFireClassIds::CharArray >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CacheableFloatArray, gemfire::CacheableFloatArrayPtr, Single, GemFireClassIds::CacheableFloatArray >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CacheableInt16Array, gemfire::CacheableInt16ArrayPtr, int16_t, GemFireClassIds::CacheableInt16Array >, GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::CacheableDoubleArray, gemfire::CacheableDoubleArrayPtr, Double, GemFireClassIds::CacheableDoubleArray >, and GemStone::GemFire::Cache::Template::CacheableBuiltinArray< gemfire::BooleanArray, gemfire::BooleanArrayPtr, bool, GemFireClassIds::BooleanArray >.


Property Documentation

int32_t GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::BucketCount [get, inherited]

Get the number of buckets used by the HashSet.

virtual uint32_t GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::ClassId [get, inherited]

Returns the classId of the instance being serialized. This is used by deserialization to determine what instance type to create and deserialize into.

Returns:
the classId

Reimplemented from GemStone::GemFire::Cache::Serializable.

virtual int32_t GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::Count [get, inherited]

Gets the number of elements contained in the CacheableHashSet.

bool GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::IsEmpty [get, inherited]

True if the CacheableHashSet's size is 0.

virtual bool GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::IsReadOnly [get, inherited]

Gets a value indicating whether the collection is read-only.

Returns:
always false for CacheableHashSet

int32_t GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::MaxSize [get, inherited]

Get the largest possible size of the CacheableHashSet.

virtual uint32_t GemStone::GemFire::Cache::Internal::CacheableHashSetType< TYPEID, gemfire::CacheableLinkedHashSet >::ObjectSize [get, inherited]

return the size of this object in bytes

Reimplemented from GemStone::GemFire::Cache::Serializable.


GemFire C++ Cache .NET API Documentation