Lines Matching refs:attribute

42 	  // attribute management
67 while (Attribute *attribute = fAttributes.First()) {
68 status_t error = DeleteAttribute(attribute);
70 FATAL(("Node::~Node(): Failed to delete attribute!\n"));
182 // create attribute
183 Attribute *attribute = new(nothrow) Attribute(fVolume, NULL, name);
184 if (attribute) {
185 error = attribute->InitCheck();
187 // add attribute to node
188 error = AddAttribute(attribute);
190 *_attribute = attribute;
193 delete attribute;
202 Node::DeleteAttribute(Attribute *attribute)
204 status_t error = RemoveAttribute(attribute);
206 delete attribute;
212 Node::AddAttribute(Attribute *attribute)
214 status_t error = (attribute && !attribute->GetNode() ? B_OK : B_BAD_VALUE);
216 error = GetVolume()->NodeAttributeAdded(GetID(), attribute);
218 fAttributes.Insert(attribute);
219 attribute->SetNode(this);
228 Node::RemoveAttribute(Attribute *attribute)
230 status_t error = (attribute && attribute->GetNode() == this
233 // move all iterators pointing to the attribute to the next attribute
236 Attribute *nextAttr = fAttributes.GetNext(attribute);
238 = attribute->GetAttributeIteratorList();
245 // them, if there is no next attribute.
255 // remove the attribute
257 error = GetVolume()->NodeAttributeRemoved(GetID(), attribute);
259 fAttributes.Remove(attribute);
260 attribute->SetNode(NULL);
275 Attribute *attribute = NULL;
276 while (GetNextAttribute(&attribute) == B_OK) {
277 if (!strcmp(attribute->GetName(), name)) {
278 *_attribute = attribute;
291 Node::GetPreviousAttribute(Attribute **attribute) const
293 status_t error = (attribute ? B_OK : B_BAD_VALUE);
295 if (!*attribute)
296 *attribute = fAttributes.Last();
297 else if ((*attribute)->GetNode() == this)
298 *attribute = fAttributes.GetPrevious(*attribute);
301 if (error == B_OK && !*attribute)
309 Node::GetNextAttribute(Attribute **attribute) const
311 status_t error = (attribute ? B_OK : B_BAD_VALUE);
313 if (!*attribute)
314 *attribute = fAttributes.First();
315 else if ((*attribute)->GetNode() == this)
316 *attribute = fAttributes.GetNext(*attribute);
319 if (error == B_OK && !*attribute)
357 Attribute *attribute = NULL;
358 while (GetNextAttribute(&attribute) == B_OK)
359 attribute->GetAllocationInfo(info);