26    uint32_t other_val = other.
getValue();
 
   28    if (value_ < other_val) {
 
   30    } 
else if (other_val < value_) {
 
 
   38    return (
operator==(other) || 
operator<(other));
 
 
   43    return (!
operator==(other) && !
operator<(other));
 
 
   48    return (!
operator<(other));
 
 
   53    uint64_t new_val = 
static_cast<uint64_t
>(value_) +
 
   54                       static_cast<uint64_t
>(other_val);
 
 
   60    return (
operator+(other.
getValue()));
 
 
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.
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.
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.