Bitstream Interpretation Library (BIL)  0.1
Public Member Functions | Friends
bil::PinWire Class Reference

Attaches a tile wire to a pin of a primitive site. More...

#include <xdlrc/model/PinWire.hpp>

List of all members.

Public Member Functions

 PinWire ()
 Constructs a new PinWire instance.
void wireIndex (unsigned short index)
 Sets index of wire to connect to.
unsigned short wireIndex () const
 Gets index of wire to connect to.
void pinIndex (unsigned short index)
 Sets index of pin to connect to.
unsigned short pinIndex () const
 Gets index of pin to connect to.
void clear ()
 Resets all properties to default values.

Friends

bool operator== (const PinWire &pw1, const PinWire &pw2)
 Tests two PinWire instances for memberwise equality.
void writeBinary (const PinWire &data, std::ostream &outputStream)
 Writes data from a PinWire into a binary stream.
void readBinary (PinWire &data, std::istream &inputStream)
 Reads data into a PinWire from a binary stream.

Detailed Description

Attaches a tile wire to a pin of a primitive site.

All pins of a primitive site are connected to the wires of containing tile with the help of this class.

Definition at line 22 of file PinWire.hpp.


Constructor & Destructor Documentation

PinWire::PinWire ( )

Constructs a new PinWire instance.

Definition at line 11 of file PinWire.cpp.


Member Function Documentation

void PinWire::wireIndex ( unsigned short  index)

Sets index of wire to connect to.

Parameters:
indexIndex of wire in superordinated TileType.

Definition at line 19 of file PinWire.cpp.

unsigned short PinWire::wireIndex ( ) const

Gets index of wire to connect to.

Returns:
Index of wire in superordinated TileType.

Definition at line 25 of file PinWire.cpp.

void PinWire::pinIndex ( unsigned short  index)

Sets index of pin to connect to.

Parameters:
indexIndex of pin in corresponding PrimitiveDefinition.

Definition at line 31 of file PinWire.cpp.

unsigned short PinWire::pinIndex ( ) const

Gets index of pin to connect to.

Returns:
Index of pin in corresponding PrimitiveDefinition.

Definition at line 37 of file PinWire.cpp.

void PinWire::clear ( )

Resets all properties to default values.

Definition at line 43 of file PinWire.cpp.


Friends And Related Function Documentation

bool operator== ( const PinWire pw1,
const PinWire pw2 
)
friend

Tests two PinWire instances for memberwise equality.

Definition at line 92 of file PinWire.hpp.

void writeBinary ( const PinWire data,
std::ostream &  outputStream 
)
friend

Writes data from a PinWire into a binary stream.

Parameters:
dataThe PinWire to write.
outputStreamThe stream to write into.
Exceptions:
.
void readBinary ( PinWire data,
std::istream &  inputStream 
)
friend

Reads data into a PinWire from a binary stream.

Parameters:
dataThe PinWire to read into.
inputStreamThe stream to read from.
Exceptions:
.

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