home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / OTHERUTI / TCPP30-1.ZIP / CLASSINC.ZIP / ARRAY.H < prev    next >
C/C++ Source or Header  |  1992-02-18  |  2KB  |  83 lines

  1. /*------------------------------------------------------------------------*/
  2. /*                                                                        */
  3. /*  ARRAY.H                                                               */
  4. /*                                                                        */
  5. /*  Copyright Borland International 1991                                  */
  6. /*  All Rights Reserved                                                   */
  7. /*                                                                        */
  8. /*------------------------------------------------------------------------*/
  9.  
  10. #if !defined( __ARRAY_H )
  11. #define __ARRAY_H
  12.  
  13. #if defined( TEMPLATES )
  14.  
  15.     #if !defined( __ARRAYS_H )
  16.     #include <Arrays.h>
  17.     #endif  // __ARRAYS_H
  18.  
  19.     #define Array   BI_TCArrayAsVector
  20.     #define PArray  PBI_TCArrayAsVector
  21.     #define RArray  RBI_TCArrayAsVector
  22.     #define RPArray RPBI_TCArrayAsVector
  23.     #define PCArray PCBI_TCArrayAsVector
  24.     #define RCArray RCBI_TCArrayAsVector
  25.  
  26.     _CLASSDEF( BI_TCArrayAsVector )
  27.  
  28.     #define ArrayIterator   BI_TCArrayAsVectorIterator
  29.     #define PArrayIterator  PBI_TCArrayAsVectorIterator
  30.     #define RArrayIterator  RBI_TCArrayAsVectorIterator
  31.     #define RPArrayIterator RPBI_TCArrayAsVectorIterator
  32.     #define PCArrayIterator PCBI_TCArrayAsVectorIterator
  33.     #define RCArrayIterator RCBI_TCArrayAsVectorIterator
  34.  
  35.     _CLASSDEF( BI_TCArrayAsVectorIterator )
  36.  
  37. #else   // TEMPLATES
  38.  
  39.     #if !defined( __CLSTYPES_H )
  40.     #include <ClsTypes.h>
  41.     #endif  // __CLSTYPES_H
  42.  
  43.     #if !defined( __OBJECT_H )
  44.     #include <Object.h>
  45.     #endif  // __OBJECT_H
  46.  
  47.     #if !defined( __ABSTARRY_H )
  48.     #include <AbstArry.h>
  49.     #endif  // __ABSTARRY_H
  50.  
  51.     _CLASSDEF(Array)
  52.  
  53.     class _CLASSTYPE Array : public AbstractArray
  54.  
  55.     {
  56.  
  57.     public:
  58.  
  59.         Array( int upper, int lower = 0, sizeType aDelta = 0 ) :
  60.             AbstractArray( upper, lower, aDelta )
  61.             {
  62.             }
  63.  
  64.         virtual void add( Object _FAR & );
  65.         void addAt( Object _FAR &, int );
  66.  
  67.         virtual classType isA() const
  68.             {
  69.             return arrayClass;
  70.             }
  71.  
  72.         virtual char _FAR *nameOf() const
  73.             {
  74.             return "Array";
  75.             }
  76.  
  77.     };
  78.  
  79. #endif  // TEMPLATES
  80.  
  81. #endif  // __ARRAY_H
  82.  
  83.