BEM++
2.0
|
Public Types | |
typedef _2dSliceOfConst3dArray< T > | ConstSlice |
typedef _2dSliceOf3dArray< T > | Slice |
Public Member Functions | |
CollectionOf2dSlicesOf3dArrays (CollectionOf3dArrays< T > &collection, size_t index2) | |
CollectionOf2dSlicesOf3dArrays & | self () |
Returns a reference to self. More... | |
_2dSliceOfConst3dArray< T > | operator[] (size_t index) const |
_2dSliceOf3dArray< T > | operator[] (size_t index) |
size_t | size () const |
Private Attributes | |
CollectionOf3dArrays< T > & | m_collection |
size_t | m_index2 |
|
inline |
Returns a reference to self.
Useful to make a temporary CollectionOf2dSlicesOf3dArrays<T> an rvalue and pass it to a function accepting a reference to a non-const CollectionOf2dSlicesOf3dArrays<T>.
Once we switch to C++11, this function can be removed because of the new support for rvalue references.