Skip to content

Commit 529a139

Browse files
committed
Merge branch 'master' into issues_AD
2 parents f19d711 + c300386 commit 529a139

File tree

21 files changed

+494
-355
lines changed

21 files changed

+494
-355
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ For documentation, please see: http://sciinstitute.github.io/SCIRun/
3737
- Apple clang 5.1
3838
- Qt 4.8
3939
+ Download from http://releases.qt-project.org/qt4/source/qt-mac-opensource-4.8.4.dmg.
40+
+ The above dmg will not work if using OS X 10.11. In this case Qt 4.8 can be acquired through macports using the command 'sudo port install qt4-mac' - more on macports here: https://www.macports.org/install.php
4041
* Windows (tested on Windows 7, 8)
4142
- Visual Studio 2013
4243
- Qt 4.8

src/Core/Datatypes/Legacy/Base/Datatype.cc

Lines changed: 0 additions & 96 deletions
This file was deleted.

src/Core/Datatypes/Legacy/Base/Datatype.h

Lines changed: 0 additions & 103 deletions
This file was deleted.

src/Core/Datatypes/Legacy/Base/TypeName.h

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Copyright (c) 2015 Scientific Computing and Imaging Institute,
77
University of Utah.
88
9-
9+
1010
Permission is hereby granted, free of charge, to any person obtaining a
1111
copy of this software and associated documentation files (the "Software"),
1212
to deal in the Software without restriction, including without limitation
@@ -29,9 +29,9 @@
2929

3030
/*
3131
*@file TypeName.h
32-
*@brief template to return name of argument type;
32+
*@brief template to return name of argument type;
3333
* used in PIO of templatized types
34-
*
34+
*
3535
*@author
3636
* Alexei Samsonov
3737
* Department of Computer Science
@@ -66,26 +66,26 @@ class TypeNameGenerator
6666
return o.str();
6767
}
6868

69-
static std::string make_template_id(const std::string& templateName,
70-
const std::string& templateParam1,
69+
static std::string make_template_id(const std::string& templateName,
70+
const std::string& templateParam1,
7171
const std::string& templateParam2)
7272
{
7373
std::ostringstream o;
74-
o << templateName << leftAngleBracket
75-
<< templateParam1 << comma
74+
o << templateName << leftAngleBracket
75+
<< templateParam1 << comma
7676
<< templateParam2 << rightAngleBracket;
7777
return o.str();
7878
}
7979

80-
static std::string make_template_id(const std::string& templateName,
81-
const std::string& templateParam1,
80+
static std::string make_template_id(const std::string& templateName,
81+
const std::string& templateParam1,
8282
const std::string& templateParam2,
8383
const std::string& templateParam3)
8484
{
8585
std::ostringstream o;
86-
o << templateName << leftAngleBracket
87-
<< templateParam1 << comma
88-
<< templateParam2 << comma
86+
o << templateName << leftAngleBracket
87+
<< templateParam1 << comma
88+
<< templateParam2 << comma
8989
<< templateParam3 << rightAngleBracket;
9090
return o.str();
9191
}
@@ -110,9 +110,11 @@ template<class T, class S> std::string find_type_name( std::pair<T,S> *);
110110
class IntVector;
111111
class NrrdData;
112112

113+
using Complex = std::complex<double>;
114+
113115
template<> SCISHARE std::string find_type_name(float*);
114116
template<> SCISHARE std::string find_type_name(double*);
115-
template<> SCISHARE std::string find_type_name(std::complex<double>*);
117+
template<> SCISHARE std::string find_type_name(Complex*);
116118
template<> SCISHARE std::string find_type_name(long double*);
117119
template<> SCISHARE std::string find_type_name(short*);
118120
template<> SCISHARE std::string find_type_name(unsigned short*);
@@ -139,7 +141,7 @@ template<> SCISHARE std::string find_type_name(LockingHandle<String> *);
139141
#endif
140142

141143
//////////
142-
// Function overloading for templates
144+
// Function overloading for templates
143145
template<class T> class Array1;
144146
template<class T> class Array2;
145147

0 commit comments

Comments
 (0)