66 : min_(0), default_(0), max_(0),
77 : min_(value), default_(value), max_(value),
85 : min_(min), default_(def), max_(max),
87 if ( (min_ > def) || (def > max_) ) {
96 T
get()
const {
return (default_); }
129 return (unspecified_);
Triplet(T min, T def, T max)
Sets the default value and thresholds.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
A generic exception that is thrown if a parameter given to a method is considered invalid in that con...
T get() const
Returns the default value.
bool unspecified() const
Check if the value has been specified.
T getMax() const
Returns a maximum allowed value.
Triplet()
Constructor without parameters.
T get(T hint) const
Returns value with a hint.
This template specifies a parameter value.
Defines the logger used by the top-level component of kea-dhcp-ddns.
Triplet< T > & operator=(T other)
Base type to Triplet conversion.
T getMin() const
Returns a minimum allowed value.
Triplet(T value)
Sets a fixed value.