Class Piece
Assembly: Unity.InferenceEngine.Tokenization.dll
Syntax
public abstract class Piece : IEquatable<Piece>
Constructors
Piece(int)
Initializes a new instance of the Piece type.
Declaration
protected Piece(int sequenceId)
Parameters
| Type |
Name |
Description |
| int |
sequenceId |
The ID of the sequence this piece belongs to.
|
Properties
SequenceId
The type id of the sequence.
Declaration
public int SequenceId { get; }
Property Value
Methods
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
Equals(Piece)
Declaration
public bool Equals(Piece other)
Parameters
| Type |
Name |
Description |
| Piece |
other |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
GetPieceHashCode()
Gets the hash code of this Piece.
Declaration
protected abstract int GetPieceHashCode()
Returns
| Type |
Description |
| int |
The hash code of this Piece.
|
PieceEquals(Piece)
Tell whether this Piece equals the other one.
Declaration
protected abstract bool PieceEquals(Piece other)
Parameters
| Type |
Name |
Description |
| Piece |
other |
The other Piece to compare.
|
Returns
| Type |
Description |
| bool |
Whether this Piece equals the other one.
|
ToString()
Declaration
public override abstract string ToString()
Returns
Overrides
Implements