00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaOccScalarInst.h 00004 // 00005 // This file contains the definition for the oaOccScalarInst class. This class 00006 // implements an occurrence of a logical scalar (i.e. single-bit) instance of 00007 // design 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(oaOccScalarInst_P) 00028 #define oaOccScalarInst_P 00029 00030 00031 00032 // ***************************************************************************** 00033 // Nested includes 00034 // ***************************************************************************** 00035 #include "oaScalarInst.h" 00036 #include "oaModScalarInst.h" 00037 #include "oaOccDesignInst.h" 00038 00039 00040 00041 // ***************************************************************************** 00042 // Declare and define types in the OpenAccess namespace. 00043 // ***************************************************************************** 00044 BEGIN_OA_NAMESPACE 00045 00046 00047 00048 // ***************************************************************************** 00049 // oaOccScalarInst 00050 // ***************************************************************************** 00051 class OA_DESIGN_DLL_API oaOccScalarInst : public oaOccBitInst { 00052 public: 00053 static oaOccScalarInst *find(const oaOccurrence *occurrence, 00054 const oaScalarName &name); 00055 00056 using oaOccInst::getName; 00057 void getName(oaScalarName &name) const; 00058 00059 using oaOccInst::getPathName; 00060 void getPathName(oaScalarName &pathName) const; 00061 00062 oaScalarInst *getInst() const; 00063 oaModScalarInst *getModInst() const; 00064 }; 00065 00066 00067 00068 // ***************************************************************************** 00069 // Design Traits. 00070 // ***************************************************************************** 00071 template<> 00072 class oaTraits<oaOccScalarInst> { 00073 public: 00074 typedef oaInstModTypeEnum modTypeType; 00075 typedef oaOccBitInst parentType; 00076 enum {dtIndex = oacInstDataType}; 00077 enum {dataTypeEnumVal = oacInstDataType}; 00078 enum {domain = oacOccDomain}; 00079 enum {isMultiDomain = true}; 00080 enum {dbType = oacDesignDBType}; 00081 enum {isConcrete = true}; 00082 enum {objectTypeEnumVal = oacOccScalarInstType}; 00083 }; 00084 00085 00086 00087 END_OA_NAMESPACE 00088 00089 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.