binarray.cc 2.58 KB
Newer Older
1
2
3
4
5
/*! \file binarray.cc
 * \brief explicit array template instantiation for standard template parameters (implementation)
 * 
 * ----------------------------------------------------------------------------
 * 
thomas.forbriger's avatar
thomas.forbriger committed
6
 * $Id: binarray.cc,v 1.2 2006-03-28 16:03:10 tforb Exp $
7
8
9
10
 * \author Thomas Forbriger
 * \date 01/05/2002
 * 
 * explicit array template instantiation for standard template parameters
thomas.forbriger's avatar
thomas.forbriger committed
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 *
 * ----
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version. 
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 * ----
 *
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 * (implementation)
 *
 * We have to compile into separate object files. Up to now the linker is not
 * able to extract only those classes that re definitely used by our code.
 * This is only possible if every class is compiled into a different object
 * file. To accomplish multiple object files from only one source file, we
 * pass template parameters through preprocessor macros.
 * 
 * Copyright (c) 2002 by Thomas Forbriger (IMG Frankfurt) 
 * 
 * REVISIONS and CHANGES 
 *  - 01/05/2002   V1.0   Thomas Forbriger
 *  - 22/11/2002   V1.1   shifted to Strided being default shape
 * 
 * ============================================================================
 */
#define TF_BINARRAY_CC_VERSION \
  "TF_BINARRAY_CC   V1.1   "
#define TF_BINARRAY_CC_CVSID \
thomas.forbriger's avatar
thomas.forbriger committed
47
  "$Id: binarray.cc,v 1.2 2006-03-28 16:03:10 tforb Exp $"
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77

#include<complex>

// we are compiling the binary library
#define TF_COMPILING_LIBRARY

#include <contxx/binarray.h>
#include <contxx/shape/densestrided.h>
#include <contxx/shape/densestrided_repr.h>

#ifndef BIN_TYPE
#error "macro BIN_TYPE (template parameter) not defined!"
#endif

#ifndef BIN_N
#error "macro BIN_N (template parameter) not defined!"
#endif

#ifndef BIN_REPR
#error "macro BIN_REPR (template parameter) not defined!"
#endif

#ifndef BIN_SUBS
#error "macro BIN_SUBS (template parameter) not defined!"
#endif
  
// explicit instatiations for common types:
template class contxx::prebuilt::Array<BIN_TYPE, BIN_N, BIN_REPR, BIN_SUBS>;

/* ----- END OF binarray.cc ----- */