Hurricane VLSI Database


Tabulation.h
1 // ****************************************************************************************************
2 // File: ./hurricane/Tabulation.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_TABULATION_H
21 #define HURRICANE_TABULATION_H
22 
23 #ifndef HURRICANE_COMMONS_H
24 #error "Tabulation.h must be included through Commons.h"
25 #endif
26 
27 namespace Hurricane {
28 
29 
30 
31 // ****************************************************************************************************
32 // Tabulation declaration
33 // ****************************************************************************************************
34 
35 class Tabulation {
36 // *************
37 
38 // Attributes
39 // **********
40 
41  private: string _s;
42  private: unsigned _n;
43 
44 // Constructors
45 // ************
46 
47  public: Tabulation(const string& s = " ");
48 
49  public: Tabulation(const Tabulation& tabulation);
50 
51 // Destructor
52 // **********
53 
54  public: ~Tabulation();
55 
56 // Operators
57 // *********
58 
59  public: Tabulation& operator=(const Tabulation& tabulation);
60 
61  public: Tabulation& operator++();
62  public: Tabulation operator++(int);
63  public: Tabulation& operator--();
64  public: Tabulation operator--(int);
65 
66 // Others
67 // ******
68 
69  public: unsigned getWidth() const { return _s.size()*_n; };
70  public: string _getTypeName() const { return _TName("Tabulation"); };
71  public: string _getString() const;
72  public: Record* _getRecord() const { return NULL; };
73  public: Slot* _getSlot() const { return NULL; };
74 
75 };
76 
77 
78 
79 // ****************************************************************************************************
80 // Variables
81 // ****************************************************************************************************
82 
83 extern Tabulation tab;
84 
85 
86 
87 } // End of Hurricane namespace.
88 
89 
90 INSPECTOR_PR_SUPPORT(Hurricane::Tabulation);
91 
92 
93 
94 // ****************************************************************************************************
95 // Generic functions
96 // ****************************************************************************************************
97 
98 #endif // HURRICANE_TABULATION_H
99 
100 
101 // ****************************************************************************************************
102 // Copyright (c) BULL S.A. 2000-2018, All Rights Reserved
103 // ****************************************************************************************************
Tabulation description (API)
Definition: Tabulation.h:35
Tabulation & operator=(const Tabulation &tabulation)
Tabulation(const string &s=" ")
Tabulation(const Tabulation &tabulation)
Tabulation operator--(int)
Tabulation & operator++()
Tabulation operator++(int)
Tabulation & operator--()
The namespace dedicated to Hurricane.
Definition: Generalities.dox:5


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