Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C++ Class Library Definition - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

          Class SortedArray


     The class SortedArray defines an array in which the objects which
     make up the  array  are  sorted  in ascending order. That is, the
     object at index n is less  than  or  equal to the object at index
     n+1. Note that the  operator  < must be defined for comparing any
     objects in the array.

     The differences between the  class  Array  and  class SortedArray
     are:

        1.  The method for adding an object at a given index, addAt(),
            which is provided by class Array, is not provided in class
            SortedArray.

        2.  Unlike the subscript operator  for  the  class  Array, the
            subscript operator in class SortedArray, operator [], does
            not  return  an  lvalue.  This  restriction  prevents  any
            additions to the array  which  my  disrupt the ordering of
            objects in the array.

     Derived from: AbstractArray

     Public member functions:
        isA
        nameOf
        hashValue
        operator []
        add
        detach
        initIterator         Inherited from AbstractArray
        lowerBound           Inherited from AbstractArray
        upperBound           Inherited from AbstractArray
        arraySize            Inherited from AbstractArray
        isEqual              Inherited from AbstractArray
        destroy              Inherited from Collection.
        hasMember            Inherited from Collection.
        findMember           Inherited from Collection.
        printOn              Inherited from Container.
        isEmpty              Inherited from Container.
        forEach              Inherited from Container.
        firstThat            Inherited from Container.
        lastThat             Inherited from Container.
        printHeader          Inherited from Container.
        printSeparator       Inherited from Container.
        printTrailer         Inherited from Container.
        getItemsInContainer  Inherited from Container.
        isSortable           Inherited from Object.
        isAssociation        Inherited from Object.
        operator new         Inherited from Object.

See Also: sortarry.h

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson