Click or drag to resize
Accord.NET (logo)

PriorityQueueNodeT Structure

Represents the node of a priority queue.

Namespace:  Accord.Collections
Assembly:  Accord (in Accord.dll) Version: 3.8.0
Syntax
[SerializableAttribute]
public struct PriorityQueueNode<T> : IComparable<PriorityQueueNode<T>>, 
	IEquatable<PriorityQueueNode<T>>
Request Example View Source

Type Parameters

T
The type for the values stored in the queue.

The PriorityQueueNodeT type exposes the following members.

Constructors
  NameDescription
Public methodPriorityQueueNodeT
Initializes a new instance of the PriorityQueueNodeT struct.
Top
Properties
  NameDescription
Public propertyInsertionIndex
Gets the original position at which this node was inserted.
Public propertyIsEmpty
Gets a value indicating whether this node is empty (does not belong to any queue).
Public propertyPriority
Gets a double-value representing the current priority for the node.
Public propertyQueueIndex
Gets the current position of this node in its containing queue.
Public propertyValue
Gets or sets the current value associated with this node.
Top
Methods
  NameDescription
Public methodCompareTo
Compares the current object with another object of the same type.
Public methodEquals(Object)
Determines whether the specified Object, is equal to this instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(PriorityQueueNodeT)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a String that represents this instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the equals operator.
Public operatorStatic memberGreaterThan
Implements the greater than operator.
Public operatorStatic memberInequality
Implements the not equals operator.
Public operatorStatic memberLessThan
Implements the less than operator.
Top
Fields
  NameDescription
Public fieldStatic memberEmpty
Gets an instance representing an empty node.
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
See Also