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

Public Member Functions

 DiBit ()
 
 DiBit (std::string fromPort, int fromBit, std::string toPort, int toBit)
 
bool operator< (const DiBit &other) const
 
std::string toString () const
 

Data Fields

std::string fromPort
 
std::string toPort
 
int fromBit
 
int toBit
 

Detailed Description

Definition at line 394 of file subcircuit.cc.

Constructor & Destructor Documentation

SubCircuit::SolverWorker::DiBit::DiBit ( )
inline
SubCircuit::SolverWorker::DiBit::DiBit ( std::string  fromPort,
int  fromBit,
std::string  toPort,
int  toBit 
)
inline

Member Function Documentation

bool SubCircuit::SolverWorker::DiBit::operator< ( const DiBit other) const
inline

Definition at line 402 of file subcircuit.cc.

403  {
404  if (fromPort != other.fromPort)
405  return fromPort < other.fromPort;
406  if (toPort != other.toPort)
407  return toPort < other.toPort;
408  if (fromBit != other.fromBit)
409  return fromBit < other.fromBit;
410  return toBit < other.toBit;
411  }
std::string SubCircuit::SolverWorker::DiBit::toString ( ) const
inline

Definition at line 413 of file subcircuit.cc.

414  {
415  return my_stringf("%s[%d]:%s[%d]", fromPort.c_str(), fromBit, toPort.c_str(), toBit);
416  }
static std::string my_stringf(const char *fmt,...)
Definition: subcircuit.cc:38

+ Here is the call graph for this function:

Field Documentation

int SubCircuit::SolverWorker::DiBit::fromBit

Definition at line 397 of file subcircuit.cc.

std::string SubCircuit::SolverWorker::DiBit::fromPort

Definition at line 396 of file subcircuit.cc.

int SubCircuit::SolverWorker::DiBit::toBit

Definition at line 397 of file subcircuit.cc.

std::string SubCircuit::SolverWorker::DiBit::toPort

Definition at line 396 of file subcircuit.cc.


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