#include <PrintArray.h>
Static Public Member Functions | |
static void | print (const PrintArray &, S &, const A &, const DomainType &) |
PerformPrintArray print method definition. |
This is here as a workaround to a Metrowerks problem that prevents having templated member functions defined as out-of-line. This struct defines one static method 'print', which prints an array to a stream (the two template parameters). The Dim parameter is used to specialize this to the case of a 1D domain. This is called by the 'print' templated member function of PrintArray.
void PerformPrintArray< S, A, Dim, DomainType >::print | ( | const PrintArray & | p, | |
S & | s, | |||
const A & | a, | |||
const DomainType & | d | |||
) | [inline, static] |
PerformPrintArray print method definition.
print takes data from an array, and prints it nicely to a stream. S is a template parameter for an ostream-like object. A is a template parameter for a array-like object. This is the N-D general case, for N > 1. It prints out 2D 'slices' for the first two dimensions, and loops over the other dimensions.
References PrintArray::carReturn(), CTAssert, PrintArray::dataPrecision(), PrintArray::dataWidth(), PrintArray::domainWidth(), std::endl(), Inform::fill(), isValidLocation(), PrintArray::scientific(), and PrintArray::spacing().