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