46 explicit Serial(uint32_t value) : value_(value) {}
145std::ostream&
operator<<(std::ostream& os,
const Serial& serial);
This class defines DNS serial numbers and serial arithmetic.
bool operator>=(const Serial &other) const
Returns true if the serial value of this serial is equal to or greater than the other,...
bool operator>(const Serial &other) const
Returns true if the serial value of this serial is greater than the other, according to serial arithm...
uint32_t getValue() const
Returns the uint32_t representation of this serial value.
bool operator==(const Serial &other) const
Returns true if the serial values are equal.
Serial(uint32_t value)
Constructor with value.
void operator=(uint32_t value)
Direct assignment from value.
bool operator!=(const Serial &other) const
Returns true if the serial values are not equal.
bool operator<(const Serial &other) const
Returns true if the serial value of this serial is smaller than the other, according to serial arithm...
bool operator<=(const Serial &other) const
Returns true if the serial value of this serial is equal to or smaller than the other,...
Serial operator+(const Serial &other) const
Adds the given value to the serial number.
Serial & operator=(const Serial &other)
Direct assignment from other Serial.
Serial(const Serial &other)
Copy constructor.
ostream & operator<<(std::ostream &os, const EDNS &edns)
Insert the EDNS as a string into stream.
const uint32_t MAX_SERIAL_INCREMENT
The maximum difference between two serial numbers.
const uint64_t MAX_SERIAL_VALUE
Maximum value a serial can have, used in + operator.
Defines the logger used by the top-level component of kea-lfc.