GNU Radio C++ API Reference: add_const_ii.h Source File

| GNU Radio C++ API Reference 3.10.12.0 The Free & Open Software Radio Ecosystem |

Loading...
Searching...
No Matches
add_const_ii.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2004,2012,2015 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 ADD_CONST_II
12#define ADD_CONST_II
13
14#include <gnuradio/blocks/api.h>
15#include <gnuradio/sync_block.h>
16
17namespace gr {
18namespace blocks {
19
20/*!
21 * \brief output = input + constant
22 * \ingroup math_operators_blk
23 */
24 class BLOCKS_API add_const_ii : virtual public sync_block
25{
26public:
27 // gr::blocks::add_const_ii::sptr
28 typedef std::shared_ptr<add_const_ii> sptr;
29
30 /*!
31 * \brief Create an instance of add_const_ii
32 * \param k additive constant
33 */
34 static sptr make(int k);
35
36 /*!
37 * \brief Return additive constant
38 */
39 virtual int k() const = 0;
40
41 /*!
42 * \brief Set additive constant
43 */
44 virtual void set_k(int k) = 0;
45};
46
47} // namespace blocks
48} // namespace gr
49
50#endif /* ADD_CONST_II */
gr::blocks::add_const_ii
output = input + constant
Definition add_const_ii.h:25
gr::blocks::add_const_ii::make
static sptr make(int k)
Create an instance of add_const_ii.
gr::blocks::add_const_ii::sptr
std::shared_ptr< add_const_ii > sptr
Definition add_const_ii.h:28
gr::blocks::add_const_ii::set_k
virtual void set_k(int k)=0
Set additive constant.
gr::blocks::add_const_ii::k
virtual int k() const =0
Return additive constant.
gr::sync_block::sync_block
sync_block(void)
Definition sync_block.h:28
api.h
BLOCKS_API
#define BLOCKS_API
Definition gr-blocks/include/gnuradio/blocks/api.h:18
gr::blocks
Definition abs_blk.h:20
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h