Main Page
Data Structures
Files
File List
Globals
factory
include
factory
templates
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
// #include <factory/factoryconf.h>
7
8
#ifndef NOSTREAMIO
9
#ifdef HAVE_IOSTREAM
10
#include <iostream>
11
#define OSTREAM std::ostream
12
#elif defined(HAVE_IOSTREAM_H)
13
#include <iostream.h>
14
#define OSTREAM ostream
15
#endif
16
#endif
/* NOSTREAMIO */
17
18
template
<
class
T>
19
class
Array
{
20
private
:
21
T
*
data
;
22
int
_min
;
23
int
_max
;
24
int
_size
;
25
public
:
26
Array
();
27
Array
(
const
Array<T>
& );
28
Array
(
int
size
);
29
Array
(
int
min
,
int
max
);
30
~Array
();
31
Array<T>
&
operator=
(
const
Array<T>
& );
32
T
&
operator[]
(
int
i
)
const
;
33
int
size
()
const
;
34
int
min
()
const
;
35
int
max
()
const
;
36
#ifndef NOSTREAMIO
37
void
print
(
OSTREAM
& )
const
;
38
#endif
/* NOSTREAMIO */
39
};
40
41
#ifndef NOSTREAMIO
42
template
<
class
T>
43
OSTREAM
& operator<< ( OSTREAM & os, const Array<T> &
a
);
44
#endif
/* NOSTREAMIO */
45
46
#endif
/* ! INCL_ARRAY_H */
a
const poly a
Definition:
syzextra.cc:212
OSTREAM
#define OSTREAM
Definition:
ftmpl_array.h:11
Array::print
void print(OSTREAM &) const
Definition:
ftmpl_array.cc:138
Array::size
int size() const
Definition:
ftmpl_array.cc:92
Array::data
T * data
Definition:
ftmpl_array.h:21
Array::operator[]
T & operator[](int i) const
Definition:
ftmpl_array.cc:85
Array::operator=
Array< T > & operator=(const Array< T > &)
Definition:
ftmpl_array.cc:63
Array::Array
Array()
Definition:
ftmpl_array.cc:6
i
int i
Definition:
cfEzgcd.cc:123
Array::_size
int _size
Definition:
ftmpl_array.h:24
Array
Definition:
ftmpl_array.h:19
Array::min
int min() const
Definition:
ftmpl_array.cc:98
Array::max
int max() const
Definition:
ftmpl_array.cc:104
Array::~Array
~Array()
Definition:
ftmpl_array.cc:57
Array::_max
int _max
Definition:
ftmpl_array.h:23
T
static jList * T
Definition:
janet.cc:37
Array::_min
int _min
Definition:
ftmpl_array.h:22
Generated on Tue Mar 1 2016 13:33:18 by
doxygen 1.8.11
for
Singular debian-4.0.3+ds-1kord