Game.Common.GroupBuilder`1
Assembly: Game
Namespace: Game.Common
Type: struct sealed public
Base: System.ValueType
Code
public sealed struct GroupBuilder<T>
{
private Unity.Collections.NativeList<System.Int32> m_Groups;
private Unity.Collections.NativeParallelHashMap<T, System.Int32> m_GroupIndex;
private Unity.Collections.NativeList<Game.Common.GroupBuilder<T>> m_Results;
public GroupBuilder`1(Unity.Collections.Allocator allocator);
public System.Void AddPair(T item1, T item2);
public System.Void AddSingle(T item);
private System.Void AddToGroup(T item, System.Int32 index);
private System.Int32 CreateGroup();
public System.Void Dispose();
private System.Int32 MergeGroups(System.Int32 index1, System.Int32 index2);
public System.Boolean TryGetFirstGroup(NativeArray`1& group, Iterator& iterator);
public System.Boolean TryGetNextGroup(NativeArray`1& group, Iterator& iterator);
}
Fields
private Unity.Collections.NativeList<System.Int32> m_Groups
private Unity.Collections.NativeList<System.Int32> m_Groups;
private Unity.Collections.NativeParallelHashMap<T, System.Int32> m_GroupIndex
private Unity.Collections.NativeParallelHashMap<T, System.Int32> m_GroupIndex;
private Unity.Collections.NativeList<Game.Common.GroupBuilder<T>> m_Results
private Unity.Collections.NativeList<Game.Common.GroupBuilder<T>> m_Results;
Constructors
public GroupBuilder
1(Unity.Collections.Allocator allocator)`
public GroupBuilder`1(Unity.Collections.Allocator allocator);
Methods
public AddPair(T item1, T item2) : System.Void
public System.Void AddPair(T item1, T item2);
public AddSingle(T item) : System.Void
public System.Void AddSingle(T item);
private AddToGroup(T item, System.Int32 index) : System.Void
private System.Void AddToGroup(T item, System.Int32 index);
private CreateGroup() : System.Int32
private System.Int32 CreateGroup();
public Dispose() : System.Void
public System.Void Dispose();
private MergeGroups(System.Int32 index1, System.Int32 index2) : System.Int32
private System.Int32 MergeGroups(System.Int32 index1, System.Int32 index2);
public TryGetFirstGroup(NativeArray
1& group, Iterator& iterator) : System.Boolean`
public System.Boolean TryGetFirstGroup(NativeArray`1& group, Iterator& iterator);
public TryGetNextGroup(NativeArray
1& group, Iterator& iterator) : System.Boolean`
public System.Boolean TryGetNextGroup(NativeArray`1& group, Iterator& iterator);
Nested types
Game.Common.GroupBuilder<T>
Game.Common.GroupBuilder<T>