Commit 7b9fa975 authored by Robert Maynard's avatar Robert Maynard

Rename: IsVirtualType to IsValueType.

parent deb4946a
......@@ -120,9 +120,9 @@ public:
/// Returns true if this array matches the ValueType type passed in.
///
template <typename T>
VTKM_CONT bool IsVirtualType()
VTKM_CONT bool IsValueType()
{
return internal::variant::IsVirtualType<T>(this->ArrayContainer.get());
return internal::variant::IsValueType<T>(this->ArrayContainer.get());
}
/// Returns this array cast to the given \c ArrayHandle type. Throws \c
......@@ -244,7 +244,7 @@ struct VariantArrayHandleTry
const vtkm::cont::internal::VariantArrayHandleContainerBase& container,
Args&&... args) const
{
if (!called && vtkm::cont::internal::variant::IsVirtualType<T>(&container))
if (!called && vtkm::cont::internal::variant::IsValueType<T>(&container))
{
called = true;
const auto* derived =
......
......@@ -145,7 +145,7 @@ VTKM_CONT bool IsType(const VariantArrayHandleContainerBase* container)
}
template <typename T>
VTKM_CONT bool IsVirtualType(const VariantArrayHandleContainerBase* container)
VTKM_CONT bool IsValueType(const VariantArrayHandleContainerBase* container)
{
if (container == nullptr)
{ //you can't use typeid on nullptr of polymorphic types
......@@ -182,7 +182,7 @@ struct VTKM_ALWAYS_EXPORT Caster<T, vtkm::cont::StorageTagVirtual>
vtkm::cont::ArrayHandle<T, vtkm::cont::StorageTagVirtual> operator()(
const VariantArrayHandleContainerBase* container) const
{
if (!IsVirtualType<T>(container))
if (!IsValueType<T>(container))
{
VTKM_LOG_CAST_FAIL(container, vtkm::cont::ArrayHandleVirtual<T>);
throwFailedDynamicCast(vtkm::cont::TypeName(container),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment