oaModModuleInstHeader.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaModModuleInstHeader.h
00004 //
00005 // This file contains the definition for the oaModModuleInstHeader class. The 
00006 // oaModModuleInstHeader class implements an object that contains information 
00007 // about a particular module master and all of the logical instances that use 
00008 // it. oaModModuleInstHeader objects are scoped within the 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(oaModModuleInstHeader_P)
00029 #define oaModModuleInstHeader_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 // oaModModuleInstHeader
00049 // *****************************************************************************
00050 class OA_DESIGN_DLL_API oaModModuleInstHeader : public oaModObject {
00051 public:
00052     static oaModModuleInstHeader                            *find(const oaModule    *module,
00053                                                                   const oaModule    *master);
00054     static oaModModuleInstHeader                            *find(const oaModule        *module,
00055                                                                   const oaScalarName    &masterModuleName);
00056 
00057     oaModule                                                *getMasterModule() const;
00058 
00059     void                                                    getName(oaScalarName &name) const;
00060     void                                                    getName(const oaNameSpace   &ns,
00061                                                                     oaString            &name) const;
00062 
00063     oaBoolean                                               isBound() const;
00064 
00065     oaCollection<oaModModuleInst, oaModModuleInstHeader>    getInsts(oaUInt4 filterFlags = oacInstIterNotImplicit) const;
00066 
00067     enum {dtIndex = oacModuleInstHeaderDataType};
00068 };
00069 
00070 
00071 
00072 // *****************************************************************************
00073 // Design Traits.
00074 // *****************************************************************************
00075 template<>
00076 class oaTraits<oaModModuleInstHeader> {
00077 public:
00078     typedef oaModObject                     parentType;
00079     typedef oaModuleInstHeaderModTypeEnum   modTypeType;
00080     enum {domain = oacModDomain};
00081     enum {isMultiDomain = true};
00082     enum {dbType = oacDesignDBType};
00083     enum {dtIndex = oacModuleInstHeaderDataType};
00084     enum {isConcrete = true};
00085     enum {objectTypeEnumVal = oacModModuleInstHeaderType};
00086     enum {dataTypeEnumVal = oacModuleInstHeaderDataType};
00087 };
00088 
00089 
00090 
00091 END_OA_NAMESPACE
00092 
00093 #endif

Return to top of page