116 friend AttributeStorage;
117 struct AttributeNameGetter {
120 return value->name();
246 data_ = std::move(
data);
BMesh const char void * data
void rename(StringRef old_name, std::string new_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)
Attribute & at_index(int index)
bool remove(StringRef name)
void blend_write(BlendWriter &writer, const BlendWriteData &write_data)
std::string unique_name_calc(StringRef name) const
void foreach_working_space_color(const IDTypeForeachColorFunctionCallback &fn)
void resize(AttrDomain domain, int64_t new_size)
int index_of(StringRef name) const
void foreach_with_stop(FunctionRef< bool(Attribute &)> fn)
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
void assign_data(DataVariant &&data)
AttrType data_type() const
VectorSet< T, InlineBufferCapacity, DefaultProbingStrategy, CustomIDHash< T, GetIDFn >, CustomIDEqual< T, GetIDFn > > CustomIDVectorSet
Vector<::Attribute, 16 > & attributes
BlendWriteData(ResourceScope &scope)
static ArrayData from_uninitialized(const CPPType &type, int64_t domain_size)
static ArrayData from_default_value(const CPPType &type, int64_t domain_size)
ImplicitSharingPtr sharing_info
static ArrayData from_value(const GPointer &value, int64_t domain_size)
static ArrayData from_constructed(const CPPType &type, int64_t domain_size)
static SingleData from_value(const GPointer &value)
static SingleData from_default_value(const CPPType &type)
ImplicitSharingPtr sharing_info