source: sources/src/sc_interface.h @ 51

Last change on this file since 51 was 51, checked in by becoulet, 13 years ago

missing include

File size: 1.9 KB
Line 
1/*------------------------------------------------------------\
2|                                                             |
3| Tool    :                  systemcass                       |
4|                                                             |
5| File    :                 sc_interface.h                    |
6|                                                             |
7| Author  :                 Buchmann Richard                  |
8|                                                             |
9| Date    :                   09_07_2004                      |
10|                                                             |
11\------------------------------------------------------------*/
12#ifndef __SC_INTERFACE_H__
13#define __SC_INTERFACE_H__
14
15#include <stddef.h>
16
17#include "sc_fwd.h"
18#include "internal_ext.h"
19
20namespace sc_core {
21
22// ----------------------------------------------------------------------------
23//  CLASS : sc_interface
24//
25// 
26// ----------------------------------------------------------------------------
27class sc_interface
28{ 
29        ///////////
30        // Internal
31        private:  tab_t              *pointer; // pointeur dans la table de signaux
32                                         // NULL pour les sc_out/sc_inout
33  public:   inline tab_t       *get_pointer () const   { return pointer; }
34  public:   inline void         set_pointer (tab_t *i) { pointer = i; }
35        public:   size_t              data_size_in_bytes () const; /* nb of bytes */
36        protected:void                init        (size_t) const;
37        ///////////
38                                         
39        //////
40        // LRM
41public:
42                                         /*
43  virtual void register_port (sc_port_base & port_, const char *if_typename_);
44        */
45  /*virtual */const sc_event & default_event () const;
46  /*virtual */~ sc_interface ();
47protected:
48  // constructor
49    sc_interface ();
50private:
51  // disabled
52    sc_interface (const sc_interface &);
53    sc_interface & operator = (const sc_interface &);
54  //////
55};
56
57} // end of sc_core namespace
58
59#endif /* __SC_INTERFACE_H__ */
Note: See TracBrowser for help on using the repository browser.