My Project
Loading...
Searching...
No Matches
ftmpl_array.h
Go to the documentation of this file.
1/* emacs edit mode for this file is -*- C++ -*- */
2
3#ifndef INCL_ARRAY_H
4#define INCL_ARRAY_H
5
6#ifndef NOSTREAMIO
7#ifdef HAVE_IOSTREAM
8#include <iostream>
9#define OSTREAM std::ostream
10#elif defined(HAVE_IOSTREAM_H)
11#include <iostream.h>
12#define OSTREAM ostream
13#endif
14#endif /* NOSTREAMIO */
15
16template <class T>
18private:
20 int _min;
21 int _max;
22 int _size;
23public:
25 Array( const Array<T>& );
26 Array( int size );
27 Array( int min, int max );
29 Array<T>& operator= ( const Array<T>& );
30 T& operator[] ( int i ) const;
31 int size() const;
32 int min() const;
33 int max() const;
34#ifndef NOSTREAMIO
35 void print ( OSTREAM& ) const;
36#endif /* NOSTREAMIO */
37};
38
39#ifndef NOSTREAMIO
40template <class T>
41OSTREAM& operator<< ( OSTREAM & os, const Array<T> & a );
42#endif /* NOSTREAMIO */
43
44#endif /* ! INCL_ARRAY_H */
#define OSTREAM
int i
Definition cfEzgcd.cc:132
CanonicalForm * data
Definition ftmpl_array.h:19
Array(int min, int max)
void print(OSTREAM &) const
Array(int size)
Array(const Array< T > &)
OSTREAM & operator<<(OSTREAM &os, const Array< T > &a)
#define FACTORY_PUBLIC
Definition globaldefs.h:25
STATIC_VAR jList * T
Definition janet.cc:30