Definition at line 134 of file NAG.hpp.
135 {
138 if (
p != -1)
return p;
139 if (
mMap.find(w) !=
mMap.end())
return -1;
140 int ret =
static_cast<int>(
mPoints.size());
142 mMap.insert(std::pair<Weight, int>(w, ret));
143 return ret;
144 }
std::vector< RealVector > mPoints
int lookup(const RealVector &a) const
Weight weight(const RealVector &a) const
std::map< Weight, int > mMap
References lookup(), mMap, mPoints, p, and weight().
Referenced by rawPointArrayLookupOrAppend(), and TEST().