Hurricane VLSI Database


Rubber.h
1// ****************************************************************************************************
2// File: ./hurricane/Rubber.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_RUBBER_H
21#define HURRICANE_RUBBER_H
22
23#include "hurricane/Go.h"
24#include "hurricane/Hooks.h"
25#include "hurricane/Rubbers.h"
26
27namespace Hurricane {
28
29class Net;
30
31
32// ****************************************************************************************************
33// Rubber declaration
34// ****************************************************************************************************
35
36class Rubber : public Go {
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 Go Inherit;
48
49
50// Attributes
51// **********
52
53 private: Net* _net;
54 private: Hook* _hook;
55 private: unsigned _count;
56 private: Box _boundingBox;
57 private: Rubber* _nextOfNetRubberSet;
58
59// Constructors
60// ************
61
62 protected: Rubber(Net* net, Hook* hook);
63
64// Destructor
65// **********
66
67 public: virtual void destroy();
68
69// Accessors
70// *********
71
72 public: virtual Cell* getCell() const;
73 public: Net* getNet() const {return _net;};
74 public: Hook* getHook() const {return _hook;};
75 public: unsigned getCount() const {return _count;};
76 public: Point getCenter() const;
77 public: Point getBarycenter() const;
78 public: virtual Box getBoundingBox() const;
79 public: Hooks getHooks() const;
80
81// Updators
82// ********
83
84 public: virtual void materialize();
85 public: virtual void unmaterialize();
86 public: virtual void translate(const DbU::Unit& dx, const DbU::Unit& dy);
87 public: virtual void invalidate(bool propagateFlag = true);
88
89// Others
90// ******
91
92 public: static Rubber* _create(Hook* hook);
93 protected: virtual void _postCreate();
94
95 public: void _destroy();
96 protected: virtual void _preDestroy();
97
98 public: virtual string _getTypeName() const {return _TName("Rubber");};
99 public: virtual string _getString() const;
100 public: virtual Record* _getRecord() const;
101 public: Rubber* _getNextOfNetRubberSet() const {return _nextOfNetRubberSet;};
102
103 public: void _setNet(Net* net);
104 public: void _setHook(Hook* hook);
105 public: void _setNextOfNetRubberSet(Rubber* rubber) {_nextOfNetRubberSet = rubber;};
106
107 public: void _capture();
108 public: void _release();
109
110};
111
112
113 inline const FastRTTI& Rubber::fastRTTI () { return _fastRTTI; }
114
115
116} // End of Hurricane namespace.
117
118
119INSPECTOR_P_SUPPORT(Hurricane::Rubber);
120
121
122#endif // HURRICANE_RUBBER_H
123
124
125// ****************************************************************************************************
126// Copyright (c) BULL S.A. 2000-2018, All Rights Reserved
127// ****************************************************************************************************
Box description (API).
Definition Box.h:30
The model (API).
Definition Cell.h:64
virtual void destroy()
std::int64_t Unit
Definition DbU.h:67
virtual Box getBoundingBox() const =0
virtual Cell * getCell() const =0
virtual void materialize()=0
virtual void unmaterialize()=0
Hook description (API).
Definition Hook.h:34
Net description (API).
Definition Net.h:46
Point description (API).
Definition Point.h:30
Rubber description (API).
Definition Rubber.h:36
Point getCenter() const
Net * getNet() const
Definition Rubber.h:73
unsigned getCount() const
Definition Rubber.h:75
Hooks getHooks() const
Hook * getHook() const
Definition Rubber.h:74
Go Inherit
Definition Rubber.h:47
Contains Almost Everything.
Definition BasicLayer.h:39
GenericCollection< Hook * > Hooks
Definition Hooks.h:35


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