| 1998 | //---------------------------------------------------------------------------- |
| 1999 | template <template <class...> class ImplT, class DataObjectT> |
| 2000 | bool DispatchDataObjectImpl( |
| 2001 | vtkDataObject* do1, vtkDataObject* do2, double toleranceFactor, bool& retVal) |
| 2002 | { |
| 2003 | if (auto do1T = DataObjectT::SafeDownCast(do1)) |
| 2004 | { |
| 2005 | if (auto do2T = DataObjectT::SafeDownCast(do2)) |
| 2006 | { |
| 2007 | retVal = ImplT<DataObjectT>::Execute(do1T, DataObjectT::SafeDownCast(do2), toleranceFactor); |
| 2008 | return true; |
| 2009 | } |
| 2010 | vtkLog(ERROR, |
| 2011 | "Input dataset types do not match: " << do1->GetClassName() << " != " << do2->GetClassName()); |
| 2012 | } |
| 2013 | return false; |
| 2014 | } |
| 2015 | |
| 2016 | //---------------------------------------------------------------------------- |
| 2017 | template <template <class...> class ImplT, class DataObjectT> |
nothing calls this directly
no test coverage detected