Esempio n. 1
0
  int Position (int bnr, const INDEX_2 & ind) const
  {
    for (int i = 1; i <= hash.EntrySize (bnr); i++)
      if (hash.Get(bnr, i) == ind)
	return i;
    return 0;
  }
Esempio n. 2
0
  int Position (int bnr, const INDEX_3 & ind) const
  {
    const INDEX_3 * pi = &hash.Get(bnr, 1);
    int n = hash.EntrySize(bnr);
    for (int i = 1; i <= n; ++i, ++pi)
      {
	if (*pi == ind)
	return i;
      }
    
    return 0;
  }
Esempio n. 3
0
 int GetOCPT(int tn, int vi) const {return outerchartspertrig.Get(tn,vi);};
Esempio n. 4
0
 int GetEdgePP(int pn, int vi)
 {
   if (edgesperpoint.Size() == 0) {BuildEdgesPerPoint();}
   return edgesperpoint.Get(pn,vi);
 };
Esempio n. 5
0
  void GetData (int bnr, int colnr, 
		INDEX_2 & ahash, T & acont) const
  {
    ahash = hash.Get(bnr, colnr);
    acont = cont.Get(bnr, colnr);
  }
Esempio n. 6
0
 const T & Get (const INDEX_2 & ahash) const
 {
   int bnr = HashValue (ahash);
   int pos = Position (bnr, ahash);
   return cont.Get (bnr, pos);
 }
Esempio n. 7
0
 int NeighbourTrig(int trig, int nr) const { return neighbourtrigs.Get(trig,nr); }
Esempio n. 8
0
 int TopEdgePerPoint (int pn, int ei) const { return topedgesperpoint.Get(pn, ei); }
Esempio n. 9
0
 int TrigPerPoint(int pn, int i) { return trigsperpoint.Get(pn, i); }