SystemC
3.0.0
Accellera SystemC proof-of-concept library
sysc
communication
sc_interface.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_interface.h -- Abstract base class of all interface classes.
23
24
Original Author: Martin Janssen, Synopsys, Inc., 2001-05-21
25
26
CHANGE LOG IS AT THE END OF THE FILE
27
*****************************************************************************/
28
29
#ifndef SC_INTERFACE_H
30
#define SC_INTERFACE_H
31
32
#include "
sysc/kernel/sc_cmnhdr.h
"
33
34
namespace
sc_core
{
35
36
class
SC_API
sc_event
;
37
class
SC_API
sc_port_base
;
38
39
40
// ----------------------------------------------------------------------------
41
// CLASS : sc_interface
42
//
43
// Abstract base class of all interface classes.
44
// BEWARE: Direct inheritance from this class must be done virtual.
45
// ----------------------------------------------------------------------------
46
47
class
SC_API
sc_interface
48
{
49
public
:
50
51
// register a port with this interface (does nothing by default)
52
virtual
void
register_port
(
sc_port_base
& port_,
53
const
char
* if_typename_ );
54
55
// get the default event
56
virtual
const
sc_event
&
default_event
()
const
;
57
58
// destructor (does nothing)
59
virtual
~sc_interface
();
60
61
protected
:
62
63
// constructor (does nothing)
64
sc_interface
();
65
66
private
:
67
68
// disabled
69
sc_interface
(
const
sc_interface
& );
70
sc_interface
& operator = (
const
sc_interface
& );
71
};
72
73
}
// namespace sc_core
74
75
//$Log: sc_interface.h,v $
76
//Revision 1.3 2011/08/26 20:45:40 acg
77
// Andy Goodrich: moved the modification log to the end of the file to
78
// eliminate source line number skew when check-ins are done.
79
//
80
//Revision 1.2 2011/02/18 20:23:45 acg
81
// Andy Goodrich: Copyright update.
82
//
83
//Revision 1.1.1.1 2006/12/15 20:20:04 acg
84
//SystemC 2.3
85
//
86
//Revision 1.2 2006/01/03 23:18:26 acg
87
//Changed copyright to include 2006.
88
//
89
//Revision 1.1.1.1 2005/12/19 23:16:43 acg
90
//First check in of SystemC 2.1 into its own archive.
91
//
92
//Revision 1.7 2005/06/10 22:43:55 acg
93
//Added CVS change log annotation.
94
//
95
96
#endif
97
98
// Taf!
sc_cmnhdr.h
SC_API
#define SC_API
Definition:
sc_cmnhdr.h:148
sc_core
Definition:
sc_buffer.h:36
sc_core::sc_interface
Definition:
sc_interface.h:48
sc_core::sc_interface::sc_interface
sc_interface()
sc_core::sc_interface::register_port
virtual void register_port(sc_port_base &port_, const char *if_typename_)
sc_core::sc_interface::default_event
virtual const sc_event & default_event() const
sc_core::sc_interface::~sc_interface
virtual ~sc_interface()
sc_core::sc_port_base
Definition:
sc_port.h:74
sc_core::sc_event
Definition:
sc_event.h:257
Generated on Fri Aug 16 2024 16:36:33 for SystemC by
1.9.4