Public Types | Public Member Functions | Friends

Iterator< Eagle::FixedArray< T, C > > Class Template Reference

Implementation of the Separated Compound field type that may virtually merge many separate arrays as one. More...

#include <Iterator.hpp>

List of all members.

Public Types

Public Member Functions

Friends


Detailed Description

template<int C, class T>
class Iterator< Eagle::FixedArray< T, C > >

Implementation of the Separated Compound field type that may virtually merge many separate arrays as one.

May be used to construct a pointer to a field of arrays from an array of fields which reside consecutively in memory.

An Iterator is basically a pointer, nothing more, i.e. it does not do any memory management like reference counting. The validity of the data that is given be the constructor must be ensured during the lifetime of a ViewPtr by external means. Use the MemCore library for memory management issues.


Constructor & Destructor Documentation

template<int C, class T >
Iterator< Eagle::FixedArray< T, C > >::Iterator ( index_t  Length,
FixedArray< T, C > *  Ptr 
) [inline]

Construct a pointer to a field of arrays from a native pointer to arrays.

This is the direct, trivial mapping.

template<int C, class T >
Iterator< Eagle::FixedArray< T, C > >::Iterator ( index_t  size,
T *  Ptr 
) [inline]

Construct a pointer to a field of arrays from an array of fields which reside consecutive in memory.

Parameters:
size the number of array objects
T pointer to the first array
template<int C, class T >
Iterator< Eagle::FixedArray< T, C > >::Iterator ( index_t  ishift,
const Iterator< Eagle::FixedArray< T, C > > &  P,
const Add &   
) [inline]

Addition Constructor.

Parameters:
ishift The index shift