11 #ifndef INCLUDED_PMT_SUGAR_H
12 #define INCLUDED_PMT_SUGAR_H
45 static inline pmt_t mp(std::complex<double> z)
51 static inline pmt_t mp(std::complex<float> z)
57 static inline pmt_t mp(std::shared_ptr<gr::messages::msg_accepter> ma)
63 static inline pmt_t mp(
const void* data,
size_t len_in_bytes)
113 return make_tuple(e0, e1, e2, e3, e4, e5, e6);
126 return make_tuple(e0, e1, e2, e3, e4, e5, e6, e7);
140 return make_tuple(e0, e1, e2, e3, e4, e5, e6, e7, e8);
155 return make_tuple(e0, e1, e2, e3, e4, e5, e6, e7, e8, e9);
PMT_API pmt_t string_to_symbol(const std::string &s)
Return the symbol whose name is s.
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_tuple()
PMT_API pmt_t make_msg_accepter(std::shared_ptr< gr::messages::msg_accepter > ma)
make a msg_accepter
static pmt_t mp(const std::string &s)
Make pmt symbol.
Definition: pmt_sugar.h:24
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition: pmt.h:83
PMT_API pmt_t from_long(long x)
Return the pmt value that represents the integer x.
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.
PMT_API pmt_t from_uint64(uint64_t x)
Return the pmt value that represents the uint64 x.