This is Array.h in view mode; [Download] [Up]
// // Programmer: Craig Stuart Sapp <craig@ccrma.stanford.edu> // Creation Date: Wed Feb 5 19:42:53 PST 1997 // Last Modified: Sun May 11 20:33:13 GMT-0800 1997 // Filename: .../sig/src/Array/Array.h // Syntax: C++ // $Smake: cc -Wall -g -c %b.cc -I../../include && rm -f %b.o // #ifndef _ARRAY_H_INCLUDED #define _ARRAY_H_INCLUDED #include "Collection.h" template<class type> class Array : public Collection<type> { public: Array (void); Array (int arraySize); Array (Array<type>& aArray); Array (int arraySize, type *anArray); ~Array (); type sum (void); void zero (int minIndex = -1, int maxIndex = -1); Array<type>& operator= (const Array<type>& aArray); Array<type>& operator+= (const Array<type>& aArray); Array<type>& operator-= (const Array<type>& aArray); Array<type>& operator*= (const Array<type>& aArray); Array<type>& operator/= (const Array<type>& aArray); Array<type> operator+ (const Array<type>& aArray) const; Array<type> operator+ (type aNumber) const; Array<type> operator- (const Array<type>& aArray) const; Array<type> operator- (void) const; Array<type> operator- (type aNumber) const; Array<type> operator* (const Array<type>& aArray) const; Array<type> operator* (type aNumber) const; Array<type> operator/ (const Array<type>& aArray) const; }; #ifdef VISUAL #include "Array.cpp" #else #include "Array.cc" /* necessary for template for Unix compiler */ #endif VISUAL #endif _ARRAY_H_INCLUDED
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.