Public Member Functions | Public Attributes | List of all members
SortBoundedItemsByDistanceFromCenter< BoundedItem > Struct Template Reference

#include <RStarBoundingBox.h>

Inheritance diagram for SortBoundedItemsByDistanceFromCenter< BoundedItem >:

Public Member Functions

 SortBoundedItemsByDistanceFromCenter (const typename BoundedItem::BoundingBox *const center)
 
bool operator() (const BoundedItem *const bi1, const BoundedItem *const bi2) const
 

Public Attributes

const BoundedItem::BoundingBox *const m_center
 

Detailed Description

template<typename BoundedItem>
struct SortBoundedItemsByDistanceFromCenter< BoundedItem >

Definition at line 276 of file RStarBoundingBox.h.

Constructor & Destructor Documentation

template<typename BoundedItem >
SortBoundedItemsByDistanceFromCenter< BoundedItem >::SortBoundedItemsByDistanceFromCenter ( const typename BoundedItem::BoundingBox *const  center)
inlineexplicit

Definition at line 280 of file RStarBoundingBox.h.

280 : m_center(center) {}
const BoundedItem::BoundingBox *const m_center
def center(depos, point)
Definition: depos.py:117

Member Function Documentation

template<typename BoundedItem >
bool SortBoundedItemsByDistanceFromCenter< BoundedItem >::operator() ( const BoundedItem *const  bi1,
const BoundedItem *const  bi2 
) const
inline

Definition at line 282 of file RStarBoundingBox.h.

283  {
284  return bi1->bound.distanceFromCenter(*m_center) < bi2->bound.distanceFromCenter(*m_center);
285  }
const BoundedItem::BoundingBox *const m_center

Member Data Documentation

template<typename BoundedItem >
const BoundedItem::BoundingBox* const SortBoundedItemsByDistanceFromCenter< BoundedItem >::m_center

Definition at line 279 of file RStarBoundingBox.h.


The documentation for this struct was generated from the following file: