Pin of a connector. More...
#include <robj2d.h>
Collaboration diagram for RObj2DPin:
Public Member Functions | |
RObj2DPin (RObj2DConnector *con, size_t id, const RString &name) | |
int | Compare (const RObj2DPin &pin) const |
int | Compare (const size_t pin) const |
RObj2DConnector * | GetConnector (void) const |
size_t | GetId (void) |
RString | GetName (void) const |
Private Attributes | |
RObj2DConnector * | Connector |
size_t | Id |
RString | Name |
Detailed Description
Pin of a connector.
The RObj2DPin represents a pin for a particular connector.
Constructor & Destructor Documentation
RObj2DPin | ( | RObj2DConnector * | con, |
size_t | id, | ||
const RString & | name | ||
) |
Constructor of a pin.
- Parameters
-
con Corresponding connector. id Identifier of the pin. name Name of the pin.
Member Function Documentation
int Compare | ( | const RObj2DPin & | pin | ) | const |
int Compare | ( | const size_t | pin | ) | const |
Compare a pin with an identifier.
- Parameters
-
pin Identifier of the pin.
- Returns
- a value used by RContainer.
RObj2DConnector* GetConnector | ( | void | ) | const |
- Returns
- the connector.
size_t GetId | ( | void | ) |
- Returns
- the identifier of the pin.
RString GetName | ( | void | ) | const |
- Returns
- the name of the pin.
Member Data Documentation
|
private |
Connector of the pin.
|
private |
Identifier of the pin.
|
private |
Name of the pin.