Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
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_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)
 
GdsDBoperator= (GdsDB const &rhs)
 
 ~GdsDB ()
 destructor
 
GdsCelladdCell (std::string const &name="")
 add a cell and return the reference to the new cell More...
 
GdsCelladdCell (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...
 
GdsCellgetCell (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...
 
GdsObjectoperator= (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< 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 644 of file GdsObjects.h.

Constructor & Destructor Documentation

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

copy constructor

Parameters
rhsa GdsDB object

Member Function Documentation

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

add a cell and return the reference to the new cell

Parameters
namecell name
GdsCell& GdsParser::GdsDB::GdsDB::addCell ( GdsCell const &  cell)

add a cell

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

Definition at line 692 of file GdsObjects.h.

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

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

Parameters
cellNamecell 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

Parameters
cellNamecell name
Returns
pointer to the cell, NULL if not found
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
std::string const& GdsParser::GdsDB::GdsDB::header ( ) const
inline
Returns
header string

Definition at line 670 of file GdsObjects.h.

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

Definition at line 677 of file GdsObjects.h.

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

assignment

Parameters
rhsa GdsDB object
double GdsParser::GdsDB::GdsDB::precision ( ) const
inline
Returns
precision

Definition at line 687 of file GdsObjects.h.

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

Definition at line 672 of file GdsObjects.h.

void GdsParser::GdsDB::GdsDB::setHeader ( int  h)
Parameters
hheader in integer
void GdsParser::GdsDB::GdsDB::setLibname ( std::string const &  n)
inline
Parameters
nname of library

Definition at line 679 of file GdsObjects.h.

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

Definition at line 689 of file GdsObjects.h.

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

Definition at line 684 of file GdsObjects.h.

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

Definition at line 682 of file GdsObjects.h.


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