00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaOccScalarNet.h 00004 // 00005 // This file contains the definition for the oaOccScalarNet class. This class 00006 // implements an occurrence of a single-bit net. 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(oaOccScalarNet_P) 00027 #define oaOccScalarNet_P 00028 00029 00030 00031 // ***************************************************************************** 00032 // Nested includes 00033 // ***************************************************************************** 00034 #include "oaScalarNet.h" 00035 #include "oaModScalarNet.h" 00036 #include "oaOccNet.h" 00037 00038 00039 00040 // ***************************************************************************** 00041 // Declare and define types in the OpenAccess namespace. 00042 // ***************************************************************************** 00043 BEGIN_OA_NAMESPACE 00044 00045 00046 00047 // ***************************************************************************** 00048 // oaOccScalarNet 00049 // ***************************************************************************** 00050 class OA_DESIGN_DLL_API oaOccScalarNet : public oaOccBitNet { 00051 public: 00052 static oaOccScalarNet *find(const oaOccurrence *occurrence, 00053 const oaScalarName &name); 00054 00055 using oaOccNet::getName; 00056 void getName(oaScalarName &name) const; 00057 00058 using oaOccNet::getPathName; 00059 void getPathName(oaScalarName &pathName) const; 00060 00061 oaScalarNet *getNet() const; 00062 oaModScalarNet *getModNet() const; 00063 }; 00064 00065 00066 00067 // ***************************************************************************** 00068 // Design Traits. 00069 // ***************************************************************************** 00070 template<> 00071 class oaTraits<oaOccScalarNet> { 00072 public: 00073 typedef oaNetModTypeEnum modTypeType; 00074 typedef oaOccBitNet parentType; 00075 enum {dtIndex = oacNetDataType}; 00076 enum {dataTypeEnumVal = oacNetDataType}; 00077 enum {domain = oacOccDomain}; 00078 enum {isMultiDomain = true}; 00079 enum {dbType = oacDesignDBType}; 00080 enum {isConcrete = true}; 00081 enum {objectTypeEnumVal = oacOccScalarNetType}; 00082 }; 00083 00084 00085 00086 END_OA_NAMESPACE 00087 00088 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.