GEOSX
Functions
totalview Namespace Reference

Contains functions that are used by the implementation of the totalview c++ view for data inspection within totalview. More...

Functions

template<typename TYPE , typename INDEX_TYPE >
std::string format (int NDIM, INDEX_TYPE const *const dims)
 This function returns a string that may be used as the "type" in a call to TV_ttf_add_row(). This will either be a single value or an array. More...
 

Detailed Description

Contains functions that are used by the implementation of the totalview c++ view for data inspection within totalview.

Function Documentation

◆ format()

template<typename TYPE , typename INDEX_TYPE >
std::string totalview::format ( int  NDIM,
INDEX_TYPE const *const  dims 
)

This function returns a string that may be used as the "type" in a call to TV_ttf_add_row(). This will either be a single value or an array.

Template Parameters
TYPEThe type of that requires a format string.
INDEX_TYPEThe type of integer that dims is passed in as.
Parameters
NDIMthe number of dimensions of the array (0 if scalar)
dimsThe dimensions of the array
Returns
A string for use as "type" in a TV_tff_add_row( name, type, data) call.

Definition at line 37 of file tv_helpers.hpp.