PerformPrintArray< S, A, Dim, DomainType > Struct Template Reference

PerformPrintArray struct: a simple wrapper around the templated 'print' method of PrintArray. More...

#include <PrintArray.h>

List of all members.

Static Public Member Functions

static void print (const PrintArray &, S &, const A &, const DomainType &)
 PerformPrintArray print method definition.


Detailed Description

template<class S, class A, int Dim, class DomainType>
struct PerformPrintArray< S, A, Dim, DomainType >

PerformPrintArray struct: a simple wrapper around the templated 'print' method of PrintArray.

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.


Member Function Documentation

template<class S , class A , int Dim, class DomainType >
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().


The documentation for this struct was generated from the following file:

Generated on Wed Mar 16 06:20:26 2011 for FreePOOMA by  doxygen 1.5.9