File: vcl_complex.h

package info (click to toggle)
insighttoolkit 3.6.0-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 94,956 kB
  • ctags: 74,981
  • sloc: cpp: 355,621; ansic: 195,070; fortran: 28,713; python: 3,802; tcl: 1,996; sh: 1,175; java: 583; makefile: 415; csh: 184; perl: 175
file content (25 lines) | stat: -rw-r--r-- 672 bytes parent folder | download | duplicates (8)
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
#ifndef vcl_gcc_295_complex_h_
#define vcl_gcc_295_complex_h_

// The GCC 2.95.3 complex does not have the value_type typedef,
// so we inherit and provide the typedef. vcl_complex is automatically
// convertable to and from std::complex, so everything else should
// work transparently. -- Amitha Perera

#include <complex.h>

template<class T>
class vcl_complex : public complex<T>
{
public:
  typedef T value_type;
  vcl_complex(T r = 0, T i = 0) : complex<T>(r,i) { }
  vcl_complex( complex<T> const& o ) : complex<T>(o) { }
};

#define vcl_complex vcl_complex

#define vcl_generic_complex_STD std
#include "../generic/vcl_complex.h"

#endif // vcl_gcc_295_complex_h_