Connector of a 2D Object. More...

#include <robj2d.h>

Inheritance diagram for RObj2DConnector:
[legend]
Collaboration diagram for RObj2DConnector:
[legend]

Public Member Functions

 RObj2DConnector (RObj2D *obj, size_t id, const RString &name)
 
int Compare (const RObj2DConnector &con) const
 
int Compare (const size_t id) const
 
int Compare (const RString &name) const
 
RObj2DGetObj (void) const
 
size_t GetId (void) const
 
RString GetName (void) const
 
RCursor< RConnectionGetConnections (void) const
 
virtual ~RObj2DConnector (void)
 
- Public Member Functions inherited from RContainer< RObj2DPin, true, true >
 RContainer (size_t m, size_t i=0)
 
 RContainer (const RContainer< RObj2DPin, true, true > &src)
 
 RContainer (const RContainer< RObj2DPin, false, true > &src)
 
int Compare (const RContainer< RObj2DPin, true, true > &) const
 
size_t GetNb (void) const
 
size_t GetMaxPos (void) const
 
size_t GetMaxNb (void) const
 
size_t GetIncNb (void) const
 
bool VerifyIndex (size_t idx) const
 
void VerifyTab (size_t max=0)
 
void Clear (size_t m=0, size_t i=0, bool force=false)
 
void ReOrder (int sortOrder(const void *, const void *), size_t min, size_t max)
 
void ReOrder (int sortOrder(const void *, const void *))
 
void ReOrder (void)
 
void Exchange (size_t pos1, size_t pos2)
 
void Shift (size_t idx, bool reverse)
 
void Transfer (RContainer< RObj2DPin, a, o > &src)
 
RContaineroperator= (const RContainer< RObj2DPin, true, true > &src)
 
RContaineroperator= (const RContainer< RObj2DPin, false, true > &src)
 
void Copy (const RContainer< RObj2DPin, a, true > &src)
 
RContaineroperator+= (const RContainer< RObj2DPin, a, o > &src)
 
size_t GetIndex (const TUse &tag, bool &find, size_t min=0, size_t max=0) const
 
bool IsIn (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const
 
bool IsIn (const TUse &tag, size_t min=0, size_t max=0) const
 
const RObj2DPinoperator[] (size_t idx) const
 
RObj2DPinoperator[] (size_t idx)
 
const RObj2DPinGetPtrAt (size_t idx) const
 
RObj2DPinGetPtrAt (size_t idx)
 
RObj2DPinGetPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const
 
RObj2DPinGetPtr (const TUse &tag, size_t min=0, size_t max=0) const
 
RObj2DPinGetInsertPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0)
 
RObj2DPinGetInsertPtr (const TUse &tag, size_t min=0, size_t max=0)
 
RObj2DPinGetInsertPtrAt (const TUse &tag, size_t pos)
 
RContainer< RObj2DPin, false,
true > * 
GetPtrs (const TUse &tag, size_t min=0, size_t max=0) const
 
size_t GetTab (const void **tab, size_t min=0, size_t max=0) const
 
size_t GetTab (void **tab, size_t min=0, size_t max=0)
 
size_t GetTab (const RObj2DPin **tab, size_t min=0, size_t max=0) const
 
size_t GetTab (RObj2DPin **tab, size_t min=0, size_t max=0)
 
void InsertPtrAt (RObj2DPin *ins, size_t pos, bool del)
 
void InsertPtrAt (RObj2DPin *ins, size_t pos)
 
void InsertPtr (RObj2DPin *ins, bool del=false, size_t min=0, size_t max=0)
 
void DeletePtrAt (size_t pos, bool shift, bool del)
 
void DeletePtrAt (size_t pos, bool shift)
 
void DeletePtrAt (size_t pos)
 
void DeletePtr (const TUse &tag, bool sortkey, bool del, size_t min=0, size_t max=0)
 
void DeletePtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0)
 
void DeletePtr (const TUse &tag, size_t min=0, size_t max=0)
 
void Inter (const iRContainer< RObj2DPin > &src1, const iRContainer< RObj2DPin > &src2)
 
void Union (const iRContainer< RObj2DPin > &src1, const iRContainer< RObj2DPin > &src2)
 
virtual ~RContainer (void)
 
- Public Member Functions inherited from iRContainer< C >
size_t GetNb (void) const
 
size_t GetMaxPos (void) const
 
size_t GetMaxNb (void) const
 
size_t GetIncNb (void) const
 
bool VerifyIndex (size_t idx) const
 
void VerifyTab (size_t max=0)
 
void Clear (size_t m=0, size_t i=0, bool force=false)
 
void ReOrder (int sortOrder(const void *, const void *), size_t min, size_t max)
 
void ReOrder (int sortOrder(const void *, const void *))
 
