Public Member Functions | List of all members
WireCell::IWireCompareIndex Struct Reference

#include <IWire.h>

Public Member Functions

bool operator() (const IWire::pointer &lhs, const IWire::pointer &rhs) const
 

Detailed Description

Definition at line 69 of file IWire.h.

Member Function Documentation

bool WireCell::IWireCompareIndex::operator() ( const IWire::pointer lhs,
const IWire::pointer rhs 
) const
inline

Definition at line 70 of file IWire.h.

70  {
71  // fixme: should probably do something smarter here if two are not in same plane.....
72  if (lhs->index() == rhs->index()) {
73  return lhs.get() < rhs.get(); // break tie with pointer
74  }
75  return lhs->index() < rhs->index();
76  }

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