Jafar
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Utils.hpp
00001 /* $Id$ */
00002 #ifndef _GEOM_ALL_POINTERS_HAS_COV_HPP_
00003 #define _GEOM_ALL_POINTERS_HAS_COV_HPP_
00004 
00005 #include <kernel/jafarMacro.hpp>
00006 
00007 
00008 namespace jafar {
00009   namespace geom {
00010     // template<class _T_>
00011     // inline bool allPointersHasCov( const std::vector< _T_* >& _points )
00012     // {
00013     //   JFR_FOREACH(_T_* point, _points )
00014     //   {
00015     //     if( not point->hasCov() )
00016     //     {
00017     //       return false;
00018     //     }
00019     //   }
00020     //   return true;
00021     // }
00022     template<class _T_>
00023     inline bool allPointersHasCov( const std::vector< _T_* >& _points )
00024     {
00025       for(typename std::vector< _T_* >::const_iterator it = _points.begin();
00026           it != _points.end();
00027           ++it)
00028         {
00029           if( not (*it)->hasCov() )
00030             {
00031               return false;
00032             }
00033         }
00034       return true;
00035     }
00036   }
00037 }
00038 
00039 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:18 for Jafar by doxygen 1.7.6.1
LAAS-CNRS