An unordered map indexed by Point, eg 3 floating point numbers Because floating point rounding errors can affect the hashing, eg the binning of values, we may need to look near a Point/key for where the initial value was stored. More...
#include <PointIndexedMap.h>
Classes | |
struct | hash_point |
Public Member Functions | |
PointIndexedMap (const Point &mesh_max_coords) | |
Point | getRoundedPoint (const Point &p) const |
Normalize, expand then round a point to create local bins. More... | |
Number & | operator[] (Point p) |
unsigned int | hasKey (Point p) |
std::unordered_map< Point, Number, hash_point >::const_iterator | find (const Point &pt) const |
bool | attempt_find (const Point &p, Real dx, Real dy, Real dz, std::unordered_map< Point, Number, hash_point >::const_iterator &out) const |
std::unordered_map< Point, Number, hash_point >::const_iterator | end () const |
Public Attributes | |
std::unordered_map< Point, Number, hash_point > | base_map |
The container indexed by points. More... | |
Point | normalization |
Normalization factors used to scale points before insertions/comparisons. More... | |
An unordered map indexed by Point, eg 3 floating point numbers Because floating point rounding errors can affect the hashing, eg the binning of values, we may need to look near a Point/key for where the initial value was stored.
Definition at line 19 of file PointIndexedMap.h.
|
inline |
Definition at line 21 of file PointIndexedMap.h.
|
inline |
Definition at line 117 of file PointIndexedMap.h.
Referenced by find().
|
inline |
Definition at line 135 of file PointIndexedMap.h.
Referenced by GeneralFieldTransfer::CachedData< Output >::eval_at_node(), GeneralFieldTransfer::CachedData< Output >::eval_at_point(), hasKey(), and operator[]().
|
inline |
Definition at line 89 of file PointIndexedMap.h.
Referenced by GeneralFieldTransfer::CachedData< Output >::eval_at_node(), GeneralFieldTransfer::CachedData< Output >::eval_at_point(), hasKey(), and operator[]().
|
inline |
Normalize, expand then round a point to create local bins.
Definition at line 33 of file PointIndexedMap.h.
Referenced by attempt_find(), find(), and operator[]().
|
inline |
Definition at line 80 of file PointIndexedMap.h.
Referenced by MultiAppGeneralFieldTransfer::cacheIncomingInterpVals().
|
inline |
Definition at line 68 of file PointIndexedMap.h.
std::unordered_map<Point, Number, hash_point> PointIndexedMap::base_map |
The container indexed by points.
Definition at line 63 of file PointIndexedMap.h.
Referenced by attempt_find(), end(), find(), and operator[]().
Point PointIndexedMap::normalization |
Normalization factors used to scale points before insertions/comparisons.
Definition at line 66 of file PointIndexedMap.h.
Referenced by attempt_find(), getRoundedPoint(), and PointIndexedMap().