BEM++
2.0
|
Public Member Functions | |
CollectionOf1dSlicesOf4dArrays (CollectionOf4dArrays< T > &collection, size_t index1, size_t index2, size_t index3) | |
CollectionOf1dSlicesOf4dArrays & | self () |
Returns a reference to self. More... | |
_1dSliceOfConst4dArray< T > | operator[] (size_t index) const |
_1dSliceOf4dArray< T > | operator[] (size_t index) |
size_t | size () const |
Private Attributes | |
CollectionOf4dArrays< T > & | m_collection |
size_t | m_index1 |
size_t | m_index2 |
size_t | m_index3 |
|
inline |
Returns a reference to self.
Useful to make a temporary CollectionOf1dSlicesOf4dArrays<T> an rvalue and pass it to a function accepting a reference to a non-const CollectionOf1dSlicesOf4dArrays<T>.
Once we switch to C++11, this function can be removed because of the new support for rvalue references.