BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Fiber::_2dSliceOf3dArray< T > Class Template Reference

Lightweight encapsulation of a 2D slice of a 3D array. More...

#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/fiber/_3d_array.hpp>

Public Member Functions

 _2dSliceOf3dArray (_3dArray< T > &array, size_t index2)
 
_2dSliceOf3dArrayself ()
 Returns a reference to self. More...
 
const T & operator() (size_t index0, size_t index1) const
 
T & operator() (size_t index0, size_t index1)
 
size_t extent (size_t dimension) const
 

Private Member Functions

void check_dimension (size_t dimension) const
 

Private Attributes

_3dArray< T > & m_array
 
size_t m_index2
 

Detailed Description

template<typename T>
class Fiber::_2dSliceOf3dArray< T >

Lightweight encapsulation of a 2D slice of a 3D array.

Member Function Documentation

template<typename T >
_2dSliceOf3dArray< T > & Fiber::_2dSliceOf3dArray< T >::self ( )
inline

Returns a reference to self.

Useful to make a temporary _2dSliceOf3dArray<T> an rvalue and pass it to a function accepting a reference to a non-const _2dSliceOf3dArray<T>.

Once we switch to C++11, this function can be removed because of the new support for rvalue references.


The documentation for this class was generated from the following files: