SystemC
2.3.2
Accellera SystemC proof-of-concept library
sc_name_gen.h
Go to the documentation of this file.
1
/*****************************************************************************
2
3
Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4
more contributor license agreements. See the NOTICE file distributed
5
with this work for additional information regarding copyright ownership.
6
Accellera licenses this file to you under the Apache License, Version 2.0
7
(the "License"); you may not use this file except in compliance with the
8
License. You may obtain a copy of the License at
9
10
http://www.apache.org/licenses/LICENSE-2.0
11
12
Unless required by applicable law or agreed to in writing, software
13
distributed under the License is distributed on an "AS IS" BASIS,
14
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15
implied. See the License for the specific language governing
16
permissions and limitations under the License.
17
18
*****************************************************************************/
19
20
/*****************************************************************************
21
22
sc_name_gen.h -- Unique name generator.
23
*/
34
#ifndef SC_NAME_GEN
35
#define SC_NAME_GEN
36
37
#include <string>
38
#include "
sysc/utils/sc_hash.h
"
39
40
namespace
sc_core
{
41
48
class
sc_name_gen
49
{
50
public
:
51
52
sc_name_gen
();
53
~sc_name_gen
();
54
55
const
char
*
gen_unique_name
(
const
char
* basename_,
56
bool
preserve_first =
false
);
57
58
private
:
59
60
sc_strhash<int*>
m_unique_name_map;
61
std::string m_unique_name;
62
63
private
:
64
65
// disabled
66
sc_name_gen
(
const
sc_name_gen
& );
67
sc_name_gen
& operator = (
const
sc_name_gen
& );
68
};
69
70
}
// namespace sc_core
71
72
// $Log: sc_name_gen.h,v $
73
// Revision 1.5 2011/08/26 20:46:10 acg
74
// Andy Goodrich: moved the modification log to the end of the file to
75
// eliminate source line number skew when check-ins are done.
76
//
77
// Revision 1.4 2011/02/18 20:27:14 acg
78
// Andy Goodrich: Updated Copyrights.
79
//
80
// Revision 1.3 2011/02/13 21:47:37 acg
81
// Andy Goodrich: update copyright notice.
82
//
83
// Revision 1.2 2008/05/22 17:06:26 acg
84
// Andy Goodrich: updated copyright notice to include 2008.
85
//
86
// Revision 1.1.1.1 2006/12/15 20:20:05 acg
87
// SystemC 2.3
88
//
89
// Revision 1.3 2006/01/13 18:44:30 acg
90
// Added $Log to record CVS changes into the source.
91
92
#endif
93
94
// Taf!
sc_core::sc_strhash
Definition:
sc_hash.h:356
sc_core::sc_name_gen::~sc_name_gen
~sc_name_gen()
sc_hash.h
sc_core::sc_name_gen::sc_name_gen
sc_name_gen()
sc_core::sc_name_gen
Unique name generator class.
Definition:
sc_name_gen.h:48
sc_core
Definition:
sc_buffer.h:40
sc_core::sc_name_gen::gen_unique_name
const char * gen_unique_name(const char *basename_, bool preserve_first=false)
sysc
kernel
sc_name_gen.h
Generated on Sun Oct 28 2018 23:08:47 for SystemC by
1.8.13