VTK-m
2.0
|
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... | |
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.
|
staticconstexpr |
The static constant boolean value
is set to true
if the type is valid for the given check tag and false
otherwise.