Last change
on this file since 13 was
1,
checked in by buchmann, 17 years ago
|
Initial import from CVS repository
|
File size:
1.2 KB
|
Line | |
---|
1 | /*------------------------------------------------------------\ |
---|
2 | | | |
---|
3 | | Tool : systemcass | |
---|
4 | | | |
---|
5 | | File : sc_localvar.h | |
---|
6 | | | |
---|
7 | | Author : Buchmann Richard | |
---|
8 | | | |
---|
9 | | Date : 21_04_2005 | |
---|
10 | | | |
---|
11 | \------------------------------------------------------------*/ |
---|
12 | |
---|
13 | #ifndef SC_LOCALVAR_H |
---|
14 | #define SC_LOCALVAR_H |
---|
15 | |
---|
16 | #include "sc_fwd.h" |
---|
17 | #include "sc_signal.h" |
---|
18 | |
---|
19 | namespace sc_core { |
---|
20 | |
---|
21 | template <typename T> |
---|
22 | class sc_localvar : public sc_signal_base |
---|
23 | { |
---|
24 | |
---|
25 | public: sc_localvar (const T& object) |
---|
26 | { init (object); } |
---|
27 | |
---|
28 | private: void init (const T& object) |
---|
29 | { |
---|
30 | set_pointer ((tab_t*) &object); |
---|
31 | set_kind ("sc_localvar"); |
---|
32 | sc_interface::init (sizeof (object)); |
---|
33 | bind (*((sc_signal_base*)this)); |
---|
34 | } |
---|
35 | }; |
---|
36 | |
---|
37 | } // end of sc_core namespace |
---|
38 | |
---|
39 | #endif |
---|
40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.