gem5  v20.1.0.0
convenience_socket_bases.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 #ifndef __SYSTEMC_EXT_TLM_UTILS_CONVENIENCE_SOCKET_BASES_H__
20 #define __SYSTEMC_EXT_TLM_UTILS_CONVENIENCE_SOCKET_BASES_H__
21 
22 namespace sc_core
23 {
24 
25 class sc_object;
26 
27 } // namespace sc_core
28 
29 namespace tlm_utils
30 {
31 
32 // Implementation-defined base class helper for convenience sockets.
34 {
35  public:
36  void display_warning(const char *msg) const;
37  void display_error(const char *msg) const;
38 
39  protected:
41 
42  private:
43  virtual const char *get_report_type() const = 0;
44  virtual const sc_core::sc_object *get_socket() const = 0;
45 };
46 
47 // Implementation-defined base class helper for simple sockets.
49 {
50  virtual const char *get_report_type() const;
51 
52  protected:
53  void elaboration_check(const char *action) const;
54 };
55 
56 // Implementation-defined base class helper for passthrough sockets.
58 {
59  virtual const char *get_report_type() const;
60 };
61 
62 // Implementation-defined base class helper for multi sockets.
64 {
65  virtual const char *get_report_type() const;
66 };
67 
68 // Implementation-defined base class for callback helpers.
70 {
71  public:
72  void display_warning(const char *msg) const;
73  void display_error(const char *msg) const;
74 
75  protected:
77  m_owner(owner)
78  {}
79 
80  private:
82 };
83 
84 } // namespace tlm_utils
85 
86 #endif /* __SYSTEMC_EXT_TLM_UTILS_CONVENIENCE_SOCKET_BASES_H__ */
tlm_utils::multi_socket_base::get_report_type
virtual const char * get_report_type() const
Definition: convenience_socket_bases.cc:101
tlm_utils::convenience_socket_cb_holder::m_owner
convenience_socket_base * m_owner
Definition: convenience_socket_bases.h:81
sc_core
Definition: messages.cc:31
tlm_utils::passthrough_socket_base
Definition: convenience_socket_bases.h:57
tlm_utils::convenience_socket_cb_holder::convenience_socket_cb_holder
convenience_socket_cb_holder(convenience_socket_base *owner)
Definition: convenience_socket_bases.h:76
tlm_utils::convenience_socket_base::display_warning
void display_warning(const char *msg) const
Definition: convenience_socket_bases.cc:49
tlm_utils::convenience_socket_cb_holder::display_error
void display_error(const char *msg) const
Definition: convenience_socket_bases.cc:73
tlm_utils::convenience_socket_base::~convenience_socket_base
virtual ~convenience_socket_base()
Definition: convenience_socket_bases.h:40
tlm_utils::simple_socket_base::elaboration_check
void elaboration_check(const char *action) const
Definition: convenience_socket_bases.cc:85
tlm_utils::passthrough_socket_base::get_report_type
virtual const char * get_report_type() const
Definition: convenience_socket_bases.cc:95
tlm_utils::convenience_socket_base::get_report_type
virtual const char * get_report_type() const =0
tlm_utils::convenience_socket_base::get_socket
virtual const sc_core::sc_object * get_socket() const =0
tlm_utils::convenience_socket_base::display_error
void display_error(const char *msg) const
Definition: convenience_socket_bases.cc:57
tlm_utils::convenience_socket_base
Definition: convenience_socket_bases.h:33
sc_core::sc_object
Definition: sc_object.hh:50
tlm_utils
Definition: convenience_socket_bases.h:29
tlm_utils::convenience_socket_cb_holder::display_warning
void display_warning(const char *msg) const
Definition: convenience_socket_bases.cc:67
tlm_utils::simple_socket_base::get_report_type
virtual const char * get_report_type() const
Definition: convenience_socket_bases.cc:79
tlm_utils::simple_socket_base
Definition: convenience_socket_bases.h:48
tlm_utils::multi_socket_base
Definition: convenience_socket_bases.h:63
tlm_utils::convenience_socket_cb_holder
Definition: convenience_socket_bases.h:69

Generated on Wed Sep 30 2020 14:02:16 for gem5 by doxygen 1.8.17