00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaBundleTerm.h 00004 // 00005 // This file contains the definition for the oaBundleTerm class. This class 00006 // implements a multi-bit terminal composed of one or more scalarTerms and/or 00007 // busTerms. 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 2002-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(oaBundleTerm_P) 00028 #define oaBundleTerm_P 00029 00030 00031 00032 // ***************************************************************************** 00033 // Nested includes 00034 // ***************************************************************************** 00035 #include "oaBlock.h" 00036 00037 00038 00039 // ***************************************************************************** 00040 // Declare and define types in the OpenAccess namespace. 00041 // ***************************************************************************** 00042 BEGIN_OA_NAMESPACE 00043 00044 00045 00046 // ***************************************************************************** 00047 // oaBundleTerm 00048 // ***************************************************************************** 00049 class OA_DESIGN_DLL_API oaBundleTerm : public oaTerm { 00050 public: 00051 static oaBundleTerm *create(oaNet *net, 00052 const oaBundleName &name, 00053 oaTermType termType = oacInputOutputTermType, 00054 oaBlockDomainVisibility view = oacInheritFromTopBlock); 00055 00056 static oaBundleTerm *find(const oaBlock *block, 00057 const oaBundleName &name); 00058 static oaBoolean isValidName(oaBlock *block, 00059 oaNet *net, 00060 const oaBundleName &name); 00061 00062 00063 oaUInt4 getNumMembers() const; 00064 oaTerm *getMember(oaUInt4 index) const; 00065 00066 using oaTerm::getName; 00067 void getName(oaBundleName &name) const; 00068 00069 oaCollection<oaTerm, oaBundleTerm> getMembers() const; 00070 }; 00071 00072 00073 00074 // ***************************************************************************** 00075 // Design Traits. 00076 // ***************************************************************************** 00077 template<> 00078 class oaTraits<oaBundleTerm> { 00079 public: 00080 typedef oaTermModTypeEnum modTypeType; 00081 typedef oaTerm parentType; 00082 enum {isMultiDomain = true}; 00083 enum {dtIndex = oacTermDataType}; 00084 enum {dataTypeEnumVal = oacTermDataType}; 00085 enum {domain = oacBlockDomain}; 00086 enum {dbType = oacDesignDBType}; 00087 enum {isConcrete = true}; 00088 enum {objectTypeEnumVal = oacBundleTermType}; 00089 }; 00090 00091 00092 00093 END_OA_NAMESPACE 00094 00095 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.