예제 #1
0
 public void Delete(long value1, long value2, long value3)
 {
     if (table.Contains((uint)value1, (uint)value2, (uint)value3))
     {
         deleteList.Add(new TernaryTable.Tuple((uint)value1, (uint)value2, (uint)value3));
     }
 }
예제 #2
0
        public static bool TableContains(TernaryTable table, Obj field1, Obj field2, Obj field3)
        {
            int surr1 = table.store1.LookupValue(field1);

            if (surr1 == -1)
            {
                return(false);
            }
            int surr2 = table.store2.LookupValue(field2);

            if (surr2 == -1)
            {
                return(false);
            }
            int surr3 = table.store3.LookupValue(field3);

            if (surr3 == -1)
            {
                return(false);
            }
            return(table.Contains((uint)surr1, (uint)surr2, (uint)surr3));
        }