home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / yacl-012.zip / base / intseq.h < prev    next >
C/C++ Source or Header  |  1995-04-08  |  2KB  |  67 lines

  1.  
  2.  
  3. #ifndef _intseq_h_ /* Tue Nov 23 09:38:24 1993 */
  4. #define _intseq_h_
  5.  
  6.  
  7.  
  8.  
  9.  
  10. /*
  11.  *
  12.  *          Copyright (C) 1994, M. A. Sridhar
  13.  *  
  14.  *
  15.  *     This software is Copyright M. A. Sridhar, 1994. You are free
  16.  *     to copy, modify or distribute this software  as you see fit,
  17.  *     and to use  it  for  any  purpose, provided   this copyright
  18.  *     notice and the following   disclaimer are included  with all
  19.  *     copies.
  20.  *
  21.  *                        DISCLAIMER
  22.  *
  23.  *     The author makes no warranties, either expressed or implied,
  24.  *     with respect  to  this  software, its  quality, performance,
  25.  *     merchantability, or fitness for any particular purpose. This
  26.  *     software is distributed  AS IS.  The  user of this  software
  27.  *     assumes all risks  as to its quality  and performance. In no
  28.  *     event shall the author be liable for any direct, indirect or
  29.  *     consequential damages, even if the  author has been  advised
  30.  *     as to the possibility of such damages.
  31.  *
  32.  */
  33.  
  34.  
  35.  
  36.  
  37. #ifdef __GNUC__
  38. #pragma interface
  39. #endif
  40.  
  41.  
  42. #include "base/sequence.h"
  43.  
  44. class CL_EXPORT CL_IntegerSequence: public CL_Sequence<long>  {
  45.  
  46. public:
  47.     CL_IntegerSequence (long initial_size = 0);
  48.  
  49.     CL_IntegerSequence (long data[], long count);
  50.     // Create ourselves from a C-style array of long values.
  51.     
  52.     CL_IntegerSequence (const CL_Sequence<long>& s);
  53.     // Copy constructor.
  54.  
  55.     const char* ClassName () const {return "CL_IntegerSequence";};
  56.  
  57.     CL_ClassId ClassId () const { return _CL_IntegerSequence_CLASSID; };
  58.  
  59.     CL_Object* Clone () const {return new CL_IntegerSequence (*this);};
  60.     
  61. };
  62.  
  63.  
  64.  
  65.  
  66. #endif /* _intseq_h_ */
  67.