oaLayerArrayConstraint.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaLayerArrayConstraint.h
00004 //
00005 // This file contains the definitions for the oaLayerArrayConstraint class. This
00006 // class is used to create a constraint on an array of layers.
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 2002-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(oaLayerArrayConstraint_P)
00027 #define oaLayerArrayConstraint_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaConstraintGroup.h"
00035 #include "oaLayerArray.h"
00036 #include "oaPurposeArray.h"
00037 
00038 
00039 
00040 // *****************************************************************************
00041 // Declare and define types in the OpenAccess namespace.
00042 // *****************************************************************************
00043 BEGIN_OA_NAMESPACE
00044 
00045 
00046 
00047 // *****************************************************************************
00048 // oaLayerArrayConstraint
00049 // *****************************************************************************
00050 class OA_TECH_DLL_API oaLayerArrayConstraint : public oaConstraint {
00051 public:
00052     static oaLayerArrayConstraint   *create(const oaLayerArray              &layerNums,
00053                                             const oaLayerArrayConstraintDef *def,
00054                                             oaValue                         *value,
00055                                             oaBoolean                       isHard = true,
00056                                             const oaConstraintParamArray    *params = NULL);
00057     static oaLayerArrayConstraint   *create(const oaLayerArray              &layerNums,
00058                                             const oaLayerArrayConstraintDef *def,
00059                                             const oaString                  &name,
00060                                             oaValue                         *value,
00061                                             oaBoolean                       isHard = true,
00062                                             const oaConstraintParamArray    *params = NULL);
00063 
00064     static oaLayerArrayConstraint   *create(const oaLayerArray              &layerNums,
00065                                             const oaPurposeArray            &purposeNums,
00066                                             const oaLayerArrayConstraintDef *def,
00067                                             oaValue                         *value,
00068                                             oaBoolean                       isHard = true,
00069                                             const oaConstraintParamArray    *params = NULL);
00070     static oaLayerArrayConstraint   *create(const oaLayerArray              &layerNums,
00071                                             const oaPurposeArray            &purposeNums,
00072                                             const oaLayerArrayConstraintDef *def,
00073                                             const oaString                  &name,
00074                                             oaValue                         *value,
00075                                             oaBoolean                       isHard = true,
00076                                             const oaConstraintParamArray    *params = NULL);
00077 
00078 
00079     static oaLayerArrayConstraint   *find(const oaConstraintGroup           *group,
00080                                           const oaLayerArray                &layerNums,
00081                                           const oaLayerArrayConstraintDef   *def,
00082                                           oaBoolean                         hardOnly = false);
00083     static oaLayerArrayConstraint   *find(const oaConstraintGroup           *group,
00084                                           const oaLayerArray                &layerNums,
00085                                           const oaPurposeArray              &purposeNums,
00086                                           const oaLayerArrayConstraintDef   *def,
00087                                           oaBoolean                         hardOnly = false);
00088 
00089     static oaCollection<oaLayerArrayConstraint, oaConstraintGroup>
00090                                     getConstraints(const oaConstraintGroup          *group,
00091                                                    const oaLayerArray               &layerNums,
00092                                                    const oaLayerArrayConstraintDef  *def = NULL);
00093 
00094     void                            getLayers(oaLayerArray &layerNums) const;
00095     void                            getPurposes(oaPurposeArray &purposeNums) const;
00096 };
00097 
00098 
00099 
00100 // *****************************************************************************
00101 // Tech objects derived from oaConstraint
00102 // *****************************************************************************
00103 template<>
00104 class oaTraits<oaLayerArrayConstraint> {
00105 public:
00106     typedef oaConstraintModTypeEnum modTypeType;
00107     typedef oaConstraint            parentType;
00108     enum {domain = oacNoDomain};
00109     enum {isMultiDomain = false};
00110     enum {dbType = oacBaseDBType};
00111     enum {dtIndex = oacTechConstraintDataType};
00112     enum {isConcrete = true};
00113     enum {objectTypeEnumVal = oacLayerArrayConstraintType};
00114     enum {dataTypeEnumVal = oacTechConstraintDataType};
00115 };
00116 
00117 
00118 
00119 END_OA_NAMESPACE
00120 
00121 #endif
00122 

Return to top of page