Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

IKConversion.h

Go to the documentation of this file.
00001 #ifndef ATLFAST_IKCONVERSION_H
00002 #define ATLFAST_IKCONVERSION_H
00005 namespace Atlfast{
00006   template<class T, class U>
00007     class Cast{
00008     U* operator()(T* t){return static_cast<U>(t);}
00009   }; 
00010     
00011   template<class T, class U>
00012     void ConvertVector(std::vector<T>& vin, std::vector<U>& vout){
00013     std::transform(vin.begin(), vin.end(), back_inserter(vout), Cast<T,U>());
00014   }
00015 }

Generated on Tue Mar 18 11:18:23 2003 for AtlfastAlgs by doxygen1.3-rc1