osgEarth 2.1.1
Public Types | Public Member Functions | Public Attributes

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

Inheritance diagram for seamless::Reference< ElementType, Store, N >:

List of all members.

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

Detailed Description

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

Definition at line 82 of file MultiArray.


Member Typedef Documentation

template<typename ElementType , typename Store , unsigned N>
typedef SubArray<ElementType, Store, N - 1> seamless::Reference< ElementType, Store, N >::reference
template<typename ElementType , typename Store , unsigned N>
typedef SubArraySimple<ElementType, Store, N - 1> seamless::Reference< ElementType, Store, N >::simple_reference

Constructor & Destructor Documentation

template<typename ElementType , typename Store , unsigned N>
seamless::Reference< ElementType, Store, N >::Reference ( int  base) [inline]

Definition at line 87 of file MultiArray.

: _base(base) {}
template<typename ElementType , typename Store , unsigned N>
seamless::Reference< ElementType, Store, N >::Reference ( const Reference< ElementType, Store, N > &  rhs) [inline]

Definition at line 89 of file MultiArray.

: _base(rhs._base) {}

Member Function Documentation

template<typename ElementType , typename Store , unsigned N>
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);
    }

Here is the caller graph for this function:

template<typename ElementType , typename Store , unsigned N>
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.

    {
        int newbase = _base + (index - indexBase[0]) * strides[0];
        return reference(newbase, store, indexBase + 1, strides + 1);
    }

Member Data Documentation

template<typename ElementType , typename Store , unsigned N>
const int seamless::Reference< ElementType, Store, N >::_base

Definition at line 103 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