00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaOccInst.h 00004 // 00005 // This file contains the definition for the oaOccInst class and its public 00006 // supporting classes. The oaOccInst class is an abstract base class for 00007 // occurrence instances of either design or embedded module master in the 00008 // owner occurrence. 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(oaOccInst_P) 00029 #define oaOccInst_P 00030 00031 00032 00033 // ***************************************************************************** 00034 // Nested includes 00035 // ***************************************************************************** 00036 #include "oaInst.h" 00037 #include "oaModInst.h" 00038 #include "oaOccurrence.h" 00039 00040 00041 00042 // ***************************************************************************** 00043 // Declare and define types in the OpenAccess namespace. 00044 // ***************************************************************************** 00045 BEGIN_OA_NAMESPACE 00046 00047 00048 00049 // ***************************************************************************** 00050 // oaOccInst 00051 // ***************************************************************************** 00052 class OA_DESIGN_DLL_API oaOccInst : public oaOccObject { 00053 public: 00054 static oaOccInst *find(const oaOccurrence *occurrence, 00055 const oaSimpleName &name); 00056 00057 oaOccurrence *getMasterOccurrence(oaBoolean expand = true) const; 00058 00059 void getName(oaSimpleName &name) const; 00060 void getName(const oaNameSpace &ns, 00061 oaString &name) const; 00062 00063 void getPathName(oaSimpleName &pathName) const; 00064 void getPathName(const oaNameSpace &ns, 00065 oaString &pathName) const; 00066 00067 oaInst *getInst() const; 00068 oaModInst *getModInst() const; 00069 00070 oaUInt4 getNumBits() const; 00071 00072 oaBoolean isBound() const; 00073 oaBoolean isImplicit() const; 00074 oaBoolean isOccDesignInst() const; 00075 oaBoolean isOccModuleInst() const; 00076 oaBoolean usesTermPositions() const; 00077 00078 oaCollection<oaOccInstTerm, oaOccInst> getInstTerms(oaUInt4 filterFlags = oacInstTermIterNotImplicit) const; 00079 oaCollection<oaOccAssignment, oaOccInst> getAssignments() const; 00080 00081 enum {dtIndex = oacInstDataType}; 00082 }; 00083 00084 00085 00086 // ***************************************************************************** 00087 // Design Traits. 00088 // ***************************************************************************** 00089 template<> 00090 class oaTraits<oaOccInst> { 00091 public: 00092 typedef oaOccObject parentType; 00093 typedef oaInstModTypeEnum modTypeType; 00094 enum {domain = oacOccDomain}; 00095 enum {isMultiDomain = true}; 00096 enum {dbType = oacDesignDBType}; 00097 enum {isConcrete = false}; 00098 enum {dtIndex = oacInstDataType}; 00099 enum {dataTypeEnumVal = oacInstDataType}; 00100 enum {abstractTypeEnumVal = oacOccInstType}; 00101 }; 00102 00103 00104 00105 END_OA_NAMESPACE 00106 00107 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.