My Project
Loading...
Searching...
No Matches
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
#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
16
template
<
class
T>
17
class
FACTORY_PUBLIC
Array
{
18
private
:
19
T
*
data
;
20
int
_min
;
21
int
_max
;
22
int
_size
;
23
public
:
24
Array
();
25
Array
(
const
Array<T>
& );
26
Array
(
int
size
);
27
Array
(
int
min
,
int
max
);
28
~Array
();
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
40
template
<
class
T>
41
OSTREAM
&
operator<<
(
OSTREAM
& os,
const
Array<T>
& a );
42
#endif
/* NOSTREAMIO */
43
44
#endif
/* ! INCL_ARRAY_H */
size
int size(const CanonicalForm &f, const Variable &v)
int size ( const CanonicalForm & f, const Variable & v )
Definition:
cf_ops.cc:600
OSTREAM
#define OSTREAM
Definition:
canonicalform.h:16
i
int i
Definition:
cfEzgcd.cc:132
Array
Definition:
ftmpl_array.h:17
Array::data
T * data
Definition:
ftmpl_array.h:19
Array::_min
int _min
Definition:
ftmpl_array.h:20
Array::_max
int _max
Definition:
ftmpl_array.h:21
Array::_size
int _size
Definition:
ftmpl_array.h:22
min
static int min(int a, int b)
Definition:
fast_mult.cc:268
max
static int max(int a, int b)
Definition:
fast_mult.cc:264
OSTREAM
#define OSTREAM
Definition:
ftmpl_array.h:9
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
Generated on Mon Feb 27 2023 10:53:48 for My Project by
doxygen 1.9.5
for
Singular