HierarchyNodeMapUnmanaged<T>
Represents a collection of HierarchyNode and values of type T with O(1) access time.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Struct
- Namespace: Unity.Hierarchy
- Assembly: UnityEngine.HierarchyCoreModule
- Implements: IDisposable
public struct HierarchyNodeMapUnmanaged<T> : IDisposable where T : unmanaged
Constructors
Constructor | Description |
|---|---|
| HierarchyNodeMapUnmanaged`1(`0@,Unity.Collections.Allocator) | Constructs a new HierarchyNodeMapUnmanaged<T>. |
| HierarchyNodeMapUnmanaged`1(Unity.Collections.Allocator) | Constructs a new HierarchyNodeMapUnmanaged<T>. |
Properties
Property | Description |
|---|---|
| Capacity | The number of elements that can be contained in the HierarchyNodeMapUnmanaged<T> without resizing. |
| Count | The number of elements contained in the HierarchyNodeMapUnmanaged<T>. |
| IsCreated | Whether or not this object is valid and uses memory. |
| this[] | Gets or sets the value associated with the specified HierarchyNode. |
Methods
Method | Description |
|---|---|
| Add | Adds the specified HierarchyNode and value to the HierarchyNodeMapUnmanaged<T>. |
| AddNoResize | Adds the specified HierarchyNode and value to the HierarchyNodeMapUnmanaged<T> without increasing capacity. |
| Clear | Removes all HierarchyNode and values from the HierarchyNodeMapUnmanaged<T>. |
| ContainsKey | Determine whether or not the HierarchyNodeMapUnmanaged<T> contains the specified HierarchyNode. |
| Dispose | Dispose this object and release its memory. |
| Remove | Removes the value with the specified HierarchyNode from the HierarchyNodeMapUnmanaged<T>. |
| Reserve | Reserve enough memory to contain the specified number of elements. |
| TryAdd | Attempts to add the specified HierarchyNode and value to the HierarchyNodeMapUnmanaged<T>. |
| TryAddNoResize | Attempts to add the specified HierarchyNode and value to the HierarchyNodeMapUnmanaged<T> without increasing capacity. |
| TryGetValue | Gets the value associated with the specified HierarchyNode. |