50 DType(
const char *markup);
63 DType(
const std::string &markup);
71 DType(
const std::string &alias,
const size_t dimension);
80 DType(
const std::type_info &type,
const size_t dimension = 1);
86 const std::string &name(
void)
const;
89 size_t elemType(
void)
const;
92 size_t elemSize(
void)
const;
95 size_t dimension(
void)
const;
98 size_t size(
void)
const;
101 std::string toString(
void)
const;
107 std::string toMarkup(
void)
const;
119 bool isCustom(
void)
const;
125 bool isFloat(
void)
const;
131 bool isInteger(
void)
const;
137 bool isSigned(
void)
const;
143 bool isComplex(
void)
const;
146 template<
class Archive>
147 void serialize(Archive & ar,
const unsigned int version);
192 return _elemSize*_dimension;
195 inline Pothos::DType::operator bool(
void)
const
197 return _elemType != 0;
#define pothos_explicit
Definition: Config.hpp:85
#define POTHOS_API
Definition: Config.hpp:41
DType(void)
Create an unknown DType of size 1.
Definition: DType.hpp:167
size_t dimension(void) const
Get the dimensionality of this type.
Definition: DType.hpp:185
bool operator==(const ManagedBuffer &lhs, const ManagedBuffer &rhs)
Definition: ManagedBuffer.hpp:132
size_t elemType(void) const
Get the element type descriptor.
Definition: DType.hpp:175
size_t elemSize(void) const
Get the size of a single element in bytes.
Definition: DType.hpp:180
void serialize(Archive &, Pothos::Detail::ObjectContainer &, const unsigned int)
Definition: Serialize.hpp:46
size_t size(void) const
Get the size of this DType in bytes.
Definition: DType.hpp:190