FreePOOMA  2.4.1
Classes | Functions
Grid.h File Reference

Grid is a general type of integer domain, which refers to a set of points a0, a1, ... More...

#include "Domain/Domain.h"
#include "Domain/DomainTraits.Grid.h"
#include "Domain/NewDomain.h"
#include "Domain/Loc.h"
#include <iosfwd>
Include dependency graph for Grid.h:
This graph shows which files directly or indirectly include this file:

Classes

class  Grid< Dim >
 Grid<N> is a domain representing a set of N numeric sequences, one for each dimension N. More...
class  Grid< 1 >
 Grid<1> is a 1D specialization of Grid<N>; for the 1D case, there are only a restricted set of constructors available. More...

Functions

template<int Dim>
std::ostream & operator<< (std::ostream &o, const Grid< Dim > &grid)
 print a Grid<N> to a stream, in the format "[" value1,value2,...,valueN "]"

Detailed Description

Grid is a general type of integer domain, which refers to a set of points a0, a1, ...

aN for each dimension.

The points can be any ascending or descending sequence, there is no fixed stride. This is basically a set of Dim IndirectionList<int>'s, one for each dimension; the total domain is the tensor product of these lists. Grid<Dim> is basically an array of Grid<1> objects.

Grid defers most of its implementation to the Domain<DomainTraits<Grid>> base class.


Function Documentation

template<int Dim>
std::ostream& operator<< ( std::ostream &  o,
const Grid< Dim > &  grid 
)

print a Grid<N> to a stream, in the format "[" value1,value2,...,valueN "]"