MCPcopy Create free account
hub / github.com/Kitware/VTK / IsSignedIntegralType

Function IsSignedIntegralType

IO/CatalystConduit/vtkDataObjectToConduit.cxx:204–211  ·  view source on GitHub ↗

----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

202
203//----------------------------------------------------------------------------
204bool IsSignedIntegralType(int dataType)
205{
206 constexpr bool is_char_type_signed = (CHAR_MIN == SCHAR_MIN) && (CHAR_MAX == SCHAR_MAX);
207
208 return (is_char_type_signed && (dataType == VTK_CHAR)) || (dataType == VTK_SIGNED_CHAR) ||
209 (dataType == VTK_SHORT) || (dataType == VTK_INT) || (dataType == VTK_LONG) ||
210 (dataType == VTK_ID_TYPE) || (dataType == VTK_LONG_LONG);
211}
212
213//----------------------------------------------------------------------------
214bool IsUnsignedIntegralType(int dataType)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected