00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaModScalarTerm.h 00004 // 00005 // This file contains the definition for the oaModScalarTerm class. This class 00006 // implements a scalar (i.e. single-bit) terminal in the module domain. 00007 // 00008 // ***************************************************************************** 00009 // Except as specified in the OpenAccess terms of use of Cadence or Silicon 00010 // Integration Initiative, this material may not be copied, modified, 00011 // re-published, uploaded, executed, or distributed in any way, in any medium, 00012 // in whole or in part, without prior written permission from Cadence. 00013 // 00014 // Copyright 2003-2005 Cadence Design Systems, Inc. 00015 // All Rights Reserved. 00016 // 00017 // $Author: icftcm $ 00018 // $Revision: #1 $ 00019 // $Date: 2010/08/09 $ 00020 // $State: Exp $ 00021 // ***************************************************************************** 00022 // ***************************************************************************** 00023 00024 00025 00026 #if !defined(oaModScalarTerm_P) 00027 #define oaModScalarTerm_P 00028 00029 00030 00031 // ***************************************************************************** 00032 // Nested includes 00033 // ***************************************************************************** 00034 #include "oaModTerm.h" 00035 00036 00037 00038 // ***************************************************************************** 00039 // Declare and define types in the OpenAccess namespace. 00040 // ***************************************************************************** 00041 BEGIN_OA_NAMESPACE 00042 00043 00044 00045 // ***************************************************************************** 00046 // oaModScalarTerm 00047 // ***************************************************************************** 00048 class OA_DESIGN_DLL_API oaModScalarTerm : public oaModBitTerm { 00049 public: 00050 static oaModScalarTerm *create(oaModBitNet *modNet, 00051 const oaScalarName &name, 00052 oaTermType type = oacInputOutputTermType); 00053 00054 static oaModScalarTerm *find(const oaModule *module, 00055 const oaScalarName &name); 00056 00057 static oaBoolean isValidName(const oaModule *module, 00058 const oaScalarName &name); 00059 00060 using oaModTerm::getName; 00061 void getName(oaScalarName &name) const; 00062 00063 void setName(const oaScalarName &name); 00064 }; 00065 00066 00067 00068 // ***************************************************************************** 00069 // Design Traits. 00070 // ***************************************************************************** 00071 template<> 00072 class oaTraits<oaModScalarTerm> { 00073 public: 00074 typedef oaTermModTypeEnum modTypeType; 00075 typedef oaModBitTerm parentType; 00076 enum {dtIndex = oacTermDataType}; 00077 enum {dataTypeEnumVal = oacTermDataType}; 00078 enum {domain = oacModDomain}; 00079 enum {isMultiDomain = true}; 00080 enum {dbType = oacDesignDBType}; 00081 enum {isConcrete = true}; 00082 enum {objectTypeEnumVal = oacModScalarTermType}; 00083 }; 00084 00085 00086 00087 END_OA_NAMESPACE 00088 00089 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.