Kea
2.7.7
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
d
e
f
h
i
k
m
n
o
p
r
s
t
u
w
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
Typedefs
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
v
w
y
Enumerations
a
c
d
e
f
h
i
l
m
n
o
p
q
r
s
t
u
w
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
y
Related Symbols
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
w
y
Functions
a
b
c
d
e
g
h
i
l
m
n
p
q
r
s
u
v
w
y
Variables
b
c
d
e
f
h
l
n
o
p
q
r
s
t
u
y
Typedefs
Enumerations
Enumerator
d
s
Macros
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
y
▼
Kea
►
Kea Developer's Guide
►
Kea Bootp Hooks Library
►
Kea Flexible Option Hooks Library
►
Kea PerfMon Hooks Library
►
libkea-d2srv - Kea D2 Server Library
►
libkea-kea_tcp - TCP Listener Library
Todo List
►
Topics
►
Namespaces
►
Classes
▼
Files
▼
File List
▼
src
►
bin
►
hooks
▼
lib
►
asiodns
►
asiolink
►
cc
►
config
►
config_backend
►
cryptolink
►
d2srv
►
database
►
dhcp
►
dhcp_ddns
►
dhcpsrv
►
dns
►
eval
►
exceptions
►
hooks
►
http
►
log
►
mysql
►
pgsql
►
process
►
stats
►
tcp
►
testutils
▼
util
►
encode
►
io
►
unittests
►
bigints.h
boost_time_utils.cc
►
boost_time_utils.h
►
buffer.h
►
chrono_time_utils.cc
►
chrono_time_utils.h
►
csv_file.cc
►
csv_file.h
►
dhcp_space.cc
►
dhcp_space.h
►
doubles.h
►
filesystem.cc
►
filesystem.h
►
hash.h
►
io.h
►
labeled_value.cc
►
labeled_value.h
►
memory_segment.h
memory_segment_local.cc
►
memory_segment_local.h
multi_threading_mgr.cc
►
multi_threading_mgr.h
►
optional.h
pid_file.cc
►
pid_file.h
►
pointer_util.h
►
range_utilities.h
►
readwrite_mutex.h
reconnect_ctl.cc
►
reconnect_ctl.h
►
staged_value.h
state_model.cc
►
state_model.h
stopwatch.cc
►
stopwatch.h
stopwatch_impl.cc
►
stopwatch_impl.h
►
str.cc
►
str.h
►
thread_pool.h
►
triplet.h
►
unlock_guard.h
versioned_csv_file.cc
►
versioned_csv_file.h
watch_socket.cc
►
watch_socket.h
watched_thread.cc
►
watched_thread.h
►
yang
►
File Members
doubles.h
Go to the documentation of this file.
1
// Copyright (C) 2019 Internet Systems Consortium, Inc. ("ISC")
2
//
3
// This Source Code Form is subject to the terms of the Mozilla Public
4
// License, v. 2.0. If a copy of the MPL was not distributed with this
5
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7
#ifndef DOUBLES_H
8
#define DOUBLES_H
9
10
#include <complex>
11
12
namespace
isc
{
13
namespace
util {
14
22
inline
bool
areDoublesEquivalent
(
double
a,
double
b,
double
tolerance=0.000001) {
23
return
(std::abs(a - b) < tolerance);
24
}
22
inline
bool
areDoublesEquivalent
(
double
a,
double
b,
double
tolerance=0.000001) {
…
}
25
26
}
// namespace util
27
}
// namespace isc
28
29
#endif
// DOUBLES_H
isc::util::areDoublesEquivalent
bool areDoublesEquivalent(double a, double b, double tolerance=0.000001)
Tests two doubles for equivalence within a given tolerance.
Definition
doubles.h:22
isc
Defines the logger used by the top-level component of kea-lfc.
Definition
agent_parser.cc:148
src
lib
util
doubles.h
Generated on Fri Mar 14 2025 19:04:56 for Kea by
1.12.0