oaModInst.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaModInst.h
00004 //
00005 // This file contains the definition for the oaModInst class and its public
00006 // supporting classes. The oaModInst class is an abstract base class for 
00007 // logical instances of either design or embedded module master.
00008 //
00009 // *****************************************************************************
00010 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00011 // Integration Initiative, this material may not be copied, modified,
00012 // re-published, uploaded, executed, or distributed in any way, in any medium,
00013 // in whole or in part, without prior written permission from Cadence.
00014 //
00015 //                Copyright 2003-2005 Cadence Design Systems, Inc.
00016 //                           All Rights Reserved.
00017 //
00018 //  $Author: icftcm $
00019 //  $Revision: #1 $
00020 //  $Date: 2010/08/09 $
00021 //  $State: Exp $
00022 // *****************************************************************************
00023 // *****************************************************************************
00024 
00025 
00026 
00027 #if !defined(oaModInst_P)
00028 #define oaModInst_P
00029 
00030 
00031 
00032 // *****************************************************************************
00033 // Nested includes
00034 // *****************************************************************************
00035 #include "oaModule.h"   
00036 
00037 
00038 
00039 // *****************************************************************************
00040 // Declare and define types in the OpenAccess namespace.
00041 // *****************************************************************************
00042 BEGIN_OA_NAMESPACE
00043 
00044 
00045 
00046 // *****************************************************************************
00047 // oaModInst
00048 // *****************************************************************************
00049 class OA_DESIGN_DLL_API oaModInst : public oaModObject {
00050 public:
00051     static oaModInst                            *find(const oaModule        *module,
00052                                                       const oaSimpleName    &name);
00053 
00054     void                                        destroy();
00055 
00056     oaModule                                    *getMasterModule() const;
00057 
00058     void                                        getName(oaSimpleName &name) const;
00059     void                                        getName(const oaNameSpace   &ns,
00060                                                         oaString            &name) const;
00061     oaUInt4                                     getNumBits() const;
00062 
00063     oaBoolean                                   isBound() const;
00064     oaBoolean                                   isImplicit() const;
00065     oaBoolean                                   isModDesignInst() const;
00066     oaBoolean                                   isModModuleInst() const;
00067     oaBoolean                                   usesTermPositions() const;
00068 
00069     void                                        scalarize();
00070 
00071     oaCollection<oaModInstTerm, oaModInst>      getInstTerms(oaUInt4 filterFlags = oacInstTermIterNotImplicit) const;
00072     oaCollection<oaModAssignment, oaModInst>    getAssignments() const;
00073     oaCollection<oaOccInst, oaModInst>          getOccInsts(const oaOccurrence *top) const;
00074 
00075     enum {dtIndex = oacInstDataType};
00076 };
00077 
00078 
00079 
00080 // *****************************************************************************
00081 // Design Traits.
00082 // *****************************************************************************
00083 template<>
00084 class oaTraits<oaModInst> {
00085 public:
00086     typedef oaModObject         parentType;
00087     typedef oaInstModTypeEnum   modTypeType;
00088     enum {domain = oacModDomain};
00089     enum {isMultiDomain = true};
00090     enum {dbType = oacDesignDBType};
00091     enum {isConcrete = false};
00092     enum {dtIndex = oacInstDataType};
00093     enum {dataTypeEnumVal = oacInstDataType};
00094     enum {abstractTypeEnumVal = oacModInstType};
00095 };
00096 
00097 
00098 
00099 END_OA_NAMESPACE
00100 
00101 #endif

Return to top of page