yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SubCircuit::Graph::BitRef Struct Reference

#include <subcircuit.h>

Public Member Functions

 BitRef (int nodeIdx=-1, int portIdx=-1, int bitIdx=-1)
 
bool operator< (const BitRef &other) const
 

Data Fields

int nodeIdx
 
int portIdx
 
int bitIdx
 

Detailed Description

Definition at line 36 of file subcircuit.h.

Constructor & Destructor Documentation

SubCircuit::Graph::BitRef::BitRef ( int  nodeIdx = -1,
int  portIdx = -1,
int  bitIdx = -1 
)
inline

Member Function Documentation

bool SubCircuit::Graph::BitRef::operator< ( const BitRef other) const

Definition at line 98 of file subcircuit.cc.

99 {
100  if (nodeIdx != other.nodeIdx)
101  return nodeIdx < other.nodeIdx;
102  if (portIdx != other.portIdx)
103  return portIdx < other.portIdx;
104  return bitIdx < other.bitIdx;
105 }

Field Documentation

int SubCircuit::Graph::BitRef::bitIdx

Definition at line 37 of file subcircuit.h.

int SubCircuit::Graph::BitRef::nodeIdx

Definition at line 37 of file subcircuit.h.

int SubCircuit::Graph::BitRef::portIdx

Definition at line 37 of file subcircuit.h.


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