Hurricane VLSI Database


Pad.h
1// ****************************************************************************************************
2// File: ./hurricane/Pad.h
3// Authors: R. Escassut
4// Copyright (c) BULL S.A. 2000-2018, All Rights Reserved
5//
6// This file is part of Hurricane.
7//
8// Hurricane is free software: you can redistribute it and/or modify it under the terms of the GNU
9// Lesser General Public License as published by the Free Software Foundation, either version 3 of the
10// License, or (at your option) any later version.
11//
12// Hurricane is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
13// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU
14// General Public License for more details.
15//
16// You should have received a copy of the Lesser GNU General Public License along with Hurricane. If
17// not, see <http://www.gnu.org/licenses/>.
18// ****************************************************************************************************
19
20#ifndef HURRICANE_PAD
21#define HURRICANE_PAD
22
23#include "hurricane/Component.h"
24#include "hurricane/Pads.h"
25
26namespace Hurricane {
27
28class Layer;
29
30
31
32// ****************************************************************************************************
33// Pad declaration
34// ****************************************************************************************************
35
36class Pad : public Component {
37// *************************
38 private:
39 static FastRTTI _fastRTTI;
40 public:
41 static inline const FastRTTI& fastRTTI ();
42 virtual const FastRTTI& vfastRTTI () const;
43
44// Types
45// *****
46
47 public: typedef Component Inherit;
48
49// Attributes
50// **********
51
52 private: const Layer* _layer;
53 private: Box _boundingBox;
54
55// Constructors
56// ************
57
58 protected: Pad(Net* net, const Layer* layer, const Box& boundingBox);
59
60 public: static Pad* create(Net* net, const Layer* layer, const Box& boundingBox);
61
62// Accessors
63// *********
64
65 public: virtual DbU::Unit getX() const;
66 public: virtual DbU::Unit getY() const;
67 public: virtual Box getBoundingBox() const;
68 public: virtual Box getBoundingBox(const BasicLayer* basicLayer) const;
69 public: virtual const Layer* getLayer() const {return _layer;};
70
71// Updators
72// ********
73
74 public: void setLayer(const Layer* layer);
75 public: virtual void translate(const DbU::Unit& dx, const DbU::Unit& dy);
76 public: void setBoundingBox(const Box& boundingBox);
77
78// Others
79// ******
80
81 public: virtual void _toJson(JsonWriter*) const;
82 public: static JsonObject* getJsonObject(unsigned long flags);
83 public: virtual string _getTypeName() const {return _TName("Pad");};
84 public: virtual string _getString() const;
85 public: virtual Record* _getRecord() const;
86
87};
88
89
90 inline const FastRTTI& Pad::fastRTTI () { return _fastRTTI; }
91
92
93class JsonPad : public JsonComponent {
94// ***********************************
95
96 public: static void initialize();
97 public: JsonPad(unsigned long flags);
98 public: virtual string getTypeName() const;
99 public: virtual JsonPad* clone(unsigned long) const;
100 public: virtual void toData(JsonStack&);
101};
102
103} // End of Hurricane namespace.
104
105
106INSPECTOR_P_SUPPORT(Hurricane::Pad);
107
108
109#endif // HURRICANE_PAD
110
111
112// ****************************************************************************************************
113// Copyright (c) BULL S.A. 2000-2018, All Rights Reserved
114// ****************************************************************************************************
BasicLayer description (API)
Definition BasicLayer.h:42
Box description (API)
Definition Box.h:30
std::int64_t Unit
Definition DbU.h:67
Support for JSON export.
Definition JsonObject.h:83
Layer description (API)
Definition Layer.h:120
Net description (API)
Definition Net.h:46
Pad description (API)
Definition Pad.h:36
Component Inherit
Definition Pad.h:47
static Pad * create(Net *net, const Layer *layer, const Box &boundingBox)
Contains Almost Everything.
Definition BasicLayer.h:39


Generated by doxygen 1.13.2 on Fri Sep 27 2024 Return to top of page
Hurricane VLSI Database Copyright © 2000-2020 Bull S.A. All rights reserved