Photon Quantum 3.0.0

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Quantum.Collections.QHashSetPtr< T > Struct Template Reference

Stores a Quantum.Ptr which points to the memory location of a QHashSet<T> inside the frame heap. More...

Inherits IEquatable< QHashSetPtr< T >>.

Public Member Functions

 QHashSetPtr (Ptr ptr)
 Stores the pointer to the QHashSet<T>. More...
 
override bool Equals (object obj)
 Determines whether two object instances are equal. More...
 
bool Equals (QHashSetPtr< T > other)
 Returns a value indicating whether this instance is equal to a specified QHashSet<T> value. More...
 
override int GetHashCode ()
 Gets the hash code of the stored Quantum.Ptr. More...
 

Static Public Member Functions

static bool operator!= (QHashSetPtr< T > a, QHashSetPtr< T > b)
 Operator override for which checks if two instances of QHashSetPtr<T> are not equal. More...
 
static bool operator== (QHashSetPtr< T > a, QHashSetPtr< T > b)
 Operator override for which checks if two instances of QHashSetPtr<T> are equal. More...
 

Public Attributes

readonly Ptr Ptr
 The pointer to the memory location of the QHashSet<T> inside the frame heap.
To check if this collection is not allocated, check if this Ptr is not equals to Ptr.Null. More...
 

Detailed Description

Stores a Quantum.Ptr which points to the memory location of a QHashSet<T> inside the frame heap.

Template Parameters
TAn unmanaged type.
Type Constraints
T :unmanaged 

Constructor & Destructor Documentation

◆ QHashSetPtr()

Stores the pointer to the QHashSet<T>.

Member Function Documentation

◆ GetHashCode()

override int Quantum.Collections.QHashSetPtr< T >.GetHashCode ( )
inline

Gets the hash code of the stored Quantum.Ptr.

Returns
Returns the hash code of the stored Quantum.Ptr.

◆ Equals() [1/2]

override bool Quantum.Collections.QHashSetPtr< T >.Equals ( object  obj)
inline

Determines whether two object instances are equal.

Parameters
objThe object to compare with the current object.
Returns
true if the specified object is equal to the current object; otherwise, false.

◆ Equals() [2/2]

bool Quantum.Collections.QHashSetPtr< T >.Equals ( QHashSetPtr< T >  other)
inline

Returns a value indicating whether this instance is equal to a specified QHashSet<T> value.

Parameters
otherA QHashSet<T> value to compare to this instance.
Returns
true if other has the same value as this instance; otherwise, false.

◆ operator==()

static bool Quantum.Collections.QHashSetPtr< T >.operator== ( QHashSetPtr< T >  a,
QHashSetPtr< T >  b 
)
inlinestatic

Operator override for which checks if two instances of QHashSetPtr<T> are equal.

Returns
true if the instances are equal.

◆ operator!=()

static bool Quantum.Collections.QHashSetPtr< T >.operator!= ( QHashSetPtr< T >  a,
QHashSetPtr< T >  b 
)
inlinestatic

Operator override for which checks if two instances of QHashSetPtr<T> are not equal.

Returns
true if the instances are not equal.

Member Data Documentation

◆ Ptr

The pointer to the memory location of the QHashSet<T> inside the frame heap.
To check if this collection is not allocated, check if this Ptr is not equals to Ptr.Null.