Lines Matching defs:Attribute

19 compare_attributes(const Attribute* a, const Attribute* b)
36 return compare_attributes(*(const Attribute**)_a, *(const Attribute**)_b);
58 Attribute::Attribute(const char* name, const attr_info& info,
78 Attribute::~Attribute()
84 Attribute::CreateAttribute(const char* name, const attr_info& info,
85 const void* data, Attribute** attribute)
92 int32 size = sizeof(Attribute) + nameLen;
100 *attribute = new(buffer) Attribute(name, info, data);
106 Attribute::DeleteAttribute(Attribute* attribute)
109 attribute->~Attribute();
116 Attribute::GetName() const
123 Attribute::GetInfo(attr_info* info) const
133 Attribute::GetType() const
140 Attribute::GetSize() const
147 Attribute::GetData() const
177 Attribute** attributes = NULL;
182 ArrayDeleter<Attribute*> _(attributes);
207 Attribute** oldAttributes = new(std::nothrow) Attribute*[oldCount];
210 ArrayDeleter<Attribute*> _(oldAttributes);
213 Attribute** newAttributes = NULL;
218 ArrayDeleter<Attribute*> _2(newAttributes);
248 Attribute* attribute = fAttributes.GetFirst();
258 Attribute* oldAttr = (oldCount > 0 ? oldAttributes[oldIndex] : NULL);
259 Attribute* newAttr = (newCount > 0 ? newAttributes[newIndex] : NULL);
289 Attribute::DeleteAttribute(oldAttributes[i]);
329 while (Attribute* attribute = GetFirstAttribute())
342 Attribute* attribute;
343 status_t error = Attribute::CreateAttribute(name, info, data, &attribute);
360 for (SLList<Attribute>::Iterator it = fAttributes.GetIterator();
362 Attribute* attribute = it.Next();
365 Attribute::DeleteAttribute(attribute);
375 ShareAttrDir::RemoveAttribute(Attribute* attribute)
381 Attribute::DeleteAttribute(attribute);
385 Attribute*
391 for (SLList<Attribute>::ConstIterator it = fAttributes.GetIterator();
393 Attribute* attribute = it.Next();
402 Attribute*
409 Attribute*
410 ShareAttrDir::GetNextAttribute(Attribute* attribute) const
418 Attribute**& _attributes, int32& _count)
427 Attribute** attributes = NULL;
429 attributes = new(std::nothrow) Attribute*[count];
432 memset(attributes, 0, sizeof(Attribute*) * count);
443 error = Attribute::CreateAttribute(attrInfo.name.GetString(),
452 if (Attribute* attribute = attributes[i])
453 Attribute::DeleteAttribute(attribute);
462 qsort(attributes, count, sizeof(Attribute*), compare_attributes);