GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
or_blk.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2012,2018,2020 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef OR_BLK_H
12 #define OR_BLK_H
13 
14 #include <gnuradio/blocks/api.h>
15 #include <gnuradio/sync_block.h>
16 #include <cstdint>
17 
18 namespace gr {
19 namespace blocks {
20 
21 /*!
22  * \brief output = input_0 | input_1 | , ... | input_N)
23  * \ingroup boolean_operators_blk
24  *
25  * Bitwise boolean or across all input streams.
26  */
27 template <class T>
28 class BLOCKS_API or_blk : virtual public sync_block
29 {
30 public:
31  // gr::blocks::or_blk::sptr
32  typedef std::shared_ptr<or_blk<T>> sptr;
33 
34  static sptr make(size_t vlen = 1);
35 };
36 
40 } /* namespace blocks */
41 } /* namespace gr */
42 
43 #endif /* OR_BLK_H */
output = input_0 | input_1 | , ... | input_N)
Definition: or_blk.h:29
std::shared_ptr< or_blk< T > > sptr
Definition: or_blk.h:32
static sptr make(size_t vlen=1)
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
or_blk< std::uint8_t > or_bb
Definition: or_blk.h:37
or_blk< std::int32_t > or_ii
Definition: or_blk.h:39
or_blk< std::int16_t > or_ss
Definition: or_blk.h:38
GNU Radio logging wrapper.
Definition: basic_block.h:29