oaModInstHeader.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaModInstHeader.h
00004 //
00005 // This file contains the definition for the oaModInstHeader class. The 
00006 // oaModInstHeader class implements an object that contains the module domain
00007 // view about a particular design master and all of the instances that use it.
00008 // oaOccInstHeader objects are scoped within an owner module.
00009 //
00010 // *****************************************************************************
00011 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00012 // Integration Initiative, this material may not be copied, modified,
00013 // re-published, uploaded, executed, or distributed in any way, in any medium,
00014 // in whole or in part, without prior written permission from Cadence.
00015 //
00016 //                Copyright 2003-2005 Cadence Design Systems, Inc.
00017 //                           All Rights Reserved.
00018 //
00019 //  $Author: icftcm $
00020 //  $Revision: #1 $
00021 //  $Date: 2010/08/09 $
00022 //  $State: Exp $
00023 // *****************************************************************************
00024 // *****************************************************************************
00025 
00026 
00027 
00028 #if !defined(oaModInstHeader_P)
00029 #define oaModInstHeader_P
00030 
00031 
00032 
00033 // *****************************************************************************
00034 // Nested includes
00035 // *****************************************************************************
00036 #include "oaModule.h"
00037 
00038 
00039 
00040 // *****************************************************************************
00041 // Declare and define types in the OpenAccess namespace.
00042 // *****************************************************************************
00043 BEGIN_OA_NAMESPACE
00044 
00045 
00046 
00047 // *****************************************************************************
00048 // oaModInstHeader
00049 // *****************************************************************************
00050 class OA_DESIGN_DLL_API oaModInstHeader : public oaModObject {
00051 public:
00052     static oaModInstHeader                          *find(const oaDesign    *design,
00053                                                           const oaDesign    *master);
00054     static oaModInstHeader                          *find(const oaDesign        *design,
00055                                                           const oaScalarName    &libName,
00056                                                           const oaScalarName    &cellName,
00057                                                           const oaScalarName    &viewName);
00058 
00059     oaDesign                                        *getMaster() const;
00060     oaModule                                        *getMasterModule() const;
00061 
00062     void                                            getLibName(oaScalarName &libName) const;
00063     void                                            getCellName(oaScalarName &cellName) const;
00064     void                                            getViewName(oaScalarName &viewName) const;
00065 
00066     void                                            getLibName(const oaNameSpace    &ns,
00067                                                                oaString             &libName) const;
00068     void                                            getCellName(const oaNameSpace   &ns,
00069                                                                 oaString            &cellName) const;
00070     void                                            getViewName(const oaNameSpace   &ns,
00071                                                                 oaString            &viewName) const;
00072 
00073     void                                            getParams(oaParamArray &params) const;
00074     void                                            getAllParams(oaParamArray &params) const;
00075     oaModInstHeader                                 *getSuperHeader() const;
00076 
00077     oaBoolean                                       isBound() const;
00078     oaBoolean                                       isSuperHeader() const;
00079     oaBoolean                                       isSubHeader() const;
00080 
00081     oaCollection<oaModDesignInst, oaModInstHeader>  getInsts(oaUInt4    filterFlags = oacInstIterNotImplicit,
00082                                                              oaModule   *parentModule = NULL) const;
00083     oaCollection<oaModInstHeader, oaModInstHeader>  getSubHeaders() const;
00084 
00085     enum {dtIndex = oacInstHeaderDataType};
00086 };
00087 
00088 
00089 
00090 // *****************************************************************************
00091 // Design Traits.
00092 // *****************************************************************************
00093 template<>
00094 class oaTraits<oaModInstHeader> {
00095 public:
00096     typedef oaModObject             parentType;
00097     typedef oaInstHeaderModTypeEnum modTypeType;
00098     enum {domain = oacModDomain};
00099     enum {isMultiDomain = true};
00100     enum {dbType = oacDesignDBType};
00101     enum {dtIndex = oacInstHeaderDataType};
00102     enum {isConcrete = true};
00103     enum {objectTypeEnumVal = oacModInstHeaderType};
00104     enum {dataTypeEnumVal = oacInstHeaderDataType};
00105 };
00106 
00107 
00108 
00109 END_OA_NAMESPACE
00110 
00111 #endif

Return to top of page