RecoSim
1.0
Main Page
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Enumerations
src
algorithm_mode_command.h
Go to the documentation of this file.
1
21
#ifndef ALGORITHM_MODE_COMMAND_H
22
#define ALGORITHM_MODE_COMMAND_H
23
24
#include <systemc.h>
25
#include <string>
26
27
using namespace
sc_core;
28
using namespace
std;
29
30
class
AlgorithmModeCommand
{
31
32
private
:
33
34
string
target_module;
35
string
command;
36
sc_time delay;
37
38
public
:
39
40
AlgorithmModeCommand
(
string
_target_module,
string
_command, sc_time _delay) : target_module(_target_module), command(_command), delay(_delay) {}
41
42
string
get_target_module(
void
)
const
;
43
string
get_command(
void
)
const
;
44
sc_time get_delay(
void
)
const
;
45
46
};
47
48
class
AlgorithmModeCommandComparison
{
49
public
:
50
AlgorithmModeCommandComparison
(){}
51
52
bool
operator() (
const
AlgorithmModeCommand
& lhs,
const
AlgorithmModeCommand
&rhs)
const
{
53
return
(lhs.get_delay() > rhs.get_delay());
54
}
55
};
56
57
58
#endif
AlgorithmModeCommand
Definition:
algorithm_mode_command.h:30
AlgorithmModeCommandComparison
Definition:
algorithm_mode_command.h:48
Generated on Fri Apr 17 2015 08:29:07 for RecoSim by
1.8.7