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 15 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 22 of file Sorting.hpp.

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

◆ operator()() [2/3]

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

Definition at line 20 of file Sorting.hpp.

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

◆ operator()() [3/3]

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

Definition at line 18 of file Sorting.hpp.

18{ return L.compare(R) < 0; }

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