Goods.SortedCollection Class
Interface of sorted collection. Sorted collections keeps in members in order specified by comparator. Members in the collections can be located using key or range of keys. The SortedCollection is efficient container of objects for in-memory databases. For databases which size is significatly larger than size of page pool, operation with SortedList can cause trashing and so very bad performance. Unlike other index structures SortedCollection doesn't store values of keys and so search in the collection requires fetching of its members.

Access: Public
Base Classes: Persistent
  Members Description  
    comparator    
    unique    
    root    
    nMembers    
    SortedCollection    
    Length Get number of objects in the collection

 
    Count Get number of objects in the collection

 
    IsSynchronized    
    SyncRoot    
    CopyTo    
    SortedCollection    
    GetComparator Get comparator used in this collection

 
    this Access element by key

 
    this Access elements by key range

 
    Add Add new member to collection

 
    Contains Check if collections contains specified member

 
    Remove Remove member from collection

 
    Clear Remove all objects from the collection

 
    ToArray Get all objects in the index as array ordered by index key.

 
    ToArray Get all objects in the index as array of specified type orderd by index key

 
    TtreeEnumerator    
    GetEnumerator Get iterator for traversing collection members with key belonging to the specified range.

 
    GetEnumerator Get iterator for traversing collection members with key belonging to the specified range.