Table of Contents

Class TokenUsage

Namespace
Glitch9.AIDevKit
[Serializable]
public class TokenUsage : Usage, IEquatable<Usage>, IEquatable<TokenUsage>
Inheritance
object
TokenUsage
Implements
IEquatable<Usage>
IEquatable<TokenUsage>
Inherited Members

Constructors

TokenUsage()

public TokenUsage()

TokenUsage(TokenType, int)

public TokenUsage(TokenType tokenType, int tokens)

Parameters

tokenType TokenType
tokens int

Fields

tokenType

public TokenType tokenType

Field Value

TokenType

tokens

public int tokens

Field Value

int

Properties

HasValue

public override bool HasValue { get; }

Property Value

bool

Methods

Equals(TokenUsage)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(TokenUsage other)

Parameters

other TokenUsage

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetInspectorTypeName()

public override string GetInspectorTypeName()

Returns

string

GetInspectorValueName()

public override string GetInspectorValueName()

Returns

string

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.

TryMerge(Usage)

public override bool TryMerge(Usage other)

Parameters

other Usage

Returns

bool