cheshirekow
v0.1.0
|
Enumerations | |
enum | BinaryKey { MIN = 0, MAX = 1 } |
Functions | |
template<class Point , class SearchQueue , class ResultSet , class QueueMinKeyFn , class QueuePopMinFn , class QueueInsertFn , class QueueSizeFn , class SetMaxKeyFn , class SetPopMaxFn , class SetInsertFn , class SetSizeFn , class PointDistanceFn , class CellDistanceFn , class IsLeafFn , class ChildrenFn , class SitesFn , class CellFn , class NodeFn > | |
void | findNearest (const Point &query, int k, SearchQueue &q, ResultSet &r, const QueueMinKeyFn &minKey, const QueuePopMinFn &popMin, const QueueInsertFn &enqueue, const QueueSizeFn &queueSize, const SetMaxKeyFn &maxKey, const SetPopMaxFn &popMax, const SetInsertFn &insert, const SetSizeFn &size, const PointDistanceFn &pointDist, const CellDistanceFn &cellDist, const IsLeafFn &isLeaf, const ChildrenFn &children, const SitesFn &sites, const CellFn &getCell, const NodeFn &getNode) |
template<class NodeRef , class PointRef , class IsLeafFn , class LeafInsertFn , class IdxFn , class ValueFn , class ChildFn , class PointGetFn > | |
void | insert (NodeRef node, PointRef point, const IsLeafFn &isLeaf, const LeafInsertFn &leafInsert, const IdxFn &idx, const ValueFn &value, const ChildFn &child, const PointGetFn &pointGet) |
template<class HyperRect , class NodeRef , class PointRef , class IsLeafFn , class LeafInsertFn , class IdxFn , class ValueFn , class ChildFn , class PointGetFn , class HyperSetFn > | |
void | insert (HyperRect &cell, NodeRef node, PointRef point, const IsLeafFn &isLeaf, const LeafInsertFn &leafInsert, const IdxFn &idx, const ValueFn &value, const ChildFn &child, const PointGetFn &pointGet, const HyperSetFn &hyperSet) |
BinaryKey | other (const BinaryKey &key) |
Enumerator | |
---|---|
MIN | |
MAX |
Definition at line 38 of file BinaryKey.h.
void mpblocks::kd2::findNearest | ( | const Point & | query, |
int | k, | ||
SearchQueue & | q, | ||
ResultSet & | r, | ||
const QueueMinKeyFn & | minKey, | ||
const QueuePopMinFn & | popMin, | ||
const QueueInsertFn & | enqueue, | ||
const QueueSizeFn & | queueSize, | ||
const SetMaxKeyFn & | maxKey, | ||
const SetPopMaxFn & | popMax, | ||
const SetInsertFn & | insert, | ||
const SetSizeFn & | size, | ||
const PointDistanceFn & | pointDist, | ||
const CellDistanceFn & | cellDist, | ||
const IsLeafFn & | isLeaf, | ||
const ChildrenFn & | children, | ||
const SitesFn & | sites, | ||
const CellFn & | getCell, | ||
const NodeFn & | getNode | ||
) |
Definition at line 62 of file findNearest.h.
void mpblocks::kd2::insert | ( | NodeRef | node, |
PointRef | point, | ||
const IsLeafFn & | isLeaf, | ||
const LeafInsertFn & | leafInsert, | ||
const IdxFn & | idx, | ||
const ValueFn & | value, | ||
const ChildFn & | child, | ||
const PointGetFn & | pointGet | ||
) |
node | the current node |
point | the point to be inserted |
isLeaf | returns true if node is a leaf |
leafInsert | inserts point into a leaf node's store |
idx | returns the split index of a node |
value | returns the split value of a node |
child | returns the children of a node |
pointGet | returns the i'th value of a point |
void mpblocks::kd2::insert | ( | HyperRect & | cell, |
NodeRef | node, | ||
PointRef | point, | ||
const IsLeafFn & | isLeaf, | ||
const LeafInsertFn & | leafInsert, | ||
const IdxFn & | idx, | ||
const ValueFn & | value, | ||
const ChildFn & | child, | ||
const PointGetFn & | pointGet, | ||
const HyperSetFn & | hyperSet | ||
) |
cell | hyper rectangle of node |
node | the current node |
point | the point to be inserted |
isLeaf | returns true if node is a leaf |
leafInsert | inserts point into a leaf node's store |
idx | returns the split index of a node |
value | returns the split value of a node |
child | returns the children of a node |
pointGet | returns the i'th value of a point |
|
inline |
Definition at line 44 of file BinaryKey.h.