oaOccModuleVectorInst.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaOccModuleVectorInst.h
00004 //
00005 // This file contains the definition for the oaOccModuleVectorInst class. This 
00006 // class implements an occurrence of a logical vector instance of a module 
00007 // master.
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(oaOccModuleVectorInst_P)
00028 #define oaOccModuleVectorInst_P
00029 
00030 
00031 
00032 // *****************************************************************************
00033 // Nested includes
00034 // *****************************************************************************
00035 #include "oaModModuleVectorInst.h"
00036 #include "oaOccVectorInstDef.h"
00037 #include "oaOccModuleInst.h"
00038 
00039 
00040 
00041 // *****************************************************************************
00042 // Declare and define types in the OpenAccess namespace.
00043 // *****************************************************************************
00044 BEGIN_OA_NAMESPACE
00045 
00046 
00047 
00048 // *****************************************************************************
00049 // oaOccModuleVectorInst
00050 // *****************************************************************************
00051 class OA_DESIGN_DLL_API oaOccModuleVectorInst : public oaOccModuleInst {
00052 public:
00053     static oaOccModuleVectorInst    *find(const oaOccurrence    *occurrence,
00054                                           const oaScalarName    &baseName,
00055                                           oaUInt4               start,
00056                                           oaUInt4               stop);
00057 
00058     oaModModuleVectorInst           *getModInst() const;
00059     oaOccVectorInstDef              *getDef() const;
00060     oaUInt4                         getStart() const;
00061     oaUInt4                         getStop() const;
00062     oaOccModuleVectorInstBit        *getBit(oaUInt4 bitIndex) const;
00063 
00064     using                   oaOccInst::getName;
00065     void                            getName(oaVectorName &name) const;
00066 
00067     using                   oaOccInst::getPathName;
00068     void                            getPathName(oaVectorName &name) const;
00069 };
00070 
00071 
00072 
00073 // *****************************************************************************
00074 // Design Traits.
00075 // *****************************************************************************
00076 template<>
00077 class oaTraits<oaOccModuleVectorInst> {
00078 public:
00079     typedef oaInstModTypeEnum   modTypeType;
00080     typedef oaOccModuleInst     parentType;
00081     enum {dtIndex = oacInstDataType};
00082     enum {dataTypeEnumVal = oacInstDataType};
00083     enum {domain = oacOccDomain};
00084     enum {isMultiDomain = true};
00085     enum {dbType = oacDesignDBType};
00086     enum {isConcrete = true};
00087     enum {objectTypeEnumVal = oacOccModuleVectorInstType};
00088 };
00089 
00090 
00091 
00092 END_OA_NAMESPACE
00093 
00094 #endif

Return to top of page