SignMagnitudeValuePopulator<SmvType extends SignMagnitudeValue> class

A populator for SignMagnitudeValues, a utility that can populate various forms of SignMagnitudeValues.

Constructors

SignMagnitudeValuePopulator.new(SmvType _unpopulated)
Creates a SignMagnitudeValuePopulator for the given _unpopulated SignMagnitudeValue.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
The width of the magnitude field.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ofBigInt(BigInt intValue) → SmvType
Populates a SignMagnitudeValue from a big integer intValue.
ofInt(int intValue) → SmvType
Populates a SignMagnitudeValue from an integer intValue.
populate({required LogicValue sign, required LogicValue magnitude}) → SmvType
Populates the SignMagnitudeValue with the given sign and magnitude, then performs additional validation.
random(Random rv, {SignMagnitudeValue? gt, SignMagnitudeValue? gte, SignMagnitudeValue? lt, SignMagnitudeValue? lte}) → SmvType
Generate a random SignMagnitudeValue in a signed range.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited