This class is used for inserting and removing TYPED items from the priority stack
This kind of stack is used for purposes like cursor management
In cursor management, the cursor with the greatest priority has to be shown
Also, there is the need to remove any of the cursors from the queue, whenever it is needed
When the cursor is being added to queue, the ID is being returned
This ID is then being used for object retreival

C# | Visual Basic | Visual C++ |
public sealed class TypedPriorityStack<T> where T : class
Public NotInheritable Class TypedPriorityStack(Of T As Class)
generic<typename T> where T : ref class public ref class TypedPriorityStack sealed

- T

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | TypedPriorityStack<(Of <(<'T>)>)>()()()() | Initializes a new instance of the TypedPriorityStack<(Of <(<'T>)>)> class |
![]() | Clear()()()() |
Clears the stack
|
![]() | Current |
Gets the top-most item currently in the stack
|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) |
![]() | Insert(T, Int32) |
Inserts the object into the priority queue
Returns the ID of the same object in the queue
|
![]() | IsEmpty()()()() |
Returns true if the stack is empty
|
![]() | MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove(Int32) |
Removes an item specified by ID
|
![]() | ToString()()()() | (Overrides Object.ToString()()()().) |

Object | |
![]() | TypedPriorityStack<(Of <(<'T>)>)> |