oaOccBundleTerm.h

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

Return to top of page