/* emacs edit mode for this file is -*- C++ -*- */ #ifndef INCL_ARRAY_H #define INCL_ARRAY_H // #include #ifndef NOSTREAMIO #ifdef HAVE_IOSTREAM #include #define OSTREAM std::ostream #elif defined(HAVE_IOSTREAM_H) #include #define OSTREAM ostream #endif #endif /* NOSTREAMIO */ template class Array { private: T * data; int _min; int _max; int _size; public: Array(); Array( const Array& ); Array( int size ); Array( int min, int max ); ~Array(); Array& operator= ( const Array& ); T& operator[] ( int i ) const; int size() const; int min() const; int max() const; #ifndef NOSTREAMIO void print ( OSTREAM& ) const; #endif /* NOSTREAMIO */ }; #ifndef NOSTREAMIO template OSTREAM& operator<< ( OSTREAM & os, const Array & a ); #endif /* NOSTREAMIO */ #endif /* ! INCL_ARRAY_H */