Changeset 1500
- Timestamp:
- Sep 15, 2008, 8:47:37 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r1497 r1500 228 228 AC_MSG_RESULT($has_infinity)]) 229 229 230 AC_MSG_CHECKING([g++ deprecation attribute]) 231 AC_TRY_COMPILE([void f() __attribute__ ((deprecated));], [], 232 AC_DEFINE([YAT_HAVE_GCC_DEPRECATED], [1], 233 [Define if compiler supports deprecated attribute, as in g++ 4.0]) 234 AC_MSG_RESULT([yes]), 235 AC_MSG_RESULT([no]) ) 236 230 237 231 238 # yat specific settings … … 262 269 AC_CONFIG_FILES([build_support/yat-config], 263 270 [chmod +x build_support/yat-config]) 271 272 AC_CONFIG_HEADER([yat/utility/config_public.h]) 264 273 265 274 # warning about missing doxygen -
trunk/doc/build_tool.doxygen
r1487 r1500 107 107 \endverbatim 108 108 109 \section Deprecated Functions 110 109 111 */ 110 112 -
trunk/test/statistics_test.cc
r1487 r1500 67 67 if (m!=4.5 || m!=m_gsl) 68 68 suite.add(false); 69 statistics::percentile (data.begin(), data.end(), 100);69 statistics::percentile2(data.begin(), data.end(), 100); 70 70 data.resize(1); 71 71 statistics::median(data.begin(), data.end()); -
trunk/test/utility_test.cc
r1492 r1500 60 60 // test float/double 61 61 std::string s("1.2"); 62 if (!utility::is _double(s)){63 suite.add(false); 64 } 65 else if (!utility::is _float(s)) {66 suite.add(false); 67 } 68 else if (utility::is _int(s)) {62 if (!utility::is<double>(s)){ 63 suite.add(false); 64 } 65 else if (!utility::is<float>(s)) { 66 suite.add(false); 67 } 68 else if (utility::is<int>(s)) { 69 69 suite.add(false); 70 70 } … … 75 75 // test int 76 76 s="23"; 77 if (!utility::is _double(s)){78 suite.add(false); 79 } 80 else if (!utility::is _float(s)) {81 suite.add(false); 82 } 83 else if (!utility::is _int(s)) {77 if (!utility::is<double>(s)){ 78 suite.add(false); 79 } 80 else if (!utility::is<float>(s)) { 81 suite.add(false); 82 } 83 else if (!utility::is<int>(s)) { 84 84 suite.add(false); 85 85 } … … 90 90 // test nan 91 91 s=" nAn "; 92 if (!utility::is _double(s)){92 if (!utility::is<double>(s)){ 93 93 suite.add(false); 94 94 suite.err() << "error: " << s << " is a double\n"; … … 112 112 // testing trailing values 113 113 s=" 23 23 "; 114 if (utility::is _double(s)){115 suite.add(false); 116 } 117 else if (utility::is _float(s)) {118 suite.add(false); 119 } 120 else if (utility::is _int(s)) {114 if (utility::is<double>(s)){ 115 suite.add(false); 116 } 117 else if (utility::is<float>(s)) { 118 suite.add(false); 119 } 120 else if (utility::is<int>(s)) { 121 121 suite.add(false); 122 122 } -
trunk/yat/classifier/Target.h
r1487 r1500 26 26 */ 27 27 28 #include "yat/utility/deprecate.h" 28 29 #include "yat/utility/Exception.h" 29 30 … … 161 162 /// API. Use operator(). 162 163 /// 163 size_t operator[](size_t sample) const ;164 size_t operator[](size_t sample) const YAT_DEPRECATE; 164 165 165 166 /// -
trunk/yat/statistics/utility.h
r1487 r1500 31 31 #include "yat/classifier/DataLookupWeighted1D.h" 32 32 #include "yat/classifier/Target.h" 33 #include "yat/utility/deprecate.h" 33 34 #include "yat/utility/VectorBase.h" 34 35 #include "yat/utility/yat_assert.h" … … 56 57 */ 57 58 template <class T> 58 double percentile(T first, T last, double p, bool sorted=false) ;59 double percentile(T first, T last, double p, bool sorted=false) YAT_DEPRECATE; 59 60 60 61 /** -
trunk/yat/utility/Makefile.am
r1494 r1500 37 37 Alignment.h ColumnStream.h CommandLine.h \ 38 38 Container2DIterator.h DataIterator.h DataWeight.h \ 39 Exception.h FileUtil.h Index.h \39 deprecate.h Exception.h FileUtil.h Index.h \ 40 40 IteratorPolicy.h iterator_traits.h \ 41 41 kNNI.h Matrix.h MatrixWeighted.h NNI.h \ … … 47 47 WeightIterator.h WeNNI.h yat_assert.h 48 48 49 versiondir = $(include_utilitydir)50 version_DATA =version.h49 extra_headersdir = $(include_utilitydir) 50 extra_headers_DATA = config_public.h version.h -
trunk/yat/utility/config_public.h.in
r1496 r1500 1 #ifndef _theplu_yat_utility_ version_2 #define _theplu_yat_utility_ version_1 #ifndef _theplu_yat_utility_config_public_ 2 #define _theplu_yat_utility_config_public_ 3 3 4 4 // @configure_input@ … … 26 26 27 27 /// 28 /// \file utility/ version.h28 /// \file utility/config_public.h 29 29 /// 30 30 31 /* 32 Compile-time version constants 33 34 \see http://apr.apache.org/versioning.html 35 */ 36 37 /** 38 MAJOR version 39 40 No compatibility is guarenteed between MAJOR versions. 41 42 \since New in yat 0.5 43 */ 44 #define YAT_MAJOR_VERSION @YAT_MAJOR_VERSION@ 45 46 /** 47 MINOR version 48 49 Minor API changes that do not cause binary compatibility problems. 50 Reset to 0 when upgrading YAT_MAJOR_VERSION 51 52 \since New in yat 0.5 53 */ 54 #define YAT_MINOR_VERSION @YAT_MINOR_VERSION@ 55 56 /** 57 PATCH version 58 59 The Patch level never includes API changes, simply bug fixes. 60 Reset to 0 when upgrading YAT_MINOR_VERSION 61 62 \since New in yat 0.5 63 */ 64 #define YAT_PATCH_VERSION @YAT_PATCH_VERSION@ 65 66 /** 67 VERSION 68 69 The version of yat in string format 70 71 \since New in yat 0.5 72 */ 73 #define YAT_VERSION "@VERSION@" 74 75 /** 76 DEV_BUILD 77 78 Is set to false in releases 79 80 \since New in yat 0.5 81 */ 82 #define YAT_DEV_BUILD @YAT_DEV_BUILD@ 83 84 /** 85 Check at compile time if the version of yat is at least a certain 86 level. 87 @param major The major version component of the version checked 88 for (e.g., the "0" of "0.5.1"). 89 @param minor The minor version component of the version checked 90 for (e.g., the "5" of "0.5.1"). 91 @param patch The patch level component of the version checked 92 for (e.g., the "1" of "0.5.1"). 93 94 \since New in yat 0.5 95 */ 96 #define YAT_VERSION_AT_LEAST(major,minor,patch) \ 97 (((major) < YAT_MAJOR_VERSION) || \ 98 ((major) == YAT_MAJOR_VERSION && (minor) < YAT_MINOR_VERSION) || \ 99 ((major) == YAT_MAJOR_VERSION && (minor) == YAT_MINOR_VERSION &&\ 100 (patch) <= YAT_PATCH_VERSION)) 101 102 #include <string> 103 104 namespace theplu { 105 namespace yat { 106 namespace utility { 107 108 /** 109 \return major version number of compiled yat library 110 111 \since New in yat 0.5 112 */ 113 unsigned int major_version(void); 114 115 /** 116 \return minor version number of compiled yat library 117 118 \since New in yat 0.5 119 */ 120 unsigned int minor_version(void); 121 122 /** 123 \return patch version number of compiled yat library 124 125 \since New in yat 0.5 126 */ 127 unsigned int patch_version(void); 128 129 /** 130 \return version number of compiled yat library 131 132 \since New in yat 0.5 133 */ 134 std::string version(void); 135 136 }}} // of namespace utility, yat, and theplu 31 /// Define if compiler supports deprecated attribute, as in g++ 4.0 32 #undef YAT_HAVE_GCC_DEPRECATED 137 33 138 34 #endif -
trunk/yat/utility/utility.h
r1487 r1500 31 31 /// @brief Some useful functions are placed here 32 32 /// 33 34 #include "deprecate.h" 33 35 34 36 #include <limits> … … 67 69 /// API. Use is<double>(const std::string&) 68 70 /// 69 bool is_double(const std::string&) ;71 bool is_double(const std::string&) YAT_DEPRECATE; 70 72 71 73 /** … … 82 84 /// API. Use is<float>(const std::string&) 83 85 /// 84 bool is_float(const std::string&) ;86 bool is_float(const std::string&) YAT_DEPRECATE; 85 87 86 88 /// … … 90 92 /// API. Use is<int>(const std::string&) 91 93 /// 92 bool is_int(const std::string&) ;94 bool is_int(const std::string&) YAT_DEPRECATE; 93 95 94 96 ///
Note: See TracChangeset
for help on using the changeset viewer.