slang-netlist  0.9.0
Loading...
Searching...
No Matches
slang::netlist::DriverBitRange Struct Reference

A range over which a symbol is driven. More...

#include <DriverBitRange.hpp>

Inheritance diagram for slang::netlist::DriverBitRange:

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 >

Detailed Description

A range over which a symbol is driven.

Member Function Documentation

◆ intersection()

auto slang::netlist::DriverBitRange::intersection ( DriverBitRange other) const -> std::optional< DriverBitRange >
inlinenodiscard

Return the intersection of this range with other, or nullopt if the ranges do not overlap.

◆ isContiguousWith()

auto slang::netlist::DriverBitRange::isContiguousWith ( DriverBitRange other) const -> bool
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.

◆ toPair()

auto slang::netlist::DriverBitRange::toPair ( ) const -> std::pair< int32_t, int32_t >
inline

◆ unionWith()

auto slang::netlist::DriverBitRange::unionWith ( DriverBitRange other) const -> DriverBitRange
inlinenodiscard

Return the union of this range with other. Requires the two ranges to be contiguous (abutting or overlapping).


The documentation for this struct was generated from the following file: