107 struct AttributeNameGetter {
108 StringRef operator()(
const std::unique_ptr<Attribute> &
value)
const
110 return value->name();
Attribute & add(std::string name, bke::AttrDomain domain, bke::AttrType data_type, Attribute::DataVariant data)
void count_memory(MemoryCounter &memory) const
Attribute * lookup(StringRef name)
void blend_read(BlendDataReader &reader)
std::string unique_name_calc(StringRef name)
bool remove(StringRef name)
void blend_write(BlendWriter &writer, const BlendWriteData &write_data)
AttributeStorage & operator=(const AttributeStorage &other)
AttrStorageType storage_type() const
const DataVariant & data() const
std::variant< ArrayData, SingleData > DataVariant
DataVariant & data_for_write()
AttrDomain domain() const
StringRefNull name() const
AttrType data_type() const
Vector<::Attribute, 16 > & attributes
BlendWriteData(ResourceScope &scope)
ImplicitSharingPtr sharing_info
ImplicitSharingPtr sharing_info