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#define NOMINMAX
7#ifndef NOSTREAMIO
8#ifdef HAVE_IOSTREAM
9#include <iostream>
10#define OSTREAM std::ostream
11#elif defined(HAVE_IOSTREAM_H)
12#include <iostream.h>
13#define OSTREAM ostream
14#endif
15#endif /* NOSTREAMIO */
16
17template <class T>
19private:
21 int _min;
22 int _max;
23 int _size;
24public:
26 Array( const Array<T>& );
27 Array( int size );
28 Array( int min, int max );
30 Array<T>& operator= ( const Array<T>& );
31 T& operator[] ( int i ) const;
32 int size() const;
33 int min() const;
34 int max() const;
35#ifndef NOSTREAMIO
36 void print ( OSTREAM& ) const;
37#endif /* NOSTREAMIO */
38};
39
40#ifndef NOSTREAMIO
41template <class T>
42OSTREAM& operator<< ( OSTREAM & os, const Array<T> & a );
43#endif /* NOSTREAMIO */
44
45#endif /* ! INCL_ARRAY_H */
#define OSTREAM
int i
Definition cfEzgcd.cc:132
CanonicalForm * data
Definition ftmpl_array.h:20
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