X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=pmt%2Fsrc%2Flib%2Fpmt_int.h;h=458443eafa78b4304910e291dac62feb9b7a66d1;hb=29c73e79ef50525b56d8e9f89808baace75fae82;hp=5a178523c227bfbc610fc1dbb328b2b5e89931ad;hpb=77a328cd9cc198de890787e000985baf976af32a;p=debian%2Fgnuradio diff --git a/pmt/src/lib/pmt_int.h b/pmt/src/lib/pmt_int.h index 5a178523..458443ea 100644 --- a/pmt/src/lib/pmt_int.h +++ b/pmt/src/lib/pmt_int.h @@ -23,6 +23,7 @@ #define INCLUDED_PMT_INT_H #include +#include /* * EVERYTHING IN THIS FILE IS PRIVATE TO THE IMPLEMENTATION! @@ -30,16 +31,11 @@ * See pmt.h for the public interface */ -class pmt_base { +class pmt_base : boost::noncopyable { protected: pmt_base(){}; virtual ~pmt_base(); -private: - pmt_base(const pmt_base& rhs); // NOT IMPLEMENTED - pmt_base& operator=(const pmt_base& rhs); // NOT IMPLEMENTED - - public: virtual bool is_bool() const { return false; } virtual bool is_symbol() const { return false; } @@ -102,6 +98,7 @@ public: pmt_integer(long value); //~pmt_integer(){} + bool is_number() const { return true; } bool is_integer() const { return true; } long value() const { return d_value; } }; @@ -114,6 +111,7 @@ public: pmt_real(double value); //~pmt_real(){} + bool is_number() const { return true; } bool is_real() const { return true; } double value() const { return d_value; } }; @@ -126,6 +124,7 @@ public: pmt_complex(std::complex value); //~pmt_complex(){} + bool is_number() const { return true; } bool is_complex() const { return true; } std::complex value() const { return d_value; } };