Template Class Gridder

Nested Relationships

Nested Types

Class Documentation

template<class T>
class Gridder

A lookup table in 2D for implementing nearest neighbor.

Public Types

typedef Iterator iterator

Public Functions

inline Gridder(float pixel_width, float pixel_height, float pixels_per_cell)
inline ~Gridder()
inline void Add(float x, float y, T *object)
inline iterator find(float x, float y, float range)
class Iterator

Iterator for Segment class.

Public Functions

inline Iterator(Gridder *grid, float x, float y, float range)
inline void Init(float x, float y, float range)

Initializes Iterator constructor.

inline Iterator(const Iterator &it)
inline Iterator &operator=(const Iterator &it)
inline bool hasNext()
inline T &next()