Skip to content

Commit cd9686b

Browse files
committed
DataAlgo : Support PathMatcherData in dispatch()
1 parent fb72adc commit cd9686b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/IECore/DataAlgo.inl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
#define IECORE_DATAALGO_INL
3737

3838
#include "IECore/DateTimeData.h"
39+
#include "IECore/PathMatcherData.h"
3940
#include "IECore/SimpleTypedData.h"
4041
#include "IECore/SplineData.h"
4142
#include "IECore/TransformationMatrixData.h"
@@ -193,6 +194,8 @@ typename std::invoke_result_t<F, Data *, Args&&...> dispatch( Data *data, F &&fu
193194
return functor( static_cast<Color3fVectorData *>( data ), std::forward<Args>( args )... );
194195
case Color4fVectorDataTypeId :
195196
return functor( static_cast<Color4fVectorData *>( data ), std::forward<Args>( args )... );
197+
case PathMatcherDataTypeId :
198+
return functor( static_cast<PathMatcherData *>( data ), std::forward<Args>( args )... );
196199
default :
197200
throw InvalidArgumentException( boost::str ( boost::format( "Data has unknown type '%1%' / '%2%' " ) % typeId % data->typeName() ) );
198201
}
@@ -345,6 +348,8 @@ typename std::invoke_result_t<F, const Data *, Args&&...> dispatch( const Data *
345348
return functor( static_cast<const Color3fVectorData *>( data ), std::forward<Args>( args )... );
346349
case Color4fVectorDataTypeId :
347350
return functor( static_cast<const Color4fVectorData *>( data ), std::forward<Args>( args )... );
351+
case PathMatcherDataTypeId :
352+
return functor( static_cast<const PathMatcherData *>( data ), std::forward<Args>( args )... );
348353
default :
349354
throw InvalidArgumentException( boost::str ( boost::format( "Data has unknown type '%1%' / '%2%' " ) % typeId % data->typeName() ) );
350355
}

0 commit comments

Comments
 (0)