oaModBundleTerm.h

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

Return to top of page