ConcurrentList
Object Hierarchy:
Gee.ConcurrentList
Gee.ConcurrentList
Gee.ConcurrentList
Gee.AbstractList
Gee.AbstractList
Gee.AbstractList->Gee.ConcurrentList
Gee.AbstractCollection
Gee.AbstractCollection
Gee.AbstractCollection->Gee.AbstractList
GLib.Object
GLib.Object
GLib.Object->Gee.AbstractCollection
Gee.Traversable
Gee.Traversable
Gee.Traversable->Gee.AbstractCollection
Gee.Iterable
Gee.Iterable
Gee.Iterable->Gee.AbstractCollection
Gee.Collection
Gee.Collection
Gee.Collection->Gee.AbstractCollection
Gee.List
Gee.List
Gee.List->Gee.AbstractList
Description:
public class ConcurrentList <
G > :
AbstractList <
G >
A single-linked list. This implementation is based on Mikhail
Fomitchev and Eric Ruppert paper .
Many threads are allowed to operate on the same structure as well as modification of structure during iteration is allowed. However the change
may not be immediately visible to other threads.
Content:
Properties:
Creation methods:
Methods:
public override G @get (int index)
public override void @set (int index, G item)
public override bool add (G item)
Adds an item to this collection. Must not be called on read-only
collections.
public override void clear ()
Removes all items from this collection. Must not be called on read-only
collections.
public override bool contains (G item)
Determines whether this collection contains the specified item.
public override int index_of (G item)
public override void insert (int index, G item)
public override Iterator <G > iterator ()
Returns a Iterator
that can be used for simple iteration over a collection.
public override ListIterator <G > list_iterator ()
public override bool remove (G item)
Removes the first occurrence of an item from this collection. Must not be
called on read-only collections.
public override G remove_at (int index)
public override List <G >? slice (int start, int end)
Inherited Members:
All known members inherited from class Gee.AbstractList
All known members inherited from class Gee.AbstractCollection
All known members inherited from class GLib.Object
All known members inherited from interface Gee.List
All known members inherited from interface Gee.Traversable
All known members inherited from interface Gee.Iterable
All known members inherited from interface Gee.Collection