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

| Kea 2.2.0

Public Member Functions | List of all members
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

  lhr | Left hand resource object
  rhr | Right 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:

- alloc_engine.h