clone method

  1. @mustBeOverridden
  2. @override
FloatingPoint clone({
  1. String? name,
})
override

Creates a new LogicStructure with the same structure as this and cloned elements, optionally with the provided name.

It is expected that any implementation will override this in a way that returns the same type as itself.

Implementation

@mustBeOverridden
@override
FloatingPoint clone({String? name}) => FloatingPoint(
      exponentWidth: exponent.width,
      mantissaWidth: mantissa.width,
      explicitJBit: explicitJBit,
      subNormalAsZero: subNormalAsZero,
      name: name,
    );