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

Public Member Functions

 CollectionOf2dSlicesOf4dArrays (CollectionOf4dArrays< T > &collection, size_t index2, size_t index3)
 
CollectionOf2dSlicesOf4dArraysself ()
 Returns a reference to self. More...
 
_2dSliceOfConst4dArray< T > operator[] (size_t index) const
 
_2dSliceOf4dArray< T > operator[] (size_t index)
 
size_t size () const
 

Private Attributes

CollectionOf4dArrays< T > & m_collection
 
size_t m_index2
 
size_t m_index3
 

Member Function Documentation

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

Returns a reference to self.

Useful to make a temporary CollectionOf2dSlicesOf4dArrays<T> an rvalue and pass it to a function accepting a reference to a non-const CollectionOf2dSlicesOf4dArrays<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: