DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dbe::SortObjects Class Reference

#include <Sorting.hpp>

Public Member Functions

bool operator() (std::string const &L, std::string const &R)
 
bool operator() (dbe::tref const &L, dbe::tref const &R)
 
bool operator() (const dunedaq::conffwk::attribute_t &L, const dunedaq::conffwk::attribute_t &R)
 

Detailed Description

Definition at line 11 of file Sorting.hpp.

Member Function Documentation

◆ operator()() [1/3]

bool dbe::SortObjects::operator() ( const dunedaq::conffwk::attribute_t & L,
const dunedaq::conffwk::attribute_t & R )
inline

Definition at line 24 of file Sorting.hpp.

25 {
26 int LString = L.p_type;
27 int RString = R.p_type;
28
29 return LString > RString;
30 }

◆ operator()() [2/3]

bool dbe::SortObjects::operator() ( dbe::tref const & L,
dbe::tref const & R )
inline

Definition at line 19 of file Sorting.hpp.

20 {
21 return ( L.UID() ).compare ( ( R.UID() ) ) < 0;
22 }

◆ operator()() [3/3]

bool dbe::SortObjects::operator() ( std::string const & L,
std::string const & R )
inline

Definition at line 14 of file Sorting.hpp.

15 {
16 return L.compare ( R ) < 0;
17 }

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