38 template<
typename T>
static DataType
ForSingle();
39 template<
typename T>
static DataType
ForVector();
49 friend bool operator==(
const DataType &a,
const DataType &
b) =
default;
61 : category_(category), type_(&type)
87 return category_ ==
Single;
92 return category_ ==
Vector;
116 return type_->name();
118 return type_->name() +
" Vector";
static const CPPType & get()
static DataType ForVector()
const CPPType & vector_base_type() const
static DataType ForVector(const CPPType &type)
static DataType ForSingle(const CPPType &type)
Category category() const
const CPPType & single_type() const
std::string to_string() const
static DataType ForSingle()
friend bool operator==(const DataType &a, const DataType &b)=default
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
unsigned __int64 uint64_t
constexpr uint64_t get_default_hash(const T &v, const Args &...args)