Jpp  19.1.0-rc.1
the software that should make you happy
Public Member Functions | List of all members
KM3NETDAQ::JClientList::JComparator Class Reference

Auxiliary class for comparing clients. More...

#include <JClientList.hh>

Public Member Functions

bool operator() (const JClient &first, const JClient &second) const
 Less than operator. More...
 
bool operator() (const JClient &client, const std::string &full_name) const
 Less than operator. More...
 

Detailed Description

Auxiliary class for comparing clients.

Definition at line 29 of file JClientList.hh.

Member Function Documentation

◆ operator()() [1/2]

bool KM3NETDAQ::JClientList::JComparator::operator() ( const JClient first,
const JClient second 
) const
inline

Less than operator.

The full names of the clients are used for the comparison.

Parameters
firstfirst client
secondsecond client
Returns
true is first less than second; else false

Definition at line 39 of file JClientList.hh.

40  {
41  return first.getFullName() < second.getFullName();
42  }

◆ operator()() [2/2]

bool KM3NETDAQ::JClientList::JComparator::operator() ( const JClient client,
const std::string &  full_name 
) const
inline

Less than operator.

The full names of the client is used for the comparison.

Parameters
clientclient
full_namefull name
Returns
true is client's full name less than full name; else false

Definition at line 53 of file JClientList.hh.

54  {
55  return client.getFullName() < full_name;
56  }

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