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);
88 static DType fromDType(
const DType &dtype,
const size_t dimension);
94 const std::string &name(
void)
const;
97 size_t elemType(
void)
const;
100 size_t elemSize(
void)
const;
103 size_t dimension(
void)
const;
106 size_t size(
void)
const;
109 std::string toString(
void)
const;
115 std::string toMarkup(
void)
const;
121 explicit operator bool(
void)
const;
127 bool isCustom(
void)
const;
133 bool isFloat(
void)
const;
139 bool isInteger(
void)
const;
145 bool isSigned(
void)
const;
151 bool isComplex(
void)
const;
154 template<
class Archive>
155 void serialize(Archive & ar,
const unsigned int version);
200 return _elemSize*_dimension;
203 inline Pothos::DType::operator bool(
void)
const 205 return _elemType != 0;
#define POTHOS_API
Definition: Config.hpp:41
DType(void)
Create an unknown DType of size 1.
Definition: DType.hpp:175
size_t dimension(void) const
Get the dimensionality of this type.
Definition: DType.hpp:193
Definition: Exception.hpp:15
size_t elemType(void) const
Get the element type descriptor.
Definition: DType.hpp:183
size_t elemSize(void) const
Get the size of a single element in bytes.
Definition: DType.hpp:188
void serialize(Archive &, Pothos::Detail::ObjectContainer &, const unsigned int)
Definition: Serialize.hpp:46
bool operator==(const SharedBuffer &lhs, const SharedBuffer &rhs)
Definition: SharedBuffer.hpp:169
size_t size(void) const
Get the size of this DType in bytes.
Definition: DType.hpp:198