The MAUVE Toolchain
MuxPriorityWithStatus.hpp
1 /*
2  * Copyright 2017 ONERA
3  *
4  * This file is part of the MAUVE Base Components project.
5  *
6  * MAUVE Base Components is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License version 3 as
8  * published by the Free Software Foundation.
9  *
10  * MAUVE Base Components is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with MAUVE. If not, see <https://www.gnu.org/licenses/lgpl-3.0>.
17  */
18 #ifndef MAUVE_BASE_MUX_PIORITY_STATUS_HPP
19 #define MAUVE_BASE_MUX_PIORITY_STATUS_HPP
20 
21 #include "MuxPriority.hpp"
22 
23 namespace mauve {
24  namespace base {
25 
31 template < typename T, int N >
32 struct MuxPriorityReadPortCoreWithStatus : public MuxPriorityReadPortCore<runtime::StatusValue<T>, N> {
33  virtual bool accept(const runtime::StatusValue<T>&) override;
34 };
35 
36  }
37 }
38 
39 #include "ipp/MuxPriorityWithStatus.ipp"
40 
41 #endif // MAUVE_BASE_MUX_PIORITY_HPP
Definition: DataStatus.hpp:29
Priority Multiplexer core with read ports.
Definition: MuxPriority.hpp:49
virtual bool accept(const runtime::StatusValue< T > &) override
Function to specify when to accept an incoming data.
Definition: MuxPriorityWithStatus.ipp:27
The MAUVE namespace.
Definition: tracing.hpp:24
Priority Multiplexer shell for read ports with status.
Definition: MuxPriorityWithStatus.hpp:32