![]() |
HAL
|
#include <gate_pin.h>
Public Member Functions | |
GatePin (const u32 id, const std::string &name, PinDirection direction, PinType type=PinType::none) | |
![]() | |
virtual | ~BasePin ()=default |
bool | operator== (const BasePin &other) const |
bool | operator!= (const BasePin &other) const |
ssize_t | get_hash () const |
u32 | get_id () const |
void | set_name (const std::string &name) |
const std::string & | get_name () const |
void | set_direction (PinDirection direction) |
PinDirection | get_direction () const |
void | set_type (PinType type) |
PinType | get_type () const |
const std::pair< PinGroup< GatePin > *, i32 > & | get_group () const |
Additional Inherited Members | |
![]() | |
BasePin (const u32 id, const std::string &name, PinDirection direction, PinType type=PinType::none) | |
![]() | |
u32 | m_id |
std::string | m_name |
PinDirection | m_direction |
PinType | m_type |
std::pair< PinGroup< GatePin > *, i32 > | m_group |
The pin of a gate type. Each pin has a name, a direction, and a type.
Definition at line 44 of file gate_pin.h.
hal::GatePin::GatePin | ( | const u32 | id, |
const std::string & | name, | ||
PinDirection | direction, | ||
PinType | type = PinType::none |
||
) |
Construct a new gate pin from its name, direction and type.
[in] | id | - The pin ID. |
[in] | name | - The pin name. |
[in] | direction | - The direction of the pin. |
[in] | type | - The type of the pin. Defaults to PinType::none . |
Definition at line 5 of file gate_pin.cpp.