diff options
-rw-r--r-- | src/jtutil/array.cc | 16 | ||||
-rw-r--r-- | src/jtutil/fuzzy.cc | 8 | ||||
-rw-r--r-- | src/jtutil/linear_map.cc | 8 | ||||
-rw-r--r-- | src/jtutil/round.cc | 10 |
4 files changed, 20 insertions, 22 deletions
diff --git a/src/jtutil/array.cc b/src/jtutil/array.cc index b3355d7..1936bb8 100644 --- a/src/jtutil/array.cc +++ b/src/jtutil/array.cc @@ -13,7 +13,7 @@ // array4d::array4d - 4D array template constructor // array4d::~array4d - 4D array template destructor // -// ***** template instantiations: array[12]d<int>, array[123]d<{float,double}> +// ***** template instantiations ***** // #include <assert.h> @@ -24,8 +24,6 @@ //****************************************************************************** //****************************************************************************** -// array1d - 1D array template -//****************************************************************************** //****************************************************************************** // @@ -60,8 +58,6 @@ if (we_own_array_) //****************************************************************************** //****************************************************************************** -// array2d - 2D array template -//****************************************************************************** //****************************************************************************** // @@ -104,8 +100,6 @@ if (we_own_array_) //****************************************************************************** //****************************************************************************** -// array3d - 3D array template -//****************************************************************************** //****************************************************************************** // @@ -151,8 +145,6 @@ if (we_own_array_) //****************************************************************************** //****************************************************************************** -// array4d - 4D array template -//****************************************************************************** //****************************************************************************** // @@ -201,10 +193,12 @@ if (we_own_array_) //****************************************************************************** //****************************************************************************** -//***** template instantiations: array[12]d<int>, array[123]d<{float,double}> -//****************************************************************************** //****************************************************************************** +// +// ***** template instantiations ***** +// + template class array1d<int>; template class array2d<int>; diff --git a/src/jtutil/fuzzy.cc b/src/jtutil/fuzzy.cc index 113724d..98b71ab 100644 --- a/src/jtutil/fuzzy.cc +++ b/src/jtutil/fuzzy.cc @@ -7,7 +7,7 @@ // fuzzy::floor // fuzzy::ceiling // -// *** instantiations of fuzzy template for <float> and <double> +// ***** template instantiations ***** // #include "jt/stdc.h" @@ -55,10 +55,12 @@ return fuzzy<fpt>::is_integer(x) //****************************************************************************** //****************************************************************************** -// *** instantiations of fuzzy template for <float> and <double> -//****************************************************************************** //****************************************************************************** +// +// ***** template instantiations ***** +// + // instantiation for <float> template class fuzzy<float>; float fuzzy<float>::tolerance = 1.0e-5; // about 100 * FLT_EPSILON diff --git a/src/jtutil/linear_map.cc b/src/jtutil/linear_map.cc index 8a2e832..b3b6e60 100644 --- a/src/jtutil/linear_map.cc +++ b/src/jtutil/linear_map.cc @@ -7,7 +7,7 @@ // linear_map::int_of_fp - convert fpt --> int, check for being fuzzily integral // linear_map::delta_int_of_delta_fp - ... same for spacings (delta_* values) // -// *** instantiation of linear_map template for <double> +// ***** template instantiation ***** // #include <assert.h> @@ -253,8 +253,10 @@ return 0; // dummy return to quiet gcc //****************************************************************************** //****************************************************************************** -// *** instantiation of linear_map template for <double> -//****************************************************************************** //****************************************************************************** +// +// ***** template instantiation ***** +// + template class linear_map<double>; diff --git a/src/jtutil/round.cc b/src/jtutil/round.cc index 49f5e8d..1e20af9 100644 --- a/src/jtutil/round.cc +++ b/src/jtutil/round.cc @@ -6,7 +6,7 @@ // round::floor // round::ceiling // -// *** instantiations of round template for <float> and <double> +// ***** template instantiations ***** // #include "jt/stdc.h" @@ -14,8 +14,6 @@ //****************************************************************************** //****************************************************************************** -// round.hh -- template for rounding floating point values -//****************************************************************************** //****************************************************************************** // @@ -59,10 +57,12 @@ return (x >= 0.0) //****************************************************************************** //****************************************************************************** -// *** instantiations of round template for <float> and <double> -//****************************************************************************** //****************************************************************************** +// +// ***** template instantiations ***** +// + // instantiation for <float> template class round<float>; |