source: sources/src/process_dependency.h @ 65

Last change on this file since 65 was 52, checked in by meunier, 11 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
17namespace sc_core {
18
19// Signal Dependency Graph
20struct ProcessDependency {
21    const method_process_t * source;
22    const method_process_t * destination;
23    bool operator < (const ProcessDependency &) const;
24};
25
26typedef std::set<ProcessDependency> ProcessDependencyGraph;
27typedef std::list<const method_process_t *> ProcessDependencyList;
28
29// Convert Port Dependency Graph to Signal Dependency Graph
30extern ProcessDependencyGraph * MakeProcessDependencyGraph(const SignalDependencyGraph &);
31extern ProcessDependencyList * MakeProcessDependencyList(const SignalDependencyGraph &);
32
33// Dump to dot file
34extern bool ProcessDependencyGraph2dot(const char * name, const ProcessDependencyGraph &);
35extern 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.