DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq::oks::OksObjectSortBy Class Reference

#include <index.hpp>

Public Member Functions

 OksObjectSortBy (size_t i=0)
 
bool operator() (const OksObject *o1, const OksObject *o2) const
 

Private Attributes

size_t offset
 

Detailed Description

Definition at line 12 of file index.hpp.

Constructor & Destructor Documentation

◆ OksObjectSortBy()

dunedaq::oks::OksObjectSortBy::OksObjectSortBy ( size_t i = 0)
inline

Definition at line 16 of file index.hpp.

16: offset(i) {;}

Member Function Documentation

◆ operator()()

bool dunedaq::oks::OksObjectSortBy::operator() ( const OksObject * o1,
const OksObject * o2 ) const
inline

Definition at line 18 of file index.hpp.

18 {
19 return o1->data[offset] < o2->data[offset];
20 }

Member Data Documentation

◆ offset

size_t dunedaq::oks::OksObjectSortBy::offset
private

Definition at line 25 of file index.hpp.


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