LimitedInt16

class LimitedInt16 : public LimitedInteger<int16_t>

signed integer of 16 bits size (-32768 - 32767)

Public Functions

inline explicit LimitedInt16(int v)

Constructs a LimitedInt16 object and initializes its value.

Parameters:

v – The integer value to be set.

Throws:

std::out_of_range – If v is not compatible with the limitations of this integer class

inline virtual int getMin() const override

Retrieves the minimum value for the range of this integer.

Returns:

The minimum value allowed for this integer as an int.

inline virtual int getMax() const override

Retrieves the maximum value for the range of this integer.

Returns:

The maximum value allowed for this integer as an int.