LimitedInt7
-
class LimitedInt7 : public LimitedInteger<int8_t>
signed integer of 7 bits size (-64 - 63)
Public Functions
-
inline explicit LimitedInt7(int v)
Constructs a LimitedInt7 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.
-
inline explicit LimitedInt7(int v)