Example #1
0
 public WeightedSet(int inCapacity)
 {
     m_Entries = new RingBuffer <Entry>(inCapacity, RingBufferMode.Expand);
     m_Cached  = true;
 }
Example #2
0
 public WeightedSet()
 {
     m_Entries = new RingBuffer <Entry>();
     m_Cached  = true;
 }
Example #3
0
 public BufferedCollection(int inCapacity)
 {
     m_Entries = new RingBuffer <Entry>(inCapacity, RingBufferMode.Expand);
 }
Example #4
0
 /// <summary>
 /// Sorts the given buffer by key.
 /// </summary>
 static public void SortByKey <K, V>(this RingBuffer <V> inList)
     where V : IKeyValuePair <K, V>
     where K : IComparable <K>
 {
     inList.Sort(KeySorter <K, V, V> .KeyComparer);
 }
Example #5
0
 public BufferedCollection()
 {
     m_Entries = new RingBuffer <Entry>();
 }