VTK-m  2.2
Static Public Attributes | List of all members
vtkm::cont::arg::TypeCheck< TypeCheckTag, Type > Struct Template Reference

Class for checking that a type matches the semantics for an argument. More...

#include <TypeCheck.h>

Static Public Attributes

static constexpr bool value = false
 The static constant boolean value is set to true if the type is valid for the given check tag and false otherwise. More...
 

Detailed Description

template<typename TypeCheckTag, typename Type>
struct vtkm::cont::arg::TypeCheck< TypeCheckTag, Type >

Class for checking that a type matches the semantics for an argument.

The TypeCheck class is used in dispatchers to test whether an argument passed to the Invoke command matches the corresponding argument in the ControlSignature.

This check happens after casting dynamic classes to static classes, so the check need not worry about querying dynamic types.

The generic implementation of TypeCheck always results in failure. When a new type check tag is defined, along with it should be partial specializations that find valid types.

Member Data Documentation

◆ value

template<typename TypeCheckTag , typename Type >
constexpr bool vtkm::cont::arg::TypeCheck< TypeCheckTag, Type >::value = false
staticconstexpr

The static constant boolean value is set to true if the type is valid for the given check tag and false otherwise.


The documentation for this struct was generated from the following file: