oaNetTermPair.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaNetTermPair.h
00004 //
00005 // This file contains the definition for the oaNetTermPair class.  This template
00006 // class is only intended for use in the context of an oaNetTermArray.
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$
00021 // *****************************************************************************
00022 // *****************************************************************************
00023 
00024 
00025 
00026 #if !defined(oaNetTermPair_P)
00027 #define oaNetTermPair_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaCommonTypes.h"
00035 
00036 
00037 
00038 // *****************************************************************************
00039 // Declare and define types in the OpenAccess namespace.
00040 // *****************************************************************************
00041 BEGIN_OA_NAMESPACE
00042 
00043 
00044 
00045 // *****************************************************************************
00046 // oaNetTermPair
00047 // *****************************************************************************
00048 template<class NetType, class TermType>
00049 class oaNetTermPair {
00050 public:
00051                             oaNetTermPair();
00052 
00053     const NetType           getNet() const;
00054     const TermType          &getTerm() const;
00055     TermType                &getTerm();
00056 
00057     void                    setNet(const NetType &netIn);
00058     void                    setTerm(const TermType &termIn);
00059 
00060     oaUInt4                 getNumBits() const;
00061     oaBoolean               isMultiBit() const;
00062 
00063     oaBoolean               operator==(const oaNetTermPair<NetType, TermType> &val) const;
00064     oaBoolean               operator!=(const oaNetTermPair<NetType, TermType> &val) const;
00065 
00066 private:
00067     NetType                 net;
00068     TermType                term;
00069 };
00070 
00071 
00072 
00073 // *****************************************************************************
00074 // Function declarations
00075 // *****************************************************************************
00076 template<class NetType, class TermType>
00077 oaBoolean
00078     operator!=(const oaNetTermPair<NetType, TermType>   &lhs,
00079                const oaNetTermPair<NetType, TermType>   &rhs);
00080 
00081 
00082 
00083 END_OA_NAMESPACE
00084 
00085 #endif

Return to top of page