Example #1
0
 private bool next_get_value(int n, out T val)
 {
     if (WhichWay.COLUMN == _ww)
     {
         return(_next.get_value(n, -1, out val));
     }
     else
     {
         return(_next.get_value(-1, n, out val));
     }
 }
Example #2
0
 public bool get_value(int col, int row, out T val)
 {
     if (!_got)
     {
         _got = _next.get_value(-1, -1, out _val);
     }
     val = _val;
     return(_got);
 }
Example #3
0
 public bool get_value(int col, int row, out T val)
 {
     if (_cache.find(col, row, out val))
     {
         return(true);
     }
     else
     {
         if (_cd.get_value(col, row, out val))
         {
             _cache.add(col, row, val);
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }