VLSI Cell. More...
#include <struct.h>
Collaboration diagram for RCell:
Public Member Functions | |
RCell (const R::RString &name) | |
RCell (const R::RString &name, RStructure *s, RLibrary *lib) | |
int | Compare (const RCell &cell) const |
int | Compare (const R::RString &name) const |
R::RString | GetName (void) const |
void | SetAbstract (bool abstract) |
RPort * | GetPort (const R::RString &name) const |
R::RCursor< RPort > | GetPorts (void) const |
void | InsertPolygon (R::RPolygon *poly) |
void | InsertPort (const R::RString &name, const char dir) |
RNet * | InsertNet (const R::RString &name) |
void | InsertInstance (const R::RString &name, const R::RString &cell) |
RInstance * | GetInstance (const R::RString &name) const |
size_t | GetNbInstances (void) const |
R::RCursor< RInstance > | GetInstances (void) const |
R::RCursor< R::RPolygon > | GetPolygons (void) const |
~RCell (void) | |
Private Attributes | |
R::RString | Name |
RLibrary * | Lib |
RStructure * | Struct |
R::RContainer< RPort, true, true > | Ports |
R::RContainer< RInstance, true, true > | Instances |
R::RContainer< RNet, true, true > | Nets |
R::RPolygons | Polygons |
bool | Abstract |
Detailed Description
VLSI Cell.
The RCell class provides a representation for a VLSI cell.
Constructor & Destructor Documentation
RCell | ( | const R::RString & | name | ) |
Construct a cell.
- Parameters
-
name Name of the cell.
RCell | ( | const R::RString & | name, |
RStructure * | s, | ||
RLibrary * | lib | ||
) |
Construct a cell.
- Parameters
-
name Name of the cell. s Structure. lib Library (may be null).
~RCell | ( | void | ) |
Destructor of the cell.
- Returns
Member Function Documentation
int Compare | ( | const RCell & | cell | ) | const |
Compare two cells.
- Parameters
-
cell Cell to compare with.
- Returns
- a value compatible with R::RContainer.
int Compare | ( | const R::RString & | name | ) | const |
Compare the name of the cell with another one.
- Parameters
-
name Name to compare with.
- Returns
- a value compatible with R::RContainer.
R::RString GetName | ( | void | ) | const |
- Returns
- the name of the cell.
void SetAbstract | ( | bool | abstract | ) |
Set if the cell is an abstract one.
- Parameters
-
abstract Abstract ?
RPort* GetPort | ( | const R::RString & | name | ) | const |
- Returns
- pointer to the port corresponding to a given name.
- Parameters
-
name Name of the port.
R::RCursor<RPort> GetPorts | ( | void | ) | const |
- Returns
- a cursor over the ports.
void InsertPolygon | ( | R::RPolygon * | poly | ) |
Add a polygon to describe the cell.
- Parameters
-
poly Polygon.
void InsertPort | ( | const R::RString & | name, |
const char | dir | ||
) |
Insert a port with a given name.
- Parameters
-
name dir
RNet* InsertNet | ( | const R::RString & | name | ) |
Create a new with a given name.
- Parameters
-
name Name of the net.
- Returns
- Pointer to the net created.
void InsertInstance | ( | const R::RString & | name, |
const R::RString & | cell | ||
) |
Insert a instance.
- Parameters
-
name Name of the instance. cell Name of the corresponding cell.
RInstance* GetInstance | ( | const R::RString & | name | ) | const |
Get a instance.
- Parameters
-
name Name of the instance.
- Returns
- a pointer to the instance (or numl if not found).
size_t GetNbInstances | ( | void | ) | const |
- Returns
- the number of instances.
R::RCursor<RInstance> GetInstances | ( | void | ) | const |
- Returns
- a cursor over the instances.
R::RCursor<R::RPolygon> GetPolygons | ( | void | ) | const |
- Returns
- a cursor over the polygons.
Member Data Documentation
|
private |
Name of the cell.
|
private |
Library.
|
private |
Corresponding structure.
|
private |
Port of the cell.
|
private |
Instances of the cell.
|
private |
Nets of the cell.
|
private |
Polygons representing the cell.
|
private |
Specify if the cell is an abstract one.