void ReOrder (void)
 
void Exchange (size_t pos1, size_t pos2)
 
void Shift (size_t idx, bool reverse)
 
void Transfer (iRContainer< C > &src)
 
iRContaineroperator= (const iRContainer< C > &src)
 
void Copy (const iRContainer< C > &src)
 
iRContaineroperator+= (const iRContainer< C > &src)
 
size_t GetIndex (bool order, const TUse &tag, bool &find, size_t min=0, size_t max=0) const
 
size_t GetIndex (const TUse &tag, bool &find, size_t min=0, size_t max=0) const
 
bool IsIn (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const
 
bool IsIn (const TUse &tag, size_t min=0, size_t max=0) const
 
const C * operator[] (size_t idx) const
 
C * operator[] (size_t idx)
 
const C * GetPtrAt (size_t idx) const
 
C * GetPtrAt (size_t idx)
 
C * GetPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0) const
 
C * GetPtr (const TUse &tag, size_t min=0, size_t max=0) const
 
C * GetInsertPtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0)
 
C * GetInsertPtr (const TUse &tag, size_t min=0, size_t max=0)
 
C * GetInsertPtrAt (const TUse &tag, size_t pos)
 
size_t GetTab (const void **tab, size_t min=0, size_t max=0) const
 
size_t GetTab (void **tab, size_t min=0, size_t max=0)
 
size_t GetTab (const C **tab, size_t min=0, size_t max=0) const
 
size_t GetTab (C **tab, size_t min=0, size_t max=0)
 
void InsertPtrAt (C *ins, size_t pos, bool del)
 
void InsertPtrAt (C *ins, size_t pos)
 
void InsertPtr (C *ins, bool del=false, size_t min=0, size_t max=0)
 
void DeletePtrAt (size_t pos, bool shift, bool del)
 
void DeletePtrAt (size_t pos, bool shift)
 
void DeletePtrAt (size_t pos)
 
void DeletePtr (const TUse &tag, bool sortkey, bool del, size_t min=0, size_t max=0)
 
void DeletePtr (const TUse &tag, bool sortkey, size_t min=0, size_t max=0)
 
void DeletePtr (const TUse &tag, size_t min=0, size_t max=0)
 
void Inter (const iRContainer< C > &src1, const iRContainer< C > &src2)
 
void Union (const iRContainer< C > &src1, const iRContainer< C > &src2)
 
virtual ~iRContainer (void)
 

Private Attributes

RObj2DObj
 
size_t Id
 
RString Name
 
RContainer< RConnection, false,
false > 
Connections
 

Additional Inherited Members

- Static Public Member Functions inherited from RContainer< RObj2DPin, true, true >
static int SortOrder (const void *a, const void *b)
 
- Static Public Member Functions inherited from iRContainer< C >
static int SortOrder (const void *a, const void *b)
 
- Protected Member Functions inherited from iRContainer< C >
void Create (const iRContainer< C > &src)
 
iRContainerNormalCopy (const iRContainer< C > &src)
 
void DeepCopy (const iRContainer< C > &src)
 
iRContainerAdd (const iRContainer< C > &src)
 
- Protected Attributes inherited from iRContainer< C >
C ** Tab
 
size_t NbPtr
 
size_t MaxPtr
 
size_t LastPtr
 
size_t IncPtr
 

Detailed Description

Connector of a 2D Object.

This basic class represent a connection point for an object to place by using the 2D placement GA.

Constructor & Destructor Documentation

RObj2DConnector ( RObj2D obj,
size_t  id,
const RString name 
)

Construct a connector.

Parameters
objObject of the connector.
idId of the connector.
nameName of the connector.
virtual ~RObj2DConnector ( void  )
virtual

Destruct the connectors

Member Function Documentation

int Compare ( const RObj2DConnector con) const

Compare two connector.

Parameters
conConnector.
Returns
a value used by RContainer.
int Compare ( const size_t  id) const

Compare a connector with an identifier.

Parameters
idIdentifier of the connector.
Returns
a value used by RContainer.
int Compare ( const RString name) const

This function compares a connector and a name and returns 0 if there are the same. This function is used for the class RContainer.

Parameters
nameName used for the comparison.
RObj2D* GetObj ( void  ) const

Return the object that's own the connector. A null object signifies that it is an external connector.

size_t GetId ( void  ) const
Returns
the identifier of the connector.
RString GetName ( void  ) const
Returns
the name of the connector.
RCursor<RConnection> GetConnections ( void  ) const
Returns
a cursor over the connections.

Member Data Documentation

RObj2D* Obj
private

Owner of the connector.

size_t Id
private

Identifier of the connector.

RString Name
private

Name of the connector.

RContainer<RConnection,false,false> Connections
private

Connections of which the connector is involved.