Class UnmanagedNativeBookkeeper<T>
- Namespace
- Zorro.Core
- Assembly
- Zorro.Core.Runtime.dll
public class UnmanagedNativeBookkeeper<T> : IDisposable, INativeBookkeeper where T : unmanaged
Type Parameters
T
- Inheritance
-
UnmanagedNativeBookkeeper<T>
- Implements
-
- Inherited Members
-
- Extension Methods
-
Constructors
UnmanagedNativeBookkeeper(int)
public UnmanagedNativeBookkeeper(int defaultCapacity)
Parameters
defaultCapacity
int
Fields
Keys
public NativeList<T> Keys
Field Value
- NativeList<T>
m_bookKeepingRecords
protected List<BookkeepingRecord> m_bookKeepingRecords
Field Value
- List<BookkeepingRecord>
m_bookkeepingIndexer
protected BidirectionalDictionary<T, int> m_bookkeepingIndexer
Field Value
- BidirectionalDictionary<T, int>
recordsCount
protected int recordsCount
Field Value
- int
Properties
Count
public int Count { get; }
Property Value
- int
Methods
Add(T)
public virtual int Add(T newEntry)
Parameters
newEntry
T
Returns
- int
Dispose()
GetFromIndex(int)
public T GetFromIndex(int i)
Parameters
i
int
Returns
- T
GetIndex(T)
public int GetIndex(T entry)
Parameters
entry
T
Returns
- int
GetKeyFromIndex(int)
public T GetKeyFromIndex(int index)
Parameters
index
int
Returns
- T
HasKey(T)
public bool HasKey(T key)
Parameters
key
T
Returns
- bool
RegisterRecord(BookkeepingRecord)
public void RegisterRecord(BookkeepingRecord record)
Parameters
record
BookkeepingRecord
Remove(T)
public virtual BookkeperRemovalInfo Remove(T entry)
Parameters
entry
T
Returns
- BookkeperRemovalInfo