OTB  9.0.0
Orfeo Toolbox
Classes | Namespaces | Macros
otbOGRGeometriesVisitor.h File Reference
#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"
+ Include dependency graph for otbOGRGeometriesVisitor.h:

Go to the source code of this file.

Classes

struct  otb::ogr::propagate_const< Tin, Tout >
 
struct  otb::ogr::propagate_const< Tin const, Tout >
 

Namespaces

 otb
 
 otb::ogr
 

Macros

#define TRY_APPLY(TYPE, geometry, functor)
 

Functions

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)
 

Macro Definition Documentation

◆ 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.