oaRef.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaRef.h
00004 //
00005 // This file contains the definition for the oaRef class. This is an abstract
00006 // base for all types of instances and vias. It implements the functionality
00007 // common to the two.
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(oaRef_P)
00028 #define oaRef_P
00029 
00030 
00031 
00032 // *****************************************************************************
00033 // Nested includes
00034 // *****************************************************************************
00035 #include "oaFig.h"
00036 #include "oaRefHeader.h"
00037 
00038 
00039 
00040 // *****************************************************************************
00041 // Declare and define types in the OpenAccess namespace.
00042 // *****************************************************************************
00043 BEGIN_OA_NAMESPACE
00044 
00045 
00046 
00047 // *****************************************************************************
00048 // oaRef
00049 // *****************************************************************************
00050 class OA_DESIGN_DLL_API oaRef : public oaPinFig {
00051 public:
00052     oaRefHeader             *getHeader() const;
00053     oaDesign                *getMaster() const;
00054     void                    getOrigin(oaPoint &origin) const;
00055     oaOrient                getOrient() const;
00056     void                    getTransform(oaTransform &xform) const;
00057 
00058     oaBoolean               isBound() const;
00059 
00060     void                    setOrigin(const oaPoint &origin);
00061     void                    setOrient(oaOrient orient);
00062     void                    setTransform(const oaTransform &xform);
00063 };
00064 
00065 
00066 
00067 // *****************************************************************************
00068 // Design Traits.
00069 // *****************************************************************************
00070 template<>
00071 class oaTraits<oaRef> {
00072 public:
00073     typedef oaPinFig        parentType;
00074     enum {domain = oacBlockDomain};
00075     enum {dbType = oacDesignDBType};
00076     enum {isMultiDomain = false};
00077     enum {isConcrete = false};
00078     enum {abstractTypeEnumVal = oacRefType};
00079 };
00080 
00081 
00082 
00083 END_OA_NAMESPACE
00084 
00085 #endif

Return to top of page