#include <boost/mpl/assert.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/type_traits/add_const.hpp>
#include <boost/type_traits/remove_const.hpp>
#include "ogr_geometry.h"
Go to the source code of this file.
|
|
template<typename TResult , class TGeometry , typename TFunctor > |
TResult | otb::ogr::apply (TGeometry *geometry, TFunctor functor) |
|
|
template<typename TResult , class TGeometry , typename TFunctor > |
TResult | otb::ogr::apply (TGeometry *geometry, TFunctor functor) |
|
◆ TRY_APPLY
#define TRY_APPLY |
( |
|
TYPE, |
|
|
|
geometry, |
|
|
|
functor |
|
) |
| |
Value: if (typename propagate_const<TGeometry, TYPE>::type* dc_##TYPE = dynamic_cast<typename propagate_const<TGeometry, TYPE>::type*>(geometry)) \
{ \
return functor(dc_##TYPE); \
}
Definition at line 54 of file otbOGRGeometriesVisitor.h.