|
Limbo 3.5.4
|
#include <GdsObjects.h>
Public Types | |
| typedef GdsObject | base_type |
| base type | |
| Public Types inherited from GdsParser::GdsDB::GdsObject | |
| typedef int | coordinate_type |
| coordinate types | |
| typedef gtl::point_data< coordinate_type > | point_type |
| typedef gtl::point_data< double > | float_point_type |
| float point type to avoid numerical issue | |
| typedef gtl::interval_data< coordinate_type > | interval_type |
| interval type | |
| typedef gtl::rectangle_data< coordinate_type > | rectangle_type |
| rectangle type | |
| typedef gtl::polygon_data< coordinate_type > | polygon_type |
| polygon type | |
| typedef gtl::polygon_90_set_data< coordinate_type > | polygon_set_type |
| polygon set type | |
Public Member Functions | |
| GdsDB () | |
| constructor | |
| GdsDB (GdsDB const &rhs) | |
| GdsDB & | operator= (GdsDB const &rhs) |
| ~GdsDB () | |
| destructor | |
| GdsCell & | addCell (std::string const &name="") |
| add a cell and return the reference to the new cell | |
| GdsCell & | addCell (GdsCell const &cell) |
| add a cell | |
| std::string const & | header () const |
| void | setHeader (std::string const &h) |
| void | setHeader (int h) |
| std::string const & | libname () const |
| void | setLibname (std::string const &n) |
| double | unit () const |
| void | setUnit (double u) |
| double | precision () const |
| void | setPrecision (double p) |
| std::vector< GdsCell > const & | cells () const |
| std::vector< GdsCell > & | cells () |
| GdsCell const * | getCell (std::string const &cellName) const |
| given cell name and return the pointer to the cell, return NULL if not found | |
| GdsCell * | getCell (std::string const &cellName) |
| given cell name and return the pointer to the cell, return NULL if not found | |
| GdsCell | extractCell (std::string const &cellName) const |
| extract a cell into a new cell with flatten hierarchies | |
| Public Member Functions inherited from GdsParser::GdsDB::GdsObject | |
| GdsObject () | |
| default constructor | |
| GdsObject (GdsObject const &rhs) | |
| copy constructor | |
| GdsObject & | operator= (GdsObject const &rhs) |
| assignment | |
| virtual | ~GdsObject () |
| destructor | |
Protected Attributes | |
| std::string | m_header |
| header | |
| std::string | m_libname |
| name of library | |
| double | m_unit |
| unit | |
| double | m_precision |
| precision | |
| std::vector< GdsCell > | m_vCell |
| cell array | |
| std::map< std::string, unsigned int > | m_mCellName2Idx |
| map from cell name to index | |
Top level gdsii database
Parameters
-------—
header : string
The header of gdsii file.
libname : string
The name of gdsii library
unit : float
The user unit, not very useful
precision : float
The database unit in meter
Definition at line 660 of file GdsObjects.h.
base type
Definition at line 664 of file GdsObjects.h.
| GdsParser::GdsDB::GdsDB::GdsDB | ( | GdsDB const & | rhs | ) |
copy constructor
| rhs | a GdsDB object |
add a cell
| cell | cell object |
| GdsCell & GdsParser::GdsDB::GdsDB::addCell | ( | std::string const & | name = "" | ) |
add a cell and return the reference to the new cell
| name | cell name |
|
inline |
Definition at line 710 of file GdsObjects.h.
|
inline |
Definition at line 708 of file GdsObjects.h.
| GdsCell GdsParser::GdsDB::GdsDB::extractCell | ( | std::string const & | cellName | ) | const |
extract a cell into a new cell with flatten hierarchies
| cellName | cell name |
| GdsCell * GdsParser::GdsDB::GdsDB::getCell | ( | std::string const & | cellName | ) |
given cell name and return the pointer to the cell, return NULL if not found
| cellName | cell name |
| GdsCell const * GdsParser::GdsDB::GdsDB::getCell | ( | std::string const & | cellName | ) | const |
given cell name and return the pointer to the cell, return NULL if not found
| cellName | cell name |
|
inline |
Definition at line 686 of file GdsObjects.h.
|
inline |
Definition at line 693 of file GdsObjects.h.
assignment
| rhs | a GdsDB object |
|
inline |
Definition at line 703 of file GdsObjects.h.
| void GdsParser::GdsDB::GdsDB::setHeader | ( | int | h | ) |
| h | header in integer |
|
inline |
| h | header |
Definition at line 688 of file GdsObjects.h.
|
inline |
| n | name of library |
Definition at line 695 of file GdsObjects.h.
|
inline |
| p | precision |
Definition at line 705 of file GdsObjects.h.
|
inline |
| u | unit |
Definition at line 700 of file GdsObjects.h.
|
inline |
Definition at line 698 of file GdsObjects.h.
|
protected |
header
Definition at line 727 of file GdsObjects.h.
|
protected |
name of library
Definition at line 728 of file GdsObjects.h.
|
protected |
map from cell name to index
Definition at line 732 of file GdsObjects.h.
|
protected |
precision
Definition at line 730 of file GdsObjects.h.
|
protected |
unit
Definition at line 729 of file GdsObjects.h.
|
protected |
cell array
Definition at line 731 of file GdsObjects.h.