osgEarth 2.1.1
Public Member Functions | Protected Attributes | Private Types

seamless::SubArray< ElementType, Store, N > Class Template Reference

Inheritance diagram for seamless::SubArray< ElementType, Store, N >:
Collaboration diagram for seamless::SubArray< ElementType, Store, N >:

List of all members.

Public Member Functions

 SubArray (int base, Store &store, const int *strides, const int *indexBase)
 SubArray (const SubArray &rhs)
reference operator[] (int index)

Protected Attributes

const int * _indexBase

Private Types

typedef SubArraySimple
< ElementType, Store, N > 
super_type
typedef super_type::reference reference

Detailed Description

template<typename ElementType, typename Store, unsigned N>
class seamless::SubArray< ElementType, Store, N >

Definition at line 55 of file MultiArray.


Member Typedef Documentation

template<typename ElementType , typename Store , unsigned N>
typedef super_type::reference seamless::SubArray< ElementType, Store, N >::reference [private]

Reimplemented from seamless::SubArraySimple< ElementType, Store, N >.

Definition at line 58 of file MultiArray.

template<typename ElementType , typename Store , unsigned N>
typedef SubArraySimple<ElementType, Store, N> seamless::SubArray< ElementType, Store, N >::super_type [private]

Reimplemented from seamless::SubArraySimple< ElementType, Store, N >.

Definition at line 57 of file MultiArray.


Constructor & Destructor Documentation

template<typename ElementType , typename Store , unsigned N>
seamless::SubArray< ElementType, Store, N >::SubArray ( int  base,
Store &  store,
const int *  strides,
const int *  indexBase 
) [inline]

Definition at line 60 of file MultiArray.

        : super_type(base, store, strides), _indexBase(indexBase)
    {
    }
template<typename ElementType , typename Store , unsigned N>
seamless::SubArray< ElementType, Store, N >::SubArray ( const SubArray< ElementType, Store, N > &  rhs) [inline]

Definition at line 66 of file MultiArray.

        : super_type(rhs), _indexBase(rhs._indexBase)
    {
    }

Member Function Documentation

template<typename ElementType , typename Store , unsigned N>
reference seamless::SubArray< ElementType, Store, N >::operator[] ( int  index) [inline]

Reimplemented from seamless::SubArraySimple< ElementType, Store, N >.

Definition at line 71 of file MultiArray.

    {
        return super_type::access(index, this->_store, this->_strides,
                                  _indexBase);
    }

Here is the call graph for this function:


Member Data Documentation

template<typename ElementType , typename Store , unsigned N>
const int* seamless::SubArray< ElementType, Store, N >::_indexBase [protected]

Definition at line 77 of file MultiArray.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines