GNU Radio 3.4.2 C++ API
gr_transcendental.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2011 Free Software Foundation, Inc.
00003  * 
00004  * This file is part of GNU Radio
00005  * 
00006  * GNU Radio is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 3, or (at your option)
00009  * any later version.
00010  * 
00011  * GNU Radio is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  * 
00016  * You should have received a copy of the GNU General Public License
00017  * along with GNU Radio; see the file COPYING.  If not, write to
00018  * the Free Software Foundation, Inc., 51 Franklin Street,
00019  * Boston, MA 02110-1301, USA.
00020  */
00021 
00022 #ifndef INCLUDED_GR_TRANSCENDENTAL_H
00023 #define INCLUDED_GR_TRANSCENDENTAL_H
00024 
00025 #include <gr_sync_block.h>
00026 #include <string>
00027 
00028 /*!
00029  * \brief A block that performs various transcendental math operations.
00030  *
00031  * Possible function names can be found in the cmath library.
00032  * IO may be either complex or real, double or single precision.
00033  *
00034  * Possible type strings: float, double, complex_float, complex_double
00035  *
00036  * output[i] = trans_fcn(input[i])
00037  */
00038 class gr_transcendental : virtual public gr_sync_block{
00039 public:
00040     typedef boost::shared_ptr<gr_transcendental> sptr;
00041 };
00042 
00043 gr_transcendental::sptr gr_make_transcendental(
00044     const std::string &name,
00045     const std::string &type = "float"
00046 );
00047 
00048 #endif /* INCLUDED_GR_TRANSCENDENTAL_H */