Changeset 52 for sources/src/sc_interface.h
- Timestamp:
- Jan 22, 2013, 4:23:22 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/sc_interface.h
r51 r52 20 20 namespace sc_core { 21 21 22 22 23 // ---------------------------------------------------------------------------- 23 24 // CLASS : sc_interface … … 25 26 // 26 27 // ---------------------------------------------------------------------------- 27 class 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 41 public: 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 (); 47 protected: 48 // constructor 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: 49 49 sc_interface (); 50 private: 51 // disabled 52 sc_interface (const sc_interface &); 50 51 private: 52 // disabled 53 // QM: required for compilation... 54 sc_interface(const sc_interface &); 53 55 sc_interface & operator = (const sc_interface &); 54 //////55 56 }; 56 57 … … 58 59 59 60 #endif /* __SC_INTERFACE_H__ */ 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 TracChangeset
for help on using the changeset viewer.