oaModScalarInst.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaModScalarInst.h
00004 //
00005 // This file contains the definition for the oaModScalarInst class. This class
00006 // implements a logical scalar (i.e. single-bit) instance of design master.
00007 //
00008 // *****************************************************************************
00009 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00010 // Integration Initiative, this material may not be copied, modified,
00011 // re-published, uploaded, executed, or distributed in any way, in any medium,
00012 // in whole or in part, without prior written permission from Cadence.
00013 //
00014 //                Copyright 2003-2005 Cadence Design Systems, Inc.
00015 //                           All Rights Reserved.
00016 //
00017 //  $Author: icftcm $
00018 //  $Revision: #1 $
00019 //  $Date: 2010/08/09 $
00020 //  $State: Exp $
00021 // *****************************************************************************
00022 // *****************************************************************************
00023 
00024 
00025 
00026 #if !defined(oaModScalarInst_P)
00027 #define oaModScalarInst_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaModDesignInst.h"
00035 
00036 
00037 
00038 // *****************************************************************************
00039 // Declare and define types in the OpenAccess namespace.
00040 // *****************************************************************************
00041 BEGIN_OA_NAMESPACE
00042 
00043 
00044 
00045 // *****************************************************************************
00046 // oaModScalarInst
00047 // *****************************************************************************
00048 class OA_DESIGN_DLL_API oaModScalarInst : public oaModBitInst {
00049 public:
00050     static oaModScalarInst  *create(oaModule            *module,
00051                                     oaDesign            *master,
00052                                     const oaScalarName  &name,
00053                                     const oaParamArray  *params = NULL);
00054 
00055     static oaModScalarInst  *create(oaModule            *module,
00056                                     oaDesign            *master,
00057                                     const oaParamArray  *params = NULL);
00058 
00059     static oaModScalarInst  *create(oaModule            *module,
00060                                     const oaScalarName  &libName,
00061                                     const oaScalarName  &cellName,
00062                                     const oaScalarName  &viewName,
00063                                     const oaScalarName  &name,
00064                                     const oaParamArray  *params = NULL);
00065 
00066     static oaModScalarInst  *create(oaModule            *module,
00067                                     const oaScalarName  &libName,
00068                                     const oaScalarName  &cellName,
00069                                     const oaScalarName  &viewName,
00070                                     const oaParamArray  *params = NULL);
00071 
00072     static oaModScalarInst  *find(const oaModule        *module,
00073                                   const oaScalarName    &name);
00074 
00075     static oaBoolean        isValidName(const oaModule      *module,
00076                                         const oaScalarName  &name);
00077 
00078     using                   oaModInst::getName;
00079     void                    getName(oaScalarName &name) const;
00080 
00081     void                    setName(const oaScalarName &name);
00082 };
00083 
00084 
00085 
00086 // *****************************************************************************
00087 // Design Traits.
00088 // *****************************************************************************
00089 template<>
00090 class oaTraits<oaModScalarInst> {
00091 public:
00092     typedef oaInstModTypeEnum   modTypeType;
00093     typedef oaModBitInst        parentType;
00094     enum {dtIndex = oacInstDataType};
00095     enum {dataTypeEnumVal = oacInstDataType};
00096     enum {domain = oacModDomain};
00097     enum {isMultiDomain = true};
00098     enum {dbType = oacDesignDBType};
00099     enum {isConcrete = true};
00100     enum {objectTypeEnumVal = oacModScalarInstType};
00101 };
00102 
00103 
00104 
00105 END_OA_NAMESPACE
00106 
00107 #endif

Return to top of page