-
public void change (owned Attribute attr)
Insert the given attribute into the AttrList. It will
replace any attributes of the same type on that segment and be merged with any adjoining attributes that are identical.
-
public AttrList copy ()
Copy list and return an identical new list.
-
public AttrList? filter (AttrFilterFunc func)
Given a AttrList and callback function, removes any
elements of list for which func returns true and inserts them into a new list.
-
public AttrIterator get_iterator ()
Create a iterator initialized to the beginning of the list. list must not be modified until
this iterator is freed.
-
public void insert (owned Attribute attr)
Insert the given attribute into the AttrList. It will be
inserted after all other attributes with a matching start_index.
-
public void insert_before (owned Attribute attr)
Insert the given attribute into the AttrList. It will be
inserted before all other attributes with a matching start_index.
-
public void splice (AttrList other, int pos, int len)
This function opens up a hole in list, fills it in with attributes from the left, and then
merges other on top of the hole.