Net. More...

#include <struct.h>

Collaboration diagram for RNet:
[legend]

Public Member Functions

 RNet (const R::RString &name, RCell *owner)
 
int Compare (const RNet &net) const
 
int Compare (const R::RString &name) const
 
void InsertRef (const R::RString &port, const R::RString &instance)
 
 ~RNet (void)
 

Private Attributes

R::RString Name
 
RCellOwner
 
R::RContainer< RPortRef, true,
false > 
Refs
 

Detailed Description

Net.

the RNet class provides a representation of a net involving different instance ports.

Constructor & Destructor Documentation

RNet ( const R::RString name,
RCell owner 
)

Construct a net.

Parameters
nameName of the net.
ownerOwner of the net.
~RNet ( void  )

Destructor of the net.

Member Function Documentation

int Compare ( const RNet net) const

Compare two nets.

Parameters
netNet to compare with.
Returns
a value compatible with R::RContainer.
int Compare ( const R::RString name) const

Compare the name of the net with another one.

Parameters
nameName to compare with.
Returns
a value compatible with R::RContainer.
void InsertRef ( const R::RString port,
const R::RString instance 
)

Insert a particular port.

Parameters
portName of the port.
instanceName of the instance.

Member Data Documentation

R::RString Name
private

Name of the net.

RCell* Owner
private

Cell owning the net.

R::RContainer<RPortRef,true,false> Refs
private

Ports involved in the net.