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

#include "RStarBoundingBox.h"

Inheritance diagram for SortBoundedItemsBySecondEdge< BoundedItem >:

Public Member Functions

 SortBoundedItemsBySecondEdge (const std::size_t axis)
 
bool operator() (const BoundedItem *const bi1, const BoundedItem *const bi2) const
 

Public Attributes

const std::size_t m_axis
 

Detailed Description

template<typename BoundedItem>
struct SortBoundedItemsBySecondEdge< BoundedItem >

Definition at line 262 of file RStarBoundingBox.h.

Constructor & Destructor Documentation

template<typename BoundedItem >
SortBoundedItemsBySecondEdge< BoundedItem >::SortBoundedItemsBySecondEdge ( const std::size_t  axis)
inlineexplicit

Definition at line 266 of file RStarBoundingBox.h.

266 : m_axis(axis) {}

Member Function Documentation

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

Definition at line 268 of file RStarBoundingBox.h.

269  {
270  return bi1->bound.edges[m_axis].second < bi2->bound.edges[m_axis].second;
271  }

Member Data Documentation

template<typename BoundedItem >
const std::size_t SortBoundedItemsBySecondEdge< BoundedItem >::m_axis

Definition at line 265 of file RStarBoundingBox.h.


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