Kea 2.7.6
isc::dhcp::AllocEngine::ResourceCompare Struct Reference

Resource compare class. More...

#include <alloc_engine.h>

Public Member Functions

bool operator() (const Resource &lhr, const Resource &rhr) const
 Compare operator.
 

Detailed Description

Resource compare class.

Needed for using sets of Resource objects.

Definition at line 167 of file alloc_engine.h.

Member Function Documentation

◆ operator()()

bool isc::dhcp::AllocEngine::ResourceCompare::operator() ( const Resource & lhr,
const Resource & rhr ) const
inline

Compare operator.

Note
Only the address/prefix part of resources is used.
Parameters
lhrLeft hand resource object
rhrRight hand resource object
Returns
true if lhr is less than rhr, false otherwise

Definition at line 175 of file alloc_engine.h.

References isc::dhcp::AllocEngine::Resource::getAddress(), and isc::dhcp::AllocEngine::Resource::getPrefixLength().

+ Here is the call graph for this function:

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