|
Last change
on this file since 53 was
52,
checked in by meunier, 13 years ago
|
|
Code formatting in all source files.
|
|
File size:
2.0 KB
|
| Rev | Line | |
|---|
| [1] | 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 | |
|---|
| [51] | 15 | #include <stddef.h> |
|---|
| 16 | |
|---|
| [27] | 17 | #include "sc_fwd.h" |
|---|
| 18 | #include "internal_ext.h" |
|---|
| [1] | 19 | |
|---|
| 20 | namespace sc_core { |
|---|
| 21 | |
|---|
| [52] | 22 | |
|---|
| [1] | 23 | // ---------------------------------------------------------------------------- |
|---|
| 24 | // CLASS : sc_interface |
|---|
| 25 | // |
|---|
| 26 | // |
|---|
| 27 | // ---------------------------------------------------------------------------- |
|---|
| [52] | 28 | |
|---|
| 29 | class sc_interface { |
|---|
| 30 | /////////// |
|---|
| 31 | // Internal |
|---|
| 32 | private: |
|---|
| 33 | tab_t * pointer; // pointeur dans la table de signaux |
|---|
| 34 | // NULL pour les sc_out/sc_inout |
|---|
| 35 | |
|---|
| 36 | public: |
|---|
| 37 | inline tab_t * get_pointer() const { return pointer; } |
|---|
| 38 | inline void set_pointer(tab_t * i) { pointer = i; } |
|---|
| 39 | size_t data_size_in_bytes() const; /* nb of bytes */ |
|---|
| 40 | |
|---|
| 41 | protected: |
|---|
| 42 | void init(size_t) const; |
|---|
| 43 | |
|---|
| 44 | public: |
|---|
| 45 | const sc_event & default_event() const; |
|---|
| 46 | ~sc_interface(); |
|---|
| 47 | |
|---|
| 48 | protected: |
|---|
| [1] | 49 | sc_interface (); |
|---|
| [52] | 50 | |
|---|
| 51 | private: |
|---|
| 52 | // disabled |
|---|
| 53 | // QM: required for compilation... |
|---|
| 54 | sc_interface(const sc_interface &); |
|---|
| [1] | 55 | sc_interface & operator = (const sc_interface &); |
|---|
| 56 | }; |
|---|
| 57 | |
|---|
| 58 | } // end of sc_core namespace |
|---|
| 59 | |
|---|
| 60 | #endif /* __SC_INTERFACE_H__ */ |
|---|
| [52] | 61 | |
|---|
| 62 | /* |
|---|
| 63 | # Local Variables: |
|---|
| 64 | # tab-width: 4; |
|---|
| 65 | # c-basic-offset: 4; |
|---|
| 66 | # c-file-offsets:((innamespace . 0)(inline-open . 0)); |
|---|
| 67 | # indent-tabs-mode: nil; |
|---|
| 68 | # End: |
|---|
| 69 | # |
|---|
| 70 | # vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
|---|
| 71 | */ |
|---|
| 72 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.