SystemC  2.3.2
Accellera SystemC proof-of-concept library
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 */
33 #ifndef SC_INTERFACE_H
34 #define SC_INTERFACE_H
35 
36 #include "sysc/kernel/sc_cmnhdr.h"
37 
38 namespace sc_core {
39 
42 
43 
52 {
53 public:
54 
55  // register a port with this interface (does nothing by default)
56  virtual void register_port( sc_port_base& port_,
57  const char* if_typename_ );
58 
59  // get the default event
60  virtual const sc_event& default_event() const;
61 
62  // destructor (does nothing)
63  virtual ~sc_interface();
64 
65 protected:
66 
67  // constructor (does nothing)
68  sc_interface();
69 
70 private:
71 
72  // disabled
73  sc_interface( const sc_interface& );
74  sc_interface& operator = ( const sc_interface& );
75 };
76 
77 } // namespace sc_core
78 
79 //$Log: sc_interface.h,v $
80 //Revision 1.3 2011/08/26 20:45:40 acg
81 // Andy Goodrich: moved the modification log to the end of the file to
82 // eliminate source line number skew when check-ins are done.
83 //
84 //Revision 1.2 2011/02/18 20:23:45 acg
85 // Andy Goodrich: Copyright update.
86 //
87 //Revision 1.1.1.1 2006/12/15 20:20:04 acg
88 //SystemC 2.3
89 //
90 //Revision 1.2 2006/01/03 23:18:26 acg
91 //Changed copyright to include 2006.
92 //
93 //Revision 1.1.1.1 2005/12/19 23:16:43 acg
94 //First check in of SystemC 2.1 into its own archive.
95 //
96 //Revision 1.7 2005/06/10 22:43:55 acg
97 //Added CVS change log annotation.
98 //
99 
100 #endif
101 
102 // Taf!
Abstract base class for class sc_port_b.
Definition: sc_port.h:81
The event class.
Definition: sc_event.h:256
Abstract base class of all interface classes.
Definition: sc_interface.h:51
#define SC_API
Definition: sc_cmnhdr.h:168