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
- Iterator (index_t Length, FixedArray< T, C > *Ptr)
- Construct a pointer to a field of arrays from a native pointer to arrays.
- Iterator (index_t size, T *Ptr)
- Construct a pointer to a field of arrays from an array of fields which reside consecutive in memory.
- Iterator (index_t ishift, const Iterator &P, const Add &)
- Addition Constructor.
-
Iterator< T > getComponent (int i) const
-
T & getComponent (index_t i, int c) const
-
Proxy operator[] (index_t i) const
- Access an element of the array.
-
array_t getValue (index_t i) const
- The copy-by-value version of retrieving an element.
Friends
-
Iterator< FixedArray< T, C > > operator+ (const Iterator< FixedArray< T, C > > &P, int32_t i)
-
Iterator< FixedArray< T, C > > operator+ (int32_t i, const Iterator< FixedArray< T, C > > &P)
-
Iterator< FixedArray< T, C > > operator+ (const Iterator< FixedArray< T, C > > &P, int64_t i)
-
Iterator< FixedArray< T, C > > operator+ (int64_t i, const Iterator< FixedArray< T, C > > &P)
-
Iterator< FixedArray< T, C > > operator+ (const Iterator< FixedArray< T, C > > &P, uint32_t i)
-
Iterator< FixedArray< T, C > > operator+ (uint32_t i, const Iterator< FixedArray< T, C > > &P)
-
Iterator< FixedArray< T, C > > operator+ (const Iterator< FixedArray< T, C > > &P, uint64_t i)
-
Iterator< FixedArray< T, C > > operator+ (uint64_t i, const Iterator< FixedArray< T, C > > &P)
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 >
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:
-