Exemple #1
0
        public node(string name = null, List <long> friends = null)
        {
            this.name    = name;
            this.friends = friends;

            CellID = CellIDFactory.NewCellID();
        }
Exemple #2
0
        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();
        }
Exemple #3
0
 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();
     }
 }
Exemple #4
0
 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();
     }
 }