Class NativeBookkeeper<T>
public class NativeBookkeeper<T> : IDisposable, INativeBookkeeper
Type Parameters
T
- Inheritance
-
NativeBookkeeper<T>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
NativeBookkeeper(int)
public NativeBookkeeper(int defaultCapacity)
Parameters
defaultCapacity
int
Fields
m_bookKeepingRecords
protected List<BookkeepingRecord> m_bookKeepingRecords
Field Value
m_bookkeepingIndexer
protected BidirectionalDictionary<T, int> m_bookkeepingIndexer
Field Value
m_keys
protected PerformantList<T> m_keys
Field Value
recordsCount
protected int recordsCount
Field Value
Properties
Count
public int Count { get; }
Property Value
Methods
Add(T)
public virtual int Add(T newEntry)
Parameters
newEntry
T
Returns
Contains(T)
public bool Contains(T mesh)
Parameters
mesh
T
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public virtual void Dispose()
GetFromIndex(int)
public T GetFromIndex(int i)
Parameters
i
int
Returns
- T
GetIndex(T)
public int GetIndex(T entry)
Parameters
entry
T
Returns
GetKeyFromIndex(int)
public T GetKeyFromIndex(int index)
Parameters
index
int
Returns
- T
GetKeyList()
public PerformantList<T> GetKeyList()
Returns
RegisterRecord(BookkeepingRecord)
public void RegisterRecord(BookkeepingRecord record)
Parameters
record
BookkeepingRecord
Remove(T)
public virtual BookkeperRemovalInfo Remove(T entry)
Parameters
entry
T