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

#include "RStarBoundingBox.h"

Inheritance diagram for SortBoundedItemsByAreaEnlargement< BoundedItem >:

Public Member Functions

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

Public Attributes

const double area
 

Detailed Description

template<typename BoundedItem>
struct SortBoundedItemsByAreaEnlargement< BoundedItem >

Definition at line 289 of file RStarBoundingBox.h.

Constructor & Destructor Documentation

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

Definition at line 293 of file RStarBoundingBox.h.

293 : area(center->area()) {}

Member Function Documentation

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

Definition at line 295 of file RStarBoundingBox.h.

296  {
297  return area - bi1->bound.area() < area - bi2->bound.area();
298  }

Member Data Documentation

template<typename BoundedItem >
const double SortBoundedItemsByAreaEnlargement< BoundedItem >::area

Definition at line 292 of file RStarBoundingBox.h.


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