#include <Range_fwd.hpp>
This class represents a non contiguous view to a Range, allowing for read and write operations.
Definition at line 45 of file Range_fwd.hpp.
Public Member Functions | |
RangeView (RangeView &)=delete | |
Disallow copying. More... | |
RangeView (RangeView &&)=delete | |
Disallow moving. More... | |
RangeView & | operator= (RangeView &)=delete |
Disallow copying. More... | |
RangeView & | operator= (RangeView &&)=delete |
Disallow moving. More... | |
Range< T > | asRange () const |
Cast to underlying container type. More... | |
void | operator= (const Range< T > &rhs) |
Multiindex assignment: a[{1, 2, 3}] = Range<int>({1, 2, 3}); . More... | |
void | operator= (const value_type &x) |
Multiindex value assignment: a = 4; . More... | |
reference | operator[] (size_type i) |
Write access to sub-container elements. More... | |
const_reference | operator[] (size_type i) const |
Read access to sub-container elements. More... | |
size_type | size () const |
Size of the sub-container. More... | |
Friends | |
class | Range |
std::ostream & | operator<< (std::ostream &os, const RangeView &c) |
Output a RangeView. More... | |
Private Member Functions | |
RangeView (Range< T > &receiver_, const indexes_t &modifier_) | |
Constructor. More... | |
Private Attributes | |
Range< T > & | receiver |
Reference to object we are viewing / modifying. More... | |
const indexes_t & | modifier |
List of indexes of elements to modify. More... | |
|
inlineprivate |
Constructor.
Definition at line 50 of file Range_fwd.hpp.
|
delete |
Disallow copying.
|
delete |
Disallow moving.
|
inline |
Cast to underlying container type.
Definition at line 60 of file Range_fwd.hpp.
|
inline |
Multiindex assignment: a[{1, 2, 3}] = Range<int>({1, 2, 3});
.
Definition at line 68 of file Range_fwd.hpp.
|
inline |
Multiindex value assignment: a = 4;
.
Definition at line 76 of file Range_fwd.hpp.
|
delete |
Disallow moving.
|
delete |
Disallow copying.
|
inline |
Write access to sub-container elements.
Definition at line 82 of file Range_fwd.hpp.
|
inline |
Read access to sub-container elements.
Definition at line 85 of file Range_fwd.hpp.
|
inline |
Size of the sub-container.
Definition at line 88 of file Range_fwd.hpp.
|
friend |
Output a RangeView.
Definition at line 93 of file Range_fwd.hpp.
|
private |
List of indexes of elements to modify.
Definition at line 47 of file Range_fwd.hpp.
|
private |
Reference to object we are viewing / modifying.
Definition at line 46 of file Range_fwd.hpp.