Lines Matching defs:attribute

45 	  // attribute management
72 while (Attribute *attribute = fAttributes.First()) {
73 status_t error = DeleteAttribute(attribute);
75 FATAL("Node::~Node(): Failed to delete attribute!\n");
188 // create attribute
189 Attribute *attribute = new(nothrow) Attribute(fVolume, NULL, name);
190 if (attribute) {
191 error = attribute->InitCheck();
193 // add attribute to node
194 error = AddAttribute(attribute);
196 *_attribute = attribute;
199 delete attribute;
208 Node::DeleteAttribute(Attribute *attribute)
210 status_t error = RemoveAttribute(attribute);
212 delete attribute;
218 Node::AddAttribute(Attribute *attribute)
220 status_t error = (attribute && !attribute->GetNode() ? B_OK : B_BAD_VALUE);
222 error = GetVolume()->NodeAttributeAdded(GetID(), attribute);
224 fAttributes.Insert(attribute);
225 attribute->SetNode(this);
234 Node::RemoveAttribute(Attribute *attribute)
236 status_t error = (attribute && attribute->GetNode() == this
239 // move all iterators pointing to the attribute to the next attribute
242 Attribute *nextAttr = fAttributes.GetNext(attribute);
244 = attribute->GetAttributeIteratorList();
251 // them, if there is no next attribute.
261 // remove the attribute
263 error = GetVolume()->NodeAttributeRemoved(GetID(), attribute);
265 fAttributes.Remove(attribute);
266 attribute->SetNode(NULL);
280 Attribute *attribute = NULL;
281 while (GetNextAttribute(&attribute) == B_OK) {
282 if (!strcmp(attribute->GetName(), name)) {
283 *_attribute = attribute;
294 Node::GetPreviousAttribute(Attribute **attribute) const
296 status_t error = (attribute ? B_OK : B_BAD_VALUE);
298 if (!*attribute)
299 *attribute = fAttributes.Last();
300 else if ((*attribute)->GetNode() == this)
301 *attribute = fAttributes.GetPrevious(*attribute);
304 if (error == B_OK && !*attribute)
312 Node::GetNextAttribute(Attribute **attribute) const
314 status_t error = (attribute ? B_OK : B_BAD_VALUE);
316 if (!*attribute)
317 *attribute = fAttributes.First();
318 else if ((*attribute)->GetNode() == this)
319 *attribute = fAttributes.GetNext(*attribute);
322 if (error == B_OK && !*attribute)
360 Attribute *attribute = NULL;
361 while (GetNextAttribute(&attribute) == B_OK)
362 attribute->GetAllocationInfo(info);