FreePOOMA  2.4.1
Classes
PrintArray.h File Reference

Extract the elements of an Array and print out the contents to a stream with some nice formatting. More...

#include "Utilities/PAssert.h"
#include "Engine/IsValidLocation.h"
#include <iomanip>
Include dependency graph for PrintArray.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  PerformPrintArray< S, A, Dim, DomainType >
 PerformPrintArray struct: a simple wrapper around the templated 'print' method of PrintArray. More...
struct  PerformPrintArray< S, A, 1, DomainType >
class  PrintArray
 PrintArray is a utility program for Array objects, used to print (nicely) the contents of an array to a provided stream. More...

Detailed Description

Extract the elements of an Array and print out the contents to a stream with some nice formatting.

The user can select how many elements to print per line, the precision, format, etc. This is done by constructing an PrintArray, and calling the 'print' method with the stream to print to and the array to print. Also allows passing in a domain argument specifying a view (subset) of the Array elements; the output shows the global-index-space index values for the view.