22 #ifndef INCLUDED_PMT_SUGAR_H
23 #define INCLUDED_PMT_SUGAR_H
36 mp(
const std::string &s)
56 mp(
long long unsigned x){
74 mp(std::complex<double> z)
81 mp(std::complex<float> z)
95 mp(
const void *data,
size_t len_in_bytes)
146 return make_tuple(e0, e1, e2, e3, e4, e5, e6);
153 return make_tuple(e0, e1, e2, e3, e4, e5, e6, e7);
160 return make_tuple(e0, e1, e2, e3, e4, e5, e6, e7, e8);
167 return make_tuple(e0, e1, e2, e3, e4, e5, e6, e7, e8, e9);
PMT_API pmt_t from_long(long x)
Return the pmt value that represents the integer x.
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
PMT_API pmt_t string_to_symbol(const std::string &s)
Return the symbol whose name is s.
PMT_API pmt_t make_tuple()
PMT_API pmt_t make_rectangular(double re, double im)
Return a complex number constructed of the given real and imaginary parts.
PMT_API pmt_t make_blob(const void *buf, size_t len)
Make a blob given a pointer and length in bytes.
PMT_API pmt_t from_double(double x)
Return the pmt value that represents double x.
boost::intrusive_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting). See http://www.boost.org/libs/smart_ptr/smart_ptr.htm
Definition: pmt.h:56
static pmt_t mp(const std::string &s)
Make pmt symbol.
Definition: pmt_sugar.h:36
PMT_API pmt_t make_msg_accepter(boost::shared_ptr< gr::messages::msg_accepter > ma)
make a msg_accepter