Pin of a connector. More...

#include <robj2d.h>

Collaboration diagram for RObj2DPin:
[legend]

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
 
RObj2DConnectorGetConnector (void) const
 
size_t GetId (void)
 
RString GetName (void) const
 

Private Attributes

RObj2DConnectorConnector
 
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
conCorresponding connector.
idIdentifier of the pin.
nameName of the pin.

Member Function Documentation

int Compare ( const RObj2DPin pin) const

Compare two pin.

Parameters
pinPin to compare with.
Returns
a value used by RContainer.
int Compare ( const size_t  pin) const

Compare a pin with an identifier.

Parameters
pinIdentifier 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

RObj2DConnector* Connector
private

Connector of the pin.

size_t Id
private

Identifier of the pin.

RString Name
private

Name of the pin.