binarray.cc 1.87 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*! \file binarray.cc
 * \brief explicit array template instantiation for standard template parameters (implementation)
 * 
 * ----------------------------------------------------------------------------
 * 
 * $Id: binarray.cc,v 1.1 2002-12-10 19:30:27 forbrig Exp $
 * \author Thomas Forbriger
 * \date 01/05/2002
 * 
 * explicit array template instantiation for standard template parameters
 * (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 \
  "$Id: binarray.cc,v 1.1 2002-12-10 19:30:27 forbrig Exp $"

#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 ----- */