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

Method IsIntegral

Common/Core/vtkAbstractArray.cxx:486–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486bool vtkAbstractArray::IsIntegral() const
487{
488 if (!this->IsNumeric())
489 {
490 return false;
491 }
492 int dtype = this->GetDataType();
493 switch (dtype)
494 {
495 case VTK_VOID:
496 return false;
497 case VTK_BIT:
498 case VTK_CHAR:
499 case VTK_SIGNED_CHAR:
500 case VTK_UNSIGNED_CHAR:
501 case VTK_SHORT:
502 case VTK_UNSIGNED_SHORT:
503 case VTK_INT:
504 case VTK_UNSIGNED_INT:
505 case VTK_LONG:
506 case VTK_UNSIGNED_LONG:
507 case VTK_ID_TYPE:
508 case VTK_LONG_LONG:
509 case VTK_UNSIGNED_LONG_LONG:
510 return true;
511 default:
512 case VTK_FLOAT:
513 case VTK_DOUBLE:
514 case VTK_STRING:
515 case VTK_OPAQUE:
516 return false;
517 }
518}
519
520//------------------------------------------------------------------------------
521template <typename T>

Callers 8

operator()Method · 0.80
HashSidesMethod · 0.80
QueryMethod · 0.80
DiscontinuousLagrangeMethod · 0.80
ContinuousLagrangeMethod · 0.80
QueryMethod · 0.80

Calls 2

IsNumericMethod · 0.45
GetDataTypeMethod · 0.45

Tested by

no test coverage detected