Kea  2.1.7-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 408 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 416 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: