Limbo
|
#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::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 More... | |
GdsCell & | addCell (GdsCell const &cell) |
add a cell More... | |
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 More... | |
GdsCell * | getCell (std::string const &cellName) |
given cell name and return the pointer to the cell, return NULL if not found More... | |
GdsCell | extractCell (std::string const &cellName) const |
extract a cell into a new cell with flatten hierarchies More... | |
Public Member Functions inherited from GdsParser::GdsDB::GdsObject | |
GdsObject () | |
default constructor | |
GdsObject (GdsObject const &rhs) | |
copy constructor More... | |
GdsObject & | operator= (GdsObject const &rhs) |
assignment More... | |
virtual | ~GdsObject () |
destructor More... | |
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 644 of file GdsObjects.h.
GdsCell& GdsParser::GdsDB::GdsDB::addCell | ( | std::string const & | name = "" | ) |
add a cell and return the reference to the new cell
name | cell name |
add a cell
cell | cell object |
|
inline |
Definition at line 692 of file GdsObjects.h.
|
inline |
Definition at line 694 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 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 |
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 |
|
inline |
Definition at line 670 of file GdsObjects.h.
|
inline |
Definition at line 677 of file GdsObjects.h.
assignment
rhs | a GdsDB object |
|
inline |
Definition at line 687 of file GdsObjects.h.
|
inline |
h | header |
Definition at line 672 of file GdsObjects.h.
void GdsParser::GdsDB::GdsDB::setHeader | ( | int | h | ) |
h | header in integer |
|
inline |
n | name of library |
Definition at line 679 of file GdsObjects.h.
|
inline |
p | precision |
Definition at line 689 of file GdsObjects.h.
|
inline |
u | unit |
Definition at line 684 of file GdsObjects.h.
|
inline |
Definition at line 682 of file GdsObjects.h.