LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
SortBoundedItemsByOverlapEnlargement< BoundedItem > Struct Template Reference

#include "RStarBoundingBox.h"

Inheritance diagram for SortBoundedItemsByOverlapEnlargement< BoundedItem >:

Public Member Functions

 SortBoundedItemsByOverlapEnlargement (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 SortBoundedItemsByOverlapEnlargement< BoundedItem >

Definition at line 302 of file RStarBoundingBox.h.

Constructor & Destructor Documentation

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

Definition at line 306 of file RStarBoundingBox.h.

306 : m_center(center) {}
const BoundedItem::BoundingBox *const m_center

Member Function Documentation

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

Definition at line 308 of file RStarBoundingBox.h.

309  {
310  return bi1->bound.overlap(*m_center) < bi2->bound.overlap(*m_center);
311  }
const BoundedItem::BoundingBox *const m_center

Member Data Documentation

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

Definition at line 305 of file RStarBoundingBox.h.


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