示例#1
0
 void Init(IndexingMethod im, int inp, int dinp)
 {
     if (inp <= 0 || dinp <= 0 || inp < dinp || inp > 31 || dinp > 31)
     {
         throw new Exception(string.Format("Wrong parameters: inp={0} dinp={1}", inp, dinp));
     }
     this.im   = im;
     this.inp  = inp;
     this.dinp = dinp;
 }
示例#2
0
 // Constructor
 public Indexer(IndexingMethod method)
 {
     // Indexing method: BSBI or SPIMI
     this.method = method;
 }
示例#3
0
 public Indexer(IndexingMethod im, int inp, int dinp)
 {
     Init(im, inp, dinp);
 }
示例#4
0
 // Constructor
 public Indexer(IndexingMethod method)
 {
     // Indexing method: BSBI or SPIMI
     this.method = method;
 }