oaModBundleNet.h

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

Return to top of page