From 75175ecb48b115063e6dbbff4f0687d55423b181 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 27 Jan 2005 11:18:33 +0000 Subject: [PATCH] Changed template instances to template --- include/osg/BoundsChecking | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/include/osg/BoundsChecking b/include/osg/BoundsChecking index 48f78d54b..9734bac2d 100644 --- a/include/osg/BoundsChecking +++ b/include/osg/BoundsChecking @@ -22,7 +22,7 @@ namespace osg { /** If value is greater than or equal to minValue do nothing - legal value, * Otherwise set value to minValue, and warn that valueName was clamped. * Note this is effectively A=max(A,B). */ -template +template inline void clampGEQUAL(T& value,const T minValue,const char* valueName) { if (value +template inline void clampLEQUAL(T& value,const T maxValue,const char* valueName) { if (value>maxValue) @@ -50,7 +50,7 @@ inline void clampLEQUAL(T& value,const T maxValue,const char* valueName) * was clamped. Equivilant to calling * clampGEQUAL( value, minValue, valueName ); * clampLEQUAL( value, maxValue, valueName ); */ -template +template inline void clampBetweenRange(T& value,const T minValue,const T maxValue,const char* valueName) { if (value +template inline void clampArrayElementGEQUAL(A& value,unsigned int i,const T minValue,const char* valueName) { if (value[i] +template inline void clampArrayElementLEQUAL(A& value,unsigned int i,const T maxValue,const char* valueName) { if (value[i]>maxValue) @@ -98,7 +98,7 @@ inline void clampArrayElementLEQUAL(A& value,unsigned int i,const T maxValue,con * valueName[i] was clamped. Equivilant to calling * clampArrayElementGEQUAL( value, i, minValue, valueName ); * clampArrayElementLEQUAL( value, i, maxValue, valueName ); */ -template +template inline void clampArrayElementBetweenRange(A& value,unsigned int i,const T minValue,const T maxValue,const char* valueName) { if (value[i] +template inline void clampArrayElementsGEQUAL(A& value,unsigned int first,unsigned int last,const T minValue,const char* valueName) { for(unsigned int i=first;i<=last;++i) @@ -128,7 +128,7 @@ inline void clampArrayElementsGEQUAL(A& value,unsigned int first,unsigned int la /** For each element of value[] in the range (first,last), if the element is * less than or equal to maxValue do nothing - legal value, Otherwise clamp * the element to maxValue, and warn that valueName[i] was clamped. */ -template +template inline void clampArrayElementsLEQUAL(A& value,unsigned int first,unsigned int last,const T maxValue,const char* valueName) { for(unsigned int i=first;i<=last;++i) @@ -141,7 +141,7 @@ inline void clampArrayElementsLEQUAL(A& value,unsigned int first,unsigned int la * clamped. Equivalent to calling * clampArrayElementsGEQUAL( value, first, last, minValue, valueName); * clampArrayElementsLEQUAL( value, first, last, maxValue, valueName); */ -template +template inline void clampArrayElementsBetweenRange(A& value,unsigned int first,unsigned int last,const T minValue,const T maxValue,const char* valueName) { for(unsigned int i=first;i<=last;++i) @@ -152,7 +152,7 @@ inline void clampArrayElementsBetweenRange(A& value,unsigned int first,unsigned /** For each element of the three-element array value[], if the element is * greater than or equal to minValue do nothing - legal value, Otherwise * clamp the element to minValue, and warn that valueName[i] was clamped. */ -template +template inline void clampArray3GEQUAL(A& value,const T minValue,const char* valueName) { clampArrayElementsGEQUAL(value,0u,2u,minValue,valueName); @@ -161,7 +161,7 @@ inline void clampArray3GEQUAL(A& value,const T minValue,const char* valueName) /** For each element of the three-element array value[], if the element is * less than or equal to maxValue do nothing - legal value, Otherwise clamp * the element to maxValue, and warn that valueName[i] was clamped. */ -template +template inline void clampArray3LEQUAL(A& value,const T maxValue,const char* valueName) { clampArrayElementsLEQUAL(value,0u,2u,maxValue,valueName); @@ -173,7 +173,7 @@ inline void clampArray3LEQUAL(A& value,const T maxValue,const char* valueName) * clamped. Equivalent to calling * clampArray3GEQUAL( value, minValue, valueName); * clampArray3LEQUAL( value, maxValue, valueName); */ -template +template inline void clampArray3BetweenRange(A& value,const T minValue,const T maxValue,const char* valueName) { clampArrayElementsBetweenRange(value,0u,2u,minValue,maxValue,valueName); @@ -184,7 +184,7 @@ inline void clampArray3BetweenRange(A& value,const T minValue,const T maxValue,c /** For each element of the four-element array value[], if the element is * greater than or equal to minValue do nothing - legal value, Otherwise * clamp the element to minValue, and warn that valueName[i] was clamped. */ -template +template inline void clampArray4GEQUAL(A& value,const T minValue,const char* valueName) { clampArrayElementsGEQUAL(value,0u,3u,minValue,valueName); @@ -193,7 +193,7 @@ inline void clampArray4GEQUAL(A& value,const T minValue,const char* valueName) /** For each element of the four-element array value[], if the element is * less than or equal to maxValue do nothing - legal value, Otherwise clamp * the element to maxValue, and warn that valueName[i] was clamped. */ -template +template inline void clampArray4LEQUAL(A& value,const T maxValue,const char* valueName) { clampArrayElementsLEQUAL(value,0u,3u,maxValue,valueName); @@ -205,7 +205,7 @@ inline void clampArray4LEQUAL(A& value,const T maxValue,const char* valueName) * clamped. Equivalent to calling * clampArray4GEQUAL( value, minValue, valueName); * clampArray4LEQUAL( value, maxValue, valueName); */ -template +template inline void clampArray4BetweenRange(A& value,const T minValue,const T maxValue,const char* valueName) { clampArrayElementsBetweenRange(value,0u,3u,minValue,maxValue,valueName);