osgEarth 2.1.1
Public Types | Public Member Functions | Public Attributes

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

List of all members.

Public Types

typedef ElementType & simple_reference
typedef ElementType & reference

Public Member Functions

 Reference (int base)
 Reference (const Reference &rhs)
simple_reference access (int index, Store &store, const int *strides)
reference access (int index, Store &store, const int *strides, const int *indexBase)

Public Attributes

const int _base

Detailed Description

template<typename ElementType, typename Store>
class seamless::Reference< ElementType, Store, 1 >

Definition at line 107 of file MultiArray.


Member Typedef Documentation

template<typename ElementType , typename Store >
typedef ElementType& seamless::Reference< ElementType, Store, 1 >::reference

Definition at line 114 of file MultiArray.

template<typename ElementType , typename Store >
typedef ElementType& seamless::Reference< ElementType, Store, 1 >::simple_reference

Definition at line 113 of file MultiArray.


Constructor & Destructor Documentation

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

Definition at line 110 of file MultiArray.

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

Definition at line 111 of file MultiArray.

: _base(rhs._base) {}

Member Function Documentation

template<typename ElementType , typename Store >
simple_reference seamless::Reference< ElementType, Store, 1 >::access ( int  index,
Store &  store,
const int *  strides 
) [inline]

Definition at line 116 of file MultiArray.

    {
        return store[_base + index * strides[0]];
    }
template<typename ElementType , typename Store >
reference seamless::Reference< ElementType, Store, 1 >::access ( int  index,
Store &  store,
const int *  strides,
const int *  indexBase 
) [inline]

Definition at line 121 of file MultiArray.

    {
        return store[_base + (index - indexBase[0]) * strides[0]];
    }

Member Data Documentation

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

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