KiCad PCB EDA Suite
Loading...
Searching...
No Matches
BUS_RANGE Struct Reference

A vector bus name "PREFIX[first..last]" (or ':' as separator); last may be below first. More...

Public Member Functions

int64_t Count () const
 
int Step () const
 
std::optional< int64_t > Ordinal (int64_t aIndex) const
 Position of aIndex within the range, or nullopt outside it.
 
int64_t At (int64_t aOrdinal) const
 

Static Public Member Functions

static std::optional< BUS_RANGE > Parse (const std::string &aName)
 

Public Attributes

std::string prefix
 
int first = 0
 
int last = 0
 

Detailed Description

A vector bus name "PREFIX[first..last]" (or ':' as separator); last may be below first.

Definition at line 785 of file orcad_converter_sheet.cpp.

Member Function Documentation

◆ At()

int64_t BUS_RANGE::At ( int64_t aOrdinal) const
inline

Definition at line 803 of file orcad_converter_sheet.cpp.

References first, and Step().

◆ Count()

int64_t BUS_RANGE::Count ( ) const
inline

Definition at line 793 of file orcad_converter_sheet.cpp.

References std::abs(), first, and last.

◆ Ordinal()

std::optional< int64_t > BUS_RANGE::Ordinal ( int64_t aIndex) const
inline

Position of aIndex within the range, or nullopt outside it.

Definition at line 797 of file orcad_converter_sheet.cpp.

References first, and Step().

◆ Parse()

std::optional< BUS_RANGE > BUS_RANGE::Parse ( const std::string & aName)
static

Definition at line 807 of file orcad_converter_sheet.cpp.

References end, next(), and prefix.

Referenced by connectedBusName(), scopedBusRanges(), and scopedHierBusRange().

◆ Step()

int BUS_RANGE::Step ( ) const
inline

Definition at line 794 of file orcad_converter_sheet.cpp.

References first, and last.

Referenced by At(), and Ordinal().

Member Data Documentation

◆ first

int BUS_RANGE::first = 0

Definition at line 788 of file orcad_converter_sheet.cpp.

Referenced by At(), Count(), Ordinal(), and Step().

◆ last

int BUS_RANGE::last = 0

Definition at line 789 of file orcad_converter_sheet.cpp.

Referenced by Count(), and Step().

◆ prefix

std::string BUS_RANGE::prefix

Definition at line 787 of file orcad_converter_sheet.cpp.

Referenced by Parse().


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