source: sources/src/sc_localvar.h

Last change on this file was 52, checked in by meunier, 14 years ago

Code formatting in all source files.

File size: 1.4 KB
RevLine 
[1]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
19namespace sc_core {
20
21template <typename T>
[52]22class sc_localvar : public sc_signal_base {
[1]23
[52]24 public:
25 sc_localvar (const T & object) {
26 init (object);
27 }
[1]28
[52]29 private:
30 void init (const T & object) {
31 set_pointer ((tab_t *) &object);
32 set_kind ("sc_localvar");
33 sc_interface::init (sizeof(object));
34 bind (*((sc_signal_base *) this));
35 }
36
[1]37};
38
39} // end of sc_core namespace
40
41#endif
42
[52]43/*
44# Local Variables:
45# tab-width: 4;
46# c-basic-offset: 4;
47# c-file-offsets:((innamespace . 0)(inline-open . 0));
48# indent-tabs-mode: nil;
49# End:
50#
51# vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
52*/
53
Note: See TracBrowser for help on using the repository browser.