API Reference › Natives
CUtlRBTree`2
StructNamespace: SwiftlyS2.Shared.Natives · Assembly: SwiftlyS2.CS2.dll
public struct CUtlRBTree<TValue, TKey> : IDisposable where TKey : unmanaged, IBinaryInteger<TKey>, IMinMaxValue<TKey>Implements IDisposable
Constructors
public CUtlRBTree(TKey growSize, TKey initSize, CUtlRBTree<TValue, TKey>.LessFunc func)Parameters
- growSizeTKey
- initSizeTKey
- funcCUtlRBTree<TValue, TKey>.LessFunc
Properties
Methods
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()public void FindInsertionPosition(TValue val, out TKey parent, out bool leftchild)Parameters
- valTValue
- parentTKey
- leftchildbool
public void LinkToParent(TKey i, TKey parent, bool isLeft)Parameters
- iTKey
- parentTKey
- isLeftbool
public ref CUtlRBTreeLinks<TKey> Links(TKey i)Parameters
- iTKey
Returns
CUtlRBTreeLinks<TKey>
public void SetLessFunc(CUtlRBTree<TValue, TKey>.LessFunc func)Parameters
- funcCUtlRBTree<TValue, TKey>.LessFunc
Fields
public CUtlLeanVector<CUtlRBTreeNode<TKey, TValue>, TKey> ElementsField Value
CUtlLeanVector<CUtlRBTreeNode<TKey, TValue>, TKey>
public CUtlLeanVector<CUtlRBTreeNode<TKey, TValue>, TKey>.Iterator_t LastAllocField Value
CUtlLeanVector<CUtlRBTreeNode<TKey, TValue>, TKey>.Iterator_t