Public Types | Public Member Functions | Public Attributes

Fiber::ArrayRef< T, N > Class Template Reference

An array reference class, which is a convenience class for reference pointers to multidimensional memory arrays. More...

#include <ArrayRef.hpp>

List of all members.

Public Types

Public Member Functions

Public Attributes


Detailed Description

template<class T, int N = 1>
class Fiber::ArrayRef< T, N >

An array reference class, which is a convenience class for reference pointers to multidimensional memory arrays.

It allows easy creation of a multidimensional memory-managed array with efficient access to the array elements through one-dimensional and multi-dimensional indices.

Note that the template arguments are reversed as compared with MemArray and MultiArray. This is to allow default template arguments for the dimenions for convenience, such that it is sufficient to define just the type of the array.

Parameters:
T The type of the array
N The dimension of the array, one by default if left unspecified.
Author:
Werner Benger
Examples:

ColoredLines.cpp, and HelicalLines.cpp.