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

#include "RStarBoundingBox.h"

Inheritance diagram for SortBoundedItemsByFirstEdge< BoundedItem >:

Public Member Functions

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

Definition at line 249 of file RStarBoundingBox.h.

Constructor & Destructor Documentation

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

Definition at line 253 of file RStarBoundingBox.h.

253 : m_axis(axis) {}

Member Function Documentation

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

Definition at line 255 of file RStarBoundingBox.h.

256  {
257  return bi1->bound.edges[m_axis].first < bi2->bound.edges[m_axis].first;
258  }

Member Data Documentation

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

Definition at line 252 of file RStarBoundingBox.h.


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