Go to the documentation of this file.
   57 #ifndef vtkm_worklet_contourtree_print_vector_h 
   58 #define vtkm_worklet_contourtree_print_vector_h 
   77 #define PRINT_WIDTH 12 
   78 #define PREFIX_WIDTH 20 
   96 template <
typename T, 
typename StorageType>
 
  105 template <
typename T, 
typename StorageType>
 
  115   snprintf(strBuf, 19, 
"%1d", 
static_cast<int>(number));
 
  116   return std::string(strBuf);
 
  123   std::cout << std::setw(
PREFIX_WIDTH) << std::left << label;
 
  125   std::cout << std::right << 
"|";
 
  131   std::cout << std::setw(
PREFIX_WIDTH) << std::setfill(
'-') << 
"";
 
  135   for (
vtkm::Id block = 0; block < howMany; block++)
 
  136     std::cout << std::setw(
PRINT_WIDTH) << std::setfill(
'-') << 
"";
 
  138   std::cout << std::setfill(
' ') << std::endl;
 
  142 template <
typename T>
 
  164   for (
vtkm::Id entry = 0; entry < howMany; entry++)
 
  167   std::cout << std::endl;
 
  173 template <
typename T, 
typename StorageType>
 
  192   for (
vtkm::Id entry = 0; entry < nValues; entry++)
 
  198   std::cout << std::endl;
 
  222   for (
vtkm::Id entry = 0; entry < nIndices; entry++)
 
  228   std::cout << std::endl;
 
  231 template <
typename T, 
typename StorageType>
 
  253   for (
vtkm::Id row = 0; row < nRows; row++)
 
  257     for (
vtkm::Id col = 0; col < nColumns; col++, entry++)
 
  261     std::cout << std::endl;
 
  263   std::cout << std::endl;
 
  
void PrintHeader(vtkm::Id howMany)
Definition: PrintVectors.h:155
 
VTKM_CONT vtkm::Id GetNumberOfValues() const
Returns the number of entries in the array.
Definition: ArrayHandle.h:448
 
void PrintSeparatingBar(vtkm::Id howMany)
Definition: PrintVectors.h:128
 
void PrintIndexType(vtkm::Id value)
Definition: PrintVectors.h:149
 
std::string NumString(vtkm::Id number)
Definition: PrintVectors.h:112
 
Groups connected points that have the same field value.
Definition: Atomic.h:19
 
#define PREFIX_WIDTH
Definition: PrintVectors.h:78
 
#define PRINT_WIDTH
Definition: PrintVectors.h:77
 
vtkm::Int32 Id
Represents an ID (index into arrays).
Definition: Types.h:191
 
#define PRINT_COLS
Definition: PrintVectors.h:76
 
void PrintValues(std::string label, vtkm::cont::ArrayHandle< T, StorageType > &dVec, vtkm::Id nValues=-1)
Definition: PrintVectors.h:174
 
void PrintLabelledBlock(std::string label, const vtkm::cont::ArrayHandle< T, StorageType > &dVec, vtkm::Id nRows, vtkm::Id nColumns)
Definition: PrintVectors.h:232
 
VTKM_CONT ReadPortalType ReadPortal() const
Get an array portal that can be used in the control environment.
Definition: ArrayHandle.h:414
 
void PrintDataType(T value)
Definition: PrintVectors.h:143
 
void PrintIndices(std::string label, vtkm::cont::ArrayHandle< vtkm::Id > &iVec, vtkm::Id nIndices=-1)
Definition: PrintVectors.h:202
 
void PrintLabel(std::string label)
Definition: PrintVectors.h:120