|
Last change
on this file since 56 was
52,
checked in by meunier, 13 years ago
|
|
Code formatting in all source files.
|
|
File size:
1.8 KB
|
| Line | |
|---|
| 1 | /*------------------------------------------------------------\ |
|---|
| 2 | | | |
|---|
| 3 | | Tool : systemcass | |
|---|
| 4 | | | |
|---|
| 5 | | File : process_dependency.h | |
|---|
| 6 | | | |
|---|
| 7 | | Author : Buchmann Richard | |
|---|
| 8 | | | |
|---|
| 9 | | Date : 09_07_2004 | |
|---|
| 10 | | | |
|---|
| 11 | \------------------------------------------------------------*/ |
|---|
| 12 | #ifndef MODULE_DEPENDENCY_H |
|---|
| 13 | #define MODULE_DEPENDENCY_H |
|---|
| 14 | |
|---|
| 15 | #include "signal_dependency.h" |
|---|
| 16 | |
|---|
| 17 | namespace sc_core { |
|---|
| 18 | |
|---|
| 19 | // Signal Dependency Graph |
|---|
| 20 | struct ProcessDependency { |
|---|
| 21 | const method_process_t * source; |
|---|
| 22 | const method_process_t * destination; |
|---|
| 23 | bool operator < (const ProcessDependency &) const; |
|---|
| 24 | }; |
|---|
| 25 | |
|---|
| 26 | typedef std::set<ProcessDependency> ProcessDependencyGraph; |
|---|
| 27 | typedef std::list<const method_process_t *> ProcessDependencyList; |
|---|
| 28 | |
|---|
| 29 | // Convert Port Dependency Graph to Signal Dependency Graph |
|---|
| 30 | extern ProcessDependencyGraph * MakeProcessDependencyGraph(const SignalDependencyGraph &); |
|---|
| 31 | extern ProcessDependencyList * MakeProcessDependencyList(const SignalDependencyGraph &); |
|---|
| 32 | |
|---|
| 33 | // Dump to dot file |
|---|
| 34 | extern bool ProcessDependencyGraph2dot(const char * name, const ProcessDependencyGraph &); |
|---|
| 35 | extern bool ProcessDependencyList2dot(const char * name, const ProcessDependencyList &); |
|---|
| 36 | |
|---|
| 37 | } // end of sc_core namespace |
|---|
| 38 | |
|---|
| 39 | #endif |
|---|
| 40 | |
|---|
| 41 | /* |
|---|
| 42 | # Local Variables: |
|---|
| 43 | # tab-width: 4; |
|---|
| 44 | # c-basic-offset: 4; |
|---|
| 45 | # c-file-offsets:((innamespace . 0)(inline-open . 0)); |
|---|
| 46 | # indent-tabs-mode: nil; |
|---|
| 47 | # End: |
|---|
| 48 | # |
|---|
| 49 | # vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4 |
|---|
| 50 | */ |
|---|
| 51 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.