Limbo 3.5.4
Loading...
Searching...
No Matches
GdsParser::GdsDB::GdsDB Class Reference

#include <GdsObjects.h>

Inheritance diagram for GdsParser::GdsDB::GdsDB:
GdsParser::GdsDB::GdsObject

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_typepoint_type
typedef gtl::point_data< double > float_point_type
 float point type to avoid numerical issue
typedef gtl::interval_data< coordinate_typeinterval_type
 interval type
typedef gtl::rectangle_data< coordinate_typerectangle_type
 rectangle type
typedef gtl::polygon_data< coordinate_typepolygon_type
 polygon type
typedef gtl::polygon_90_set_data< coordinate_typepolygon_set_type
 polygon set type

Public Member Functions

 GdsDB ()
 constructor
 GdsDB (GdsDB const &rhs)
GdsDBoperator= (GdsDB const &rhs)
 ~GdsDB ()
 destructor
GdsCelladdCell (std::string const &name="")
 add a cell and return the reference to the new cell
GdsCelladdCell (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
GdsCellgetCell (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
GdsObjectoperator= (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< GdsCellm_vCell
 cell array
std::map< std::string, unsigned int > m_mCellName2Idx
 map from cell name to index

Detailed Description

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.

Member Typedef Documentation

◆ base_type

base type

Definition at line 664 of file GdsObjects.h.

Constructor & Destructor Documentation

◆ GdsDB()

GdsParser::GdsDB::GdsDB::GdsDB ( GdsDB const & rhs)

copy constructor

Parameters
rhsa GdsDB object

Member Function Documentation

◆ addCell() [1/2]

GdsCell & GdsParser::GdsDB::GdsDB::addCell ( GdsCell const & cell)

add a cell

Parameters
cellcell object

◆ addCell() [2/2]

GdsCell & GdsParser::GdsDB::GdsDB::addCell ( std::string const & name = "")

add a cell and return the reference to the new cell

Parameters
namecell name

◆ cells() [1/2]

std::vector< GdsCell > & GdsParser::GdsDB::GdsDB::cells ( )
inline
Returns
reference to array of cells

Definition at line 710 of file GdsObjects.h.

◆ cells() [2/2]

std::vector< GdsCell > const & GdsParser::GdsDB::GdsDB::cells ( ) const
inline
Returns
reference to array of cells

Definition at line 708 of file GdsObjects.h.

◆ extractCell()

GdsCell GdsParser::GdsDB::GdsDB::extractCell ( std::string const & cellName) const

extract a cell into a new cell with flatten hierarchies

Parameters
cellNamecell name

◆ getCell() [1/2]

GdsCell * GdsParser::GdsDB::GdsDB::getCell ( std::string const & cellName)

given cell name and return the pointer to the cell, return NULL if not found

Parameters
cellNamecell name
Returns
pointer to the cell, NULL if not found

◆ getCell() [2/2]

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

Parameters
cellNamecell name
Returns
pointer to the cell, NULL if not found

◆ header()

std::string const & GdsParser::GdsDB::GdsDB::header ( ) const
inline
Returns
header string

Definition at line 686 of file GdsObjects.h.

◆ libname()

std::string const & GdsParser::GdsDB::GdsDB::libname ( ) const
inline
Returns
name of library

Definition at line 693 of file GdsObjects.h.

◆ operator=()

GdsDB & GdsParser::GdsDB::GdsDB::operator= ( GdsDB const & rhs)

assignment

Parameters
rhsa GdsDB object

◆ precision()

double GdsParser::GdsDB::GdsDB::precision ( ) const
inline
Returns
precision

Definition at line 703 of file GdsObjects.h.

◆ setHeader() [1/2]

void GdsParser::GdsDB::GdsDB::setHeader ( int h)
Parameters
hheader in integer

◆ setHeader() [2/2]

void GdsParser::GdsDB::GdsDB::setHeader ( std::string const & h)
inline
Parameters
hheader

Definition at line 688 of file GdsObjects.h.

◆ setLibname()

void GdsParser::GdsDB::GdsDB::setLibname ( std::string const & n)
inline
Parameters
nname of library

Definition at line 695 of file GdsObjects.h.

◆ setPrecision()

void GdsParser::GdsDB::GdsDB::setPrecision ( double p)
inline
Parameters
pprecision

Definition at line 705 of file GdsObjects.h.

◆ setUnit()

void GdsParser::GdsDB::GdsDB::setUnit ( double u)
inline
Parameters
uunit

Definition at line 700 of file GdsObjects.h.

◆ unit()

double GdsParser::GdsDB::GdsDB::unit ( ) const
inline
Returns
unit

Definition at line 698 of file GdsObjects.h.

Member Data Documentation

◆ m_header

std::string GdsParser::GdsDB::GdsDB::m_header
protected

header

Definition at line 727 of file GdsObjects.h.

◆ m_libname

std::string GdsParser::GdsDB::GdsDB::m_libname
protected

name of library

Definition at line 728 of file GdsObjects.h.

◆ m_mCellName2Idx

std::map<std::string, unsigned int> GdsParser::GdsDB::GdsDB::m_mCellName2Idx
protected

map from cell name to index

Definition at line 732 of file GdsObjects.h.

◆ m_precision

double GdsParser::GdsDB::GdsDB::m_precision
protected

precision

Definition at line 730 of file GdsObjects.h.

◆ m_unit

double GdsParser::GdsDB::GdsDB::m_unit
protected

unit

Definition at line 729 of file GdsObjects.h.

◆ m_vCell

std::vector<GdsCell> GdsParser::GdsDB::GdsDB::m_vCell
protected

cell array

Definition at line 731 of file GdsObjects.h.


The documentation for this class was generated from the following file: