osgEarth 2.1.1
|
Public Types | |
typedef SubArraySimple < ElementType, Store, N-1 > | simple_reference |
typedef SubArray< ElementType, Store, N-1 > | reference |
Public Member Functions | |
Reference (int base) | |
Reference (const Reference &rhs) | |
simple_reference | access (int index, Store &store, const int *strides) const |
reference | access (int index, Store &store, const int *strides, const int *indexBase) const |
Public Attributes | |
const int | _base |
Definition at line 82 of file MultiArray.
typedef SubArray<ElementType, Store, N - 1> seamless::Reference< ElementType, Store, N >::reference |
Reimplemented in seamless::SubArraySimple< ElementType, Store, N >, and seamless::SubArray< ElementType, Store, N >.
Definition at line 86 of file MultiArray.
typedef SubArraySimple<ElementType, Store, N - 1> seamless::Reference< ElementType, Store, N >::simple_reference |
Reimplemented in seamless::multi_array_ref< ElementType, Store, N >, and seamless::multi_array_ref< ElementType, Store, 1 >.
Definition at line 85 of file MultiArray.
seamless::Reference< ElementType, Store, N >::Reference | ( | int | base | ) | [inline] |
Definition at line 87 of file MultiArray.
: _base(base) {}
seamless::Reference< ElementType, Store, N >::Reference | ( | const Reference< ElementType, Store, N > & | rhs | ) | [inline] |
Definition at line 89 of file MultiArray.
: _base(rhs._base) {}
simple_reference seamless::Reference< ElementType, Store, N >::access | ( | int | index, |
Store & | store, | ||
const int * | strides | ||
) | const [inline] |
Definition at line 91 of file MultiArray.
{ int newbase = _base + index * strides[0]; return simple_reference(newbase, store, strides + 1); }
reference seamless::Reference< ElementType, Store, N >::access | ( | int | index, |
Store & | store, | ||
const int * | strides, | ||
const int * | indexBase | ||
) | const [inline] |
Definition at line 97 of file MultiArray.
const int seamless::Reference< ElementType, Store, N >::_base |
Definition at line 103 of file MultiArray.