[opengtl-commits] [375] add a function that return the maximum level of optimisation currently recomended |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 375
Author: cyrille
Date: 2008-09-07 10:52:14 +0200 (Sun, 07 Sep 2008)
Log Message:
-----------
add a function that return the maximum level of optimisation currently recomended
Modified Paths:
--------------
trunk/OpenGTL/OpenGTL/GTLCore/Optimiser.cpp
trunk/OpenGTL/OpenGTL/GTLCore/Optimiser.h
Modified: trunk/OpenGTL/OpenGTL/GTLCore/Optimiser.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/Optimiser.cpp 2008-09-07 08:51:37 UTC (rev 374)
+++ trunk/OpenGTL/OpenGTL/GTLCore/Optimiser.cpp 2008-09-07 08:52:14 UTC (rev 375)
@@ -41,3 +41,7 @@
d->setLevel( _level );
}
+int Optimiser::maximumRecommendedLevel()
+{
+ return 2;
+}
Modified: trunk/OpenGTL/OpenGTL/GTLCore/Optimiser.h
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/Optimiser.h 2008-09-07 08:51:37 UTC (rev 374)
+++ trunk/OpenGTL/OpenGTL/GTLCore/Optimiser.h 2008-09-07 08:52:14 UTC (rev 375)
@@ -42,6 +42,10 @@
* @param _level from 0 to 4 (0 means no optimisation, 4 is aggressive optimisation)
*/
void setLevel(int _level);
+ /**
+ * @return the maximum level that can be used without knwown problems
+ */
+ static int maximumRecommendedLevel();
private:
class Private;
Private* const d;