Class PointerKind
Identifies a particular kind of pointer.
Implements
Inherited Members
Namespace: Flame.TypeSystem
Assembly: Flame.dll
Syntax
public abstract class PointerKind : IEquatable<PointerKind>
Fields
| Edit this page View SourceBox
The pointer kind for box pointers. This kind of pointers is used both for boxed 'struct' values and for references to 'class' values.
Declaration
public static readonly PointerKind Box
Field Value
| Type | Description |
|---|---|
| PointerKind |
Reference
The pointer kind for reference pointers, which are pointers to a value that may or may not be tracked by the garbage collection runtime.
As a rule, reference pointers should never be used as the type of a field or as the element type of a container.
Declaration
public static readonly PointerKind Reference
Field Value
| Type | Description |
|---|---|
| PointerKind |
Transient
The pointer kind for transient pointers.
Declaration
public static readonly PointerKind Transient
Field Value
| Type | Description |
|---|---|
| PointerKind |
Methods
| Edit this page View SourceEquals(PointerKind)
Checks if this pointer kind equals another pointer kind.
Declaration
public abstract bool Equals(PointerKind other)
Parameters
| Type | Name | Description |
|---|---|---|
| PointerKind | other | The other pointer kind. |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override abstract int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceToString()
Returns a string that represents the current object.
Declaration
public override abstract string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |