TLM-2.0  2.0.3
Accellera TLM-2.0 proof-of-concept library
tlm_write_if.h
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  The following code is derived, directly or indirectly, from the SystemC
4  source code Copyright (c) 1996-2014 by all Contributors.
5  All Rights reserved.
6 
7  The contents of this file are subject to the restrictions and limitations
8  set forth in the SystemC Open Source License (the "License");
9  You may not use this file except in compliance with such restrictions and
10  limitations. You may obtain instructions on how to receive a copy of the
11  License at http://www.accellera.org/. Software distributed by Contributors
12  under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
13  ANY KIND, either express or implied. See the License for the specific
14  language governing rights and limitations under the License.
15 
16  *****************************************************************************/
17 
18 #ifndef __TLM_WRITE_IF_H__
19 #define __TLM_WRITE_IF_H__
20 
21 #include <systemc>
22 
23 namespace tlm {
24 
25 template <typename T>
26 class tlm_write_if : public virtual sc_core::sc_interface {
27 public:
28  virtual void write(const T& t) = 0;
29 };
30 
31 template <typename T>
33 public:
34  virtual void write(const T& t, const sc_core::sc_time& time) = 0;
35 };
36 
37 } // namespace tlm
38 
39 
40 #endif
virtual void write(const T &t)=0
virtual void write(const T &t, const sc_core::sc_time &time)=0