|
slang-netlist
0.9.0
|
A range over which a symbol is driven. More...
#include <DriverBitRange.hpp>
Public Member Functions | |
| auto | toPair () const -> std::pair< int32_t, int32_t > |
| auto | isContiguousWith (DriverBitRange other) const -> bool |
| auto | unionWith (DriverBitRange other) const -> DriverBitRange |
| auto | intersection (DriverBitRange other) const -> std::optional< DriverBitRange > |
A range over which a symbol is driven.
|
inlinenodiscard |
Return the intersection of this range with other, or nullopt if the ranges do not overlap.
|
inlinenodiscard |
Return true if this range abuts or overlaps other: ie. the two ranges can be combined into a single contiguous range with no gap.
|
inline |
|
inlinenodiscard |
Return the union of this range with other. Requires the two ranges to be contiguous (abutting or overlapping).