Kea  2.3.5-git
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. More...

Detailed Description

Resource compare class.

Needed for using sets of Resource objets.

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

Compare operator.

Only the address/prefix part of resources is used.
lhrLeft hand resource object
rhrRight hand resource object
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: