Craig's Utility Library
4.0 Beta
|
Helper class that implements a priority queue More...
Public Member Functions | |
PriorityQueue () | |
Constructor More... | |
virtual void | Add (int Key, T Value) |
Adds an item to the mapping More... | |
virtual void | Add (KeyValuePair< int, ICollection< T >> item) |
Adds a key value pair More... | |
virtual void | Add (int Key, ICollection< T > Value) |
Adds a list of items to the mapping More... | |
virtual void | Clear () |
Clears all items from the listing More... | |
virtual bool | Contains (KeyValuePair< int, ICollection< T >> item) |
Does this contain the key value pairs? More... | |
virtual bool | Contains (int Key, ICollection< T > Values) |
Does the list mapping contain the key value pairs? More... | |
bool | Contains (int Key, T Value) |
Does the list mapping contain the key value pair? More... | |
virtual bool | ContainsKey (int key) |
Determines if a key exists More... | |
void | CopyTo (KeyValuePair< int, ICollection< T >>[] array, int arrayIndex) |
Not implemented More... | |
IEnumerator< KeyValuePair< int, ICollection< T > > > | GetEnumerator () |
Gets the enumerator More... | |
virtual T | Peek () |
Peek at the next thing in the queue More... | |
virtual T | Pop () |
Removes an item from the queue and returns it More... | |
virtual bool | Remove (int key) |
Remove a list of items associated with a key More... | |
virtual bool | Remove (KeyValuePair< int, ICollection< T >> item) |
Removes a key value pair from the list mapping More... | |
virtual bool | Remove (int Key, T Value) |
Removes a key value pair from the list mapping More... | |
virtual bool | TryGetValue (int Key, out ICollection< T > Value) |
Tries to get the value associated with the key More... | |
Properties | |
virtual int | Count [get] |
The number of items in the listing More... | |
bool | IsReadOnly [get] |
Not read only More... | |
virtual ICollection< int > | Keys [get] |
The list of keys within the mapping More... | |
ICollection< ICollection< T > > | Values [get] |
List that contains the list of values More... | |
virtual int | HighestKey [get, set] |
Highest value key More... | |
IDictionary< int, ICollection< T > > | Items [get] |
Container holding the data More... | |
virtual ICollection< T > | this[int key] [get, set] |
Gets a list of values associated with a key More... | |
Helper class that implements a priority queue
T | The type of the values placed in the queue |
Definition at line 33 of file PriorityQueue.cs.
Constructor
Definition at line 38 of file PriorityQueue.cs.
|
virtual |
Adds an item to the mapping
Key | Key value |
Value | The value to add |
Definition at line 108 of file PriorityQueue.cs.
|
virtual |
Adds a key value pair
item | Key value pair to add |
Definition at line 119 of file PriorityQueue.cs.
|
virtual |
Adds a list of items to the mapping
Key | Key value |
Value | The values to add |
Definition at line 131 of file PriorityQueue.cs.
|
virtual |
Clears all items from the listing
Definition at line 141 of file PriorityQueue.cs.
|
virtual |
Does this contain the key value pairs?
item | Key value pair to check |
Definition at line 151 of file PriorityQueue.cs.
|
virtual |
Does the list mapping contain the key value pairs?
Key | Key value |
Values | Value |
Definition at line 166 of file PriorityQueue.cs.
bool Utilities.DataTypes.PriorityQueue< T >.Contains | ( | int | Key, |
T | Value | ||
) |
Does the list mapping contain the key value pair?
Key | Key |
Value | Value |
Definition at line 182 of file PriorityQueue.cs.
|
virtual |
Determines if a key exists
key | Key to check on |
Definition at line 196 of file PriorityQueue.cs.
void Utilities.DataTypes.PriorityQueue< T >.CopyTo | ( | KeyValuePair< int, ICollection< T >>[] | array, |
int | arrayIndex | ||
) |
Not implemented
array | Array to copy to |
arrayIndex | array index |
Definition at line 206 of file PriorityQueue.cs.
IEnumerator<KeyValuePair<int, ICollection<T> > > Utilities.DataTypes.PriorityQueue< T >.GetEnumerator | ( | ) |
Gets the enumerator
Definition at line 215 of file PriorityQueue.cs.
|
virtual |
Peek at the next thing in the queue
Definition at line 225 of file PriorityQueue.cs.
|
virtual |
Removes an item from the queue and returns it
Definition at line 236 of file PriorityQueue.cs.
|
virtual |
Remove a list of items associated with a key
key | Key to use |
Definition at line 259 of file PriorityQueue.cs.
|
virtual |
Removes a key value pair from the list mapping
item | items to remove |
Definition at line 269 of file PriorityQueue.cs.
|
virtual |
Removes a key value pair from the list mapping
Key | Key to remove |
Value | Value to remove |
Definition at line 285 of file PriorityQueue.cs.
|
virtual |
Tries to get the value associated with the key
Key | Key value |
Value | The values getting |
Definition at line 311 of file PriorityQueue.cs.
|
get |
The number of items in the listing
Definition at line 48 of file PriorityQueue.cs.
|
getsetprotected |
Highest value key
Definition at line 85 of file PriorityQueue.cs.
|
get |
Not read only
Definition at line 56 of file PriorityQueue.cs.
|
getprotected |
Container holding the data
Definition at line 90 of file PriorityQueue.cs.
|
get |
The list of keys within the mapping
Definition at line 64 of file PriorityQueue.cs.
|
getset |
Gets a list of values associated with a key
key | Key to look for |
Definition at line 98 of file PriorityQueue.cs.
|
get |
List that contains the list of values
Definition at line 72 of file PriorityQueue.cs.