Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
GdsParser::GdsDB::GdsObjectHelpers Struct Reference

a helper to facilitate actions on different GDSII objects. More...

#include <GdsObjectHelpers.h>

Public Member Functions

template<typename ActionType >
void operator() (::GdsParser::GdsRecords::EnumType type, GdsObject *object, ActionType action) const
 API to run the actions over all GDSII objects. More...
 

Detailed Description

a helper to facilitate actions on different GDSII objects.

Some helper functions to convert base class pointers to derived class pointers. The basic procedure is to cast the pointer and perform actions with template classes, we only need to implement copyable action classes.

Definition at line 29 of file GdsObjectHelpers.h.

Member Function Documentation

template<typename ActionType >
void GdsParser::GdsDB::GdsObjectHelpers::operator() ( ::GdsParser::GdsRecords::EnumType  type,
GdsObject object,
ActionType  action 
) const
inline

API to run the actions over all GDSII objects.

Template Parameters
ActionTypeaction type
Parameters
typeGDSII record
objectGDSII object, which will be casted according to GDSII record
actionuser-defined action function object

Definition at line 37 of file GdsObjectHelpers.h.


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