Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1494136
Decimation.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Size
1 KB
Referenced Files
None
Subscribers
None
Decimation.cpp
View Options
//===-- deluxe/executionpolicies/Decimation.cpp -----------------*- C++ -*-===//
//
// The RoSA Framework
//
// Distributed under the terms and conditions of the Boost Software License 1.0.
// See accompanying file LICENSE.
//
// If you did not receive a copy of the license file, see
// http://www.boost.org/LICENSE_1_0.txt.
//
//===----------------------------------------------------------------------===//
///
/// \file deluxe/executionpolicies/Decimation.cpp
///
/// \author David Juhasz (david.juhasz@tuwien.ac.at)
///
/// \date 2019
///
/// \brief Implementation for deluxe/executionpolicies/Decimation.h.
///
//===----------------------------------------------------------------------===//
#include
"Decimation.h"
#include
<algorithm>
namespace
rosa
{
namespace
deluxe
{
Decimation
::
Decimation
(
const
size_t
D
)
:
Rate
(
std
::
max
<
size_t
>
(
D
,
1
)),
Cycle
(
0
)
{}
bool
Decimation
::
canHandle
(
const
AgentHandle
,
const
DeluxeSystem
&
)
const
noexcept
{
return
true
;
}
bool
Decimation
::
shouldProcess
(
const
std
::
vector
<
bool
>
&
)
noexcept
{
return
(
Cycle
++
%
Rate
)
==
0
;
}
std
::
string
Decimation
::
dump
(
void
)
const
noexcept
{
return
"Decimation with rate "
+
std
::
to_string
(
Rate
);
}
}
// End namespace deluxe
}
// End namespace rosa
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sun, Mar 1, 6:33 PM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
279487
Default Alt Text
Decimation.cpp (1 KB)
Attached To
Mode
R20 SoC_Rosa_repo
Attached
Detach File
Event Timeline
Log In to Comment