Loading...
Searching...
No Matches
ftmpl_array.h
Go to the documentation of this file.
/* emacs edit mode for this file is -*- C++ -*- */
#ifndef INCL_ARRAY_H
#define INCL_ARRAY_H
#define NOMINMAX
#ifndef NOSTREAMIO
#ifdef HAVE_IOSTREAM
#include <iostream>
#define OSTREAM std::ostream
#elif defined(HAVE_IOSTREAM_H)
#include <iostream.h>
#define OSTREAM ostream
#endif
#endif /* NOSTREAMIO */
template <class T>
class FACTORY_PUBLIC Array {
private:
T * data;
int _min;
int _max;
int _size;
public:
Array();
Array( const Array<T>& );
Array( int size );
Array( int min, int max );
~Array();
Array<T>& operator= ( const Array<T>& );
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 <class T>
OSTREAM& operator<< ( OSTREAM & os, const Array<T> & a );
#endif /* NOSTREAMIO */
#endif /* ! INCL_ARRAY_H */
OSTREAM
#define OSTREAM
Definition canonicalform.h:16
i
int i
Definition cfEzgcd.cc:132
Array
Definition ftmpl_array.h:18
Array< CanonicalForm >::data
CanonicalForm * data
Definition ftmpl_array.h:20
Array< CanonicalForm >::size
int size() const
Array< CanonicalForm >::_min
int _min
Definition ftmpl_array.h:21
Array::Array
Array(int min, int max)
Definition ftmpl_array.cc:41
Array< CanonicalForm >::_max
int _max
Definition ftmpl_array.h:22
Array< CanonicalForm >::max
int max() const
Array< CanonicalForm >::min
int min() const
Array::~Array
~Array()
Definition ftmpl_array.cc:57
Array::print
void print(OSTREAM &) const
Definition ftmpl_array.cc:138
Array< CanonicalForm >::_size
int _size
Definition ftmpl_array.h:23
Array::Array
Array(int size)
Definition ftmpl_array.cc:29
Array::Array
Array()
Definition ftmpl_array.cc:6
Array::Array
Array(const Array< T > &)
Definition ftmpl_array.cc:11
operator<<
OSTREAM & operator<<(OSTREAM &os, const Array< T > &a)
Definition ftmpl_array.cc:151
FACTORY_PUBLIC
#define FACTORY_PUBLIC
Definition globaldefs.h:25
T
STATIC_VAR jList * T
Definition janet.cc:30