public node(string name = null, List <long> friends = null) { this.name = name; this.friends = friends; CellID = CellIDFactory.NewCellID(); }
public SSSPCell(int distance = default(int), long parent = default(long), List <long> neighbors = null) { this.distance = distance; this.parent = parent; this.neighbors = neighbors; CellID = CellIDFactory.NewCellID(); }
public unsafe SSSPCell(AccessorBuffer buffer) { byte[] cellContent = buffer.Buffer; fixed(byte *ptr = cellContent) { using (var accessor = new SSSPCell_Accessor(ptr)) { this.distance = accessor.distance; this.parent = accessor.parent; this.neighbors = accessor.neighbors; } CellID = CellIDFactory.NewCellID(); } }
public unsafe node(AccessorBuffer buffer) { byte[] cellContent = buffer.Buffer; fixed(byte *ptr = cellContent) { using (var accessor = new node_Accessor(ptr)) { this.name = accessor.name; this.friends = accessor.friends; } CellID = CellIDFactory.NewCellID(); } }