22 #ifndef INCLUDED_PMT_SUGAR_H
23 #define INCLUDED_PMT_SUGAR_H
36 mp(
const std::string &s)
62 mp(
long long unsigned x){
80 mp(std::complex<double> z)
87 mp(std::complex<float> z)
94 mp(boost::shared_ptr<gr::messages::msg_accepter> ma)
101 mp(
const void *data,
size_t len_in_bytes)
152 return make_tuple(e0, e1, e2, e3, e4, e5, e6);
159 return make_tuple(e0, e1, e2, e3, e4, e5, e6, e7);
166 return make_tuple(e0, e1, e2, e3, e4, e5, e6, e7, e8);
173 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.
PMT_API pmt_t string_to_symbol(const std::string &s)
Return the symbol whose name is s.
PMT_API pmt_t from_uint64(uint64_t x)
Return the pmt value that represents the uint64 x.
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