Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
PriorityQueueNode.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 namespace SiliconStudio.Core.Collections
4 {
5  /// <summary>
6  /// Represents a node in a priority queue, to allow O(n) removal.
7  /// </summary>
8  /// <typeparam name="T"></typeparam>
9  public class PriorityQueueNode<T>
10  {
11  public T Value { get; internal set; }
12 
13  public int Index { get; internal set; }
14 
15  public PriorityQueueNode(T value)
16  {
17  Value = value;
18  Index = -1;
19  }
20  }
21 }