Пример #1
0
 public WeightedSet(int inCapacity)
 {
     m_Entries = new RingBuffer <Entry>(inCapacity, RingBufferMode.Expand);
     m_Cached  = true;
 }
Пример #2
0
 public WeightedSet()
 {
     m_Entries = new RingBuffer <Entry>();
     m_Cached  = true;
 }
Пример #3
0
 public BufferedCollection(int inCapacity)
 {
     m_Entries = new RingBuffer <Entry>(inCapacity, RingBufferMode.Expand);
 }
Пример #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);
 }
Пример #5
0
 public BufferedCollection()
 {
     m_Entries = new RingBuffer <Entry>();
 }