Reference documentation for deal.II version 9.5.0
|
#include <deal.II/base/array_view.h>
Public Types | |
using | value_type = ElementType |
using | iterator = value_type * |
using | const_iterator = const ElementType * |
Public Member Functions | |
ArrayView () | |
ArrayView (value_type *starting_element, const std::size_t n_elements) | |
ArrayView (const ArrayView< typename std::remove_cv< value_type >::type, MemorySpaceType > &view) | |
ArrayView (value_type &element) | |
ArrayView (const std::vector< typename std::remove_cv< value_type >::type > &vector) | |
ArrayView (std::vector< typename std::remove_cv< value_type >::type > &vector) | |
template<std::size_t N> | |
ArrayView (value_type(&array)[N]) | |
template<std::size_t N> | |
ArrayView (const std::array< typename std::remove_cv< value_type >::type, N > &vector) | |
template<std::size_t N> | |
ArrayView (std::array< typename std::remove_cv< value_type >::type, N > &vector) | |
void | reinit (value_type *starting_element, const std::size_t n_elements) |
bool | operator== (const ArrayView< const value_type, MemorySpaceType > &other_view) const |
bool | operator== (const ArrayView< typename std::remove_cv< value_type >::type, MemorySpaceType > &other_view) const |
bool | operator!= (const ArrayView< const value_type, MemorySpaceType > &other_view) const |
bool | operator!= (const ArrayView< typename std::remove_cv< value_type >::type, MemorySpaceType > &other_view) const |
std::size_t | size () const |
bool | empty () const |
value_type * | data () const noexcept |
iterator | begin () const |
iterator | end () const |
const_iterator | cbegin () const |
const_iterator | cend () const |
value_type & | operator[] (const std::size_t i) const |
Private Attributes | |
value_type * | starting_element |
std::size_t | n_elements |
Friends | |
class | ArrayView< const ElementType, MemorySpaceType > |
Related Symbols | |
(Note that these are not member symbols.) | |
template<typename Iterator , typename MemorySpaceType = MemorySpace::Host> | |
ArrayView< typename std::remove_reference< typename std::iterator_traits< Iterator >::reference >::type, MemorySpaceType > | make_array_view (const Iterator begin, const Iterator end) |
template<typename ElementType , typename MemorySpaceType = MemorySpace::Host> | |
ArrayView< ElementType, MemorySpaceType > | make_array_view (ElementType *const begin, ElementType *const end) |
template<typename Number , typename MemorySpaceType > | |
ArrayView< const Number, MemorySpaceType > | make_array_view (const ArrayView< Number, MemorySpaceType > &array_view) |
template<typename Number , typename MemorySpaceType > | |
ArrayView< Number, MemorySpaceType > | make_array_view (ArrayView< Number, MemorySpaceType > &array_view) |
template<int rank, int dim, typename Number > | |
ArrayView< const Number > | make_array_view (const Tensor< rank, dim, Number > &tensor) |
template<int rank, int dim, typename Number > | |
ArrayView< Number > | make_array_view (Tensor< rank, dim, Number > &tensor) |
template<int rank, int dim, typename Number > | |
ArrayView< const Number > | make_array_view (const SymmetricTensor< rank, dim, Number > &tensor) |
template<int rank, int dim, typename Number > | |
ArrayView< Number > | make_array_view (SymmetricTensor< rank, dim, Number > &tensor) |
template<typename ElementType , int N> | |
ArrayView< ElementType > | make_array_view (ElementType(&array)[N]) |
template<typename ElementType > | |
ArrayView< ElementType > | make_array_view (Vector< ElementType > &vector) |
template<typename ElementType > | |
ArrayView< const ElementType > | make_array_view (const Vector< ElementType > &vector) |
template<typename ElementType > | |
ArrayView< ElementType > | make_array_view (std::vector< ElementType > &vector) |
template<typename ElementType > | |
ArrayView< const ElementType > | make_array_view (const std::vector< ElementType > &vector) |
template<typename ElementType > | |
ArrayView< ElementType > | make_array_view (std::vector< ElementType > &vector, const std::size_t starting_index, const std::size_t size_of_view) |
template<typename ElementType > | |
ArrayView< const ElementType > | make_array_view (const std::vector< ElementType > &vector, const std::size_t starting_index, const std::size_t size_of_view) |
template<typename ElementType > | |
ArrayView< ElementType > | make_array_view (AlignedVector< ElementType > &vector) |
template<typename ElementType > | |
ArrayView< const ElementType > | make_array_view (const AlignedVector< ElementType > &vector) |
template<typename ElementType > | |
ArrayView< ElementType > | make_array_view (AlignedVector< ElementType > &vector, const std::size_t starting_index, const std::size_t size_of_view) |
template<typename ElementType > | |
ArrayView< const ElementType > | make_array_view (const AlignedVector< ElementType > &vector, const std::size_t starting_index, const std::size_t size_of_view) |
template<typename ElementType , std::size_t N> | |
ArrayView< ElementType > | make_array_view (std::array< ElementType, N > &array) |
template<typename ElementType , std::size_t N> | |
ArrayView< const ElementType > | make_array_view (const std::array< ElementType, N > &array) |
template<typename ElementType > | |
ArrayView< ElementType > | make_array_view (Table< 2, ElementType > &table, const typename Table< 2, ElementType >::size_type row) |
template<typename ElementType > | |
ArrayView< ElementType > | make_array_view (Table< 2, ElementType > &table) |
template<typename ElementType > | |
ArrayView< const ElementType > | make_array_view (const Table< 2, ElementType > &table) |
template<typename ElementType > | |
ArrayView< ElementType > | make_array_view (LAPACKFullMatrix< ElementType > &matrix) |
template<typename ElementType > | |
ArrayView< const ElementType > | make_array_view (const LAPACKFullMatrix< ElementType > &matrix) |
template<typename ElementType > | |
ArrayView< const ElementType > | make_array_view (const Table< 2, ElementType > &table, const typename Table< 2, ElementType >::size_type row) |
template<typename ElementType > | |
ArrayView< ElementType > | make_array_view (Table< 2, ElementType > &table, const typename Table< 2, ElementType >::size_type row, const typename Table< 2, ElementType >::size_type starting_column, const std::size_t size_of_view) |
template<typename ElementType > | |
ArrayView< const ElementType > | make_array_view (const Table< 2, ElementType > &table, const typename Table< 2, ElementType >::size_type row, const typename Table< 2, ElementType >::size_type starting_column, const std::size_t size_of_view) |
A class that represents a window of memory locations of type ElementType
and presents it as if it was an array. In essence, this class is nothing more than just a pointer to the first location and an integer that represents the length of the array in elements. The memory remains owned by whoever allocated it, as this class does not take over ownership.
The advantage of using this class is that you don't have to pass around pairs of pointers and that operator[]
checks for the validity of the index with which you subscript this array view. Note that accessing elements is only allowed if the underlying data is stored in CPU memory.
This class can handle views to both non-constant and constant memory locations. If you want to represent a view of a constant array, then the template argument type of this class needs to be const
as well. The following code snippet gives an example:
In either case, accessing an element of a view does not change the ArrayView object itself, and consequently ArrayView::operator[] is a const
function. This corresponds to the notion that a view simply represents a, well, "view" of memory that is owned by someone else. Thus, accessing elements of the view changes the memory managed by some other object, but not the view itself, allowing us to make ArrayView::operator[] a const
member function. This is in contrast to, say, std::vector, which manages the memory it points to and changing an element of the std::vector therefore changes the std::vector object itself – consequently, the std::vector::operator[] is non-const
.
std::span
, but the latter is only available starting in C++20. Definition at line 85 of file array_view.h.
using ArrayView< ElementType, MemorySpaceType >::value_type = ElementType |
An alias that denotes the "value_type" of this container-like class, i.e., the type of the element it "stores" or points to.
Definition at line 92 of file array_view.h.
using ArrayView< ElementType, MemorySpaceType >::iterator = value_type * |
An alias for iterators pointing into the array.
Definition at line 97 of file array_view.h.
using ArrayView< ElementType, MemorySpaceType >::const_iterator = const ElementType * |
An alias for const iterators pointing into the array.
Definition at line 102 of file array_view.h.
|
inline |
Default constructor.
Definition at line 394 of file array_view.h.
|
inline |
Constructor.
[in] | starting_element | A pointer to the first element of the array this object should represent. |
[in] | n_elements | The length (in elements) of the chunk of memory this object should represent. |
Definition at line 402 of file array_view.h.
|
inline |
Copy constructor from array views that point to non-const
elements. If the current object will point to non-const
elements, then this is a straight forward copy constructor. On the other hand, if the current type's ElementType
template argument is a const
qualified type, then the current constructor is a conversion constructor that converts a non-const
view to a const
view, akin to converting a non-const
pointer to a const
pointer.
Definition at line 431 of file array_view.h.
|
inlineexplicit |
A constructor that automatically creates a view from a single value_type object. The view so created then has length one.
Definition at line 423 of file array_view.h.
|
inline |
A constructor that automatically creates a view from a std::vector object. The view encompasses all elements of the given vector.
This implicit conversion constructor is particularly useful when calling a function that takes an ArrayView object as argument, and passing in a std::vector.
const
vector as argument. It can only be used to initialize ArrayView objects that point to const
memory locations, such as ArrayView<const double>
. You cannot initialize ArrayView objects to non-const
memory with such arguments, such as ArrayView<double>
. Definition at line 441 of file array_view.h.
|
inline |
A constructor that automatically creates a view from a std::vector object. The view encompasses all elements of the given vector.
This implicit conversion constructor is particularly useful when calling a function that takes an ArrayView object as argument, and passing in a std::vector.
const
vector as argument. It can be used to initialize ArrayView objects that point to either const
memory locations, such as ArrayView<const double>
, or to non-const
memory, such as ArrayView<double>
. Definition at line 465 of file array_view.h.
|
inline |
A constructor that automatically creates a view for a given C-style array. This constructor can be used as follows:
The object so returned is then a view of the array, with the size 7 correctly deduced.
Definition at line 500 of file array_view.h.
|
inline |
A constructor that automatically creates a view from a std::array object. The view encompasses all elements of the given vector.
This implicit conversion constructor is particularly useful when calling a function that takes an ArrayView object as argument, and passing in a std::array.
Definition at line 475 of file array_view.h.
|
inline |
A constructor that automatically creates a view from a std::array object. The view encompasses all elements of the given vector.
This implicit conversion constructor is particularly useful when calling a function that takes an ArrayView object as argument, and passing in a std::array.
Definition at line 509 of file array_view.h.
|
inline |
Reinitialize a view.
[in] | starting_element | A pointer to the first element of the array this object should represent. |
[in] | n_elements | The length (in elements) of the chunk of memory this object should represent. |
Definition at line 413 of file array_view.h.
|
inline |
Compare two ArrayView objects of the same type. Two objects are considered equal if they have the same size and the same starting pointer.
Note that this means that the operation tests that the views are the same. If they are, then of course the elements represented by the view are also the same. But the converse is not true: Two ArrayView objects may point to different parts of the memory space and in that case the comparison for equality will return false
even if the elements the views point to are the same.
This version always compares with the const value_type.
Definition at line 519 of file array_view.h.
|
inline |
Compare two ArrayView objects of the same type. Two objects are considered equal if they have the same size and the same starting pointer.
Note that this means that the operation tests that the views are the same. If they are, then of course the elements represented by the view are also the same. But the converse is not true: Two ArrayView objects may point to different parts of the memory space and in that case the comparison for equality will return false
even if the elements the views point to are the same.
This version always compares with the non-const value_type.
Definition at line 530 of file array_view.h.
|
inline |
Compare two ArrayView objects of the same type. Two objects are considered equal if they have the same size and the same starting pointer, and the current operation therefore returns true
if the two views being compared point to different memory locations, or if they point to the same memory location but represent different sizes.
Note that this means that the operation tests that the views are the not the same. But this does not mean that the elements pointed to by the view are not equal: Two ArrayView objects may point to different parts of the memory space and in that case the comparison for inequality will return true
even if the elements the views point to are the same.
This version always compares with the const value_type.
Definition at line 542 of file array_view.h.
|
inline |
Compare two ArrayView objects of the same type. Two objects are considered equal if they have the same size and the same starting pointer.
Note that this means that the operation tests that the views are the not the same. But this does not mean that the elements pointed to by the view are not equal: Two ArrayView objects may point to different parts of the memory space and in that case the comparison for inequality will return true
even if the elements the views point to are the same.
This version always compares with the non-const value_type.
Definition at line 565 of file array_view.h.
|
inline |
Return the size (in elements) of the view of memory this object represents.
Definition at line 576 of file array_view.h.
|
inline |
Return a bool whether the array view is empty.
Definition at line 585 of file array_view.h.
|
inlinenoexcept |
Return a pointer to the underlying array serving as element storage. In case the container is empty a nullptr is returned.
Definition at line 553 of file array_view.h.
|
inline |
Return an iterator pointing to the beginning of the array view.
Definition at line 594 of file array_view.h.
|
inline |
Return an iterator pointing to one past the end of the array view.
Definition at line 603 of file array_view.h.
|
inline |
Return a constant iterator pointing to the beginning of the array view.
Definition at line 612 of file array_view.h.
|
inline |
Return a constant iterator pointing to one past the end of the array view.
Definition at line 621 of file array_view.h.
|
inline |
Return a reference to the \(i\)th element of the range represented by the current object.
This function is marked as const
because it does not change the view object. It may however return a reference to a non-const
memory location depending on whether the template type of the class is const
or not.
This function is only allowed to be called if the underlying data is indeed stored in CPU memory.
Definition at line 630 of file array_view.h.
|
friend |
Definition at line 383 of file array_view.h.
|
related |
Create an ArrayView that takes a pair of iterators as arguments. The type of the ArrayView is inferred from the value type of the iterator (e.g., the view created from two const iterators will have a const type).
begin
and end
must bound (in the usual half-open way) a contiguous in memory range of values. This function is intended for use with iterators into containers like boost::container::small_vector
or std::vector
and will not work correctly with, e.g., boost::container::stable_vector
or std::deque
. In debug mode, we check that the provided iterators represent contiguous memory indeed. Definition at line 704 of file array_view.h.
|
related |
Create a view from a pair of pointers. ElementType
may be const-qualified.
begin
and end
must bound (in the usual half-open way) a contiguous in memory range of values. Definition at line 740 of file array_view.h.
|
related |
Create a view from an ArrayView itself.
This function is used for const
references to objects of ArrayView type. It only exists for compatibility purposes.
[in] | array_view | The ArrayView that we wish to make a copy of. |
Definition at line 762 of file array_view.h.
|
related |
Create a view from an ArrayView itself.
This function is used for non-const
references to objects of ArrayView type. It only exists for compatibility purposes.
[in] | array_view | The ArrayView that we wish to make a copy of. |
Definition at line 781 of file array_view.h.
Create a view to an entire Tensor object. This is equivalent to initializing an ArrayView object with a pointer to the first element and the size of the given argument.
This function is used for const
references to objects of Tensor type because they contain immutable elements. Consequently, the return type of this function is a view to a set of const
objects.
[in] | tensor | The Tensor for which we want to have an array view object. The array view corresponds to the entire object but the order in which the entries are presented in the array is an implementation detail and should not be relied upon. |
Definition at line 811 of file array_view.h.
Create a view to an entire Tensor object. This is equivalent to initializing an ArrayView object with a pointer to the first element and the size of the given argument.
This function is used for non-const
references to objects of Tensor type. Such objects contain elements that can be written to. Consequently, the return type of this function is a view to a set of writable objects.
[in] | tensor | The Tensor for which we want to have an array view object. The array view corresponds to the entire object but the order in which the entries are presented in the array is an implementation detail and should not be relied upon. |
Definition at line 841 of file array_view.h.
|
related |
Create a view to an entire SymmetricTensor object. This is equivalent to initializing an ArrayView object with a pointer to the first element and the size of the given argument.
This function is used for const
references to objects of SymmetricTensor type because they contain immutable elements. Consequently, the return type of this function is a view to a set of const
objects.
[in] | tensor | The SymmetricTensor for which we want to have an array view object. The array view corresponds to the entire object but the order in which the entries are presented in the array is an implementation detail and should not be relied upon. |
Definition at line 871 of file array_view.h.
|
related |
Create a view to an entire SymmetricTensor object. This is equivalent to initializing an ArrayView object with a pointer to the first element and the size of the given argument.
This function is used for non-const
references to objects of SymmetricTensor type. Such objects contain elements that can be written to. Consequently, the return type of this function is a view to a set of writable objects.
[in] | tensor | The SymmetricTensor for which we want to have an array view object. The array view corresponds to the entire object but the order in which the entries are presented in the array is an implementation detail and should not be relied upon. |
Definition at line 902 of file array_view.h.
|
related |
Create a view to an entire C-style array. This is equivalent to initializing an ArrayView object with a pointer to the first element and the size of the given argument.
Whether the resulting ArrayView is writable or not depends on the ElementType being a const type or not.
[in] | array | The C-style array for which we want to have an ArrayView object. The ArrayView corresponds to the entire vector. |
Definition at line 923 of file array_view.h.
|
related |
Create a view to an entire Vector object. This is equivalent to initializing an ArrayView object with a pointer to the first element and the size of the given argument.
This function is used for non-const
references to objects of Vector type. Such objects contain elements that can be written to. Consequently, the return type of this function is a view to a set of writable objects.
[in] | vector | The Vector for which we want to have an array view object. The array view corresponds to the entire Vector. |
Definition at line 946 of file array_view.h.
|
related |
Create a view to an entire Vector object. This is equivalent to initializing an ArrayView object with a pointer to the first element and the size of the given argument.
This function is used for const
references to objects of Vector type because they contain immutable elements. Consequently, the return type of this function is a view to a set of const
objects.
[in] | vector | The Vector for which we want to have an array view object. The array view corresponds to the entire Vector. |
Definition at line 969 of file array_view.h.
|
related |
Create a view to an entire std::vector object. This is equivalent to initializing an ArrayView object with a pointer to the first element and the size of the given argument.
This function is used for non-const
references to objects of vector type. Such objects contain elements that can be written to. Consequently, the return type of this function is a view to a set of writable objects.
[in] | vector | The vector for which we want to have an array view object. The array view corresponds to the entire vector. |
Definition at line 992 of file array_view.h.
|
related |
Create a view to an entire std::vector object. This is equivalent to initializing an ArrayView object with a pointer to the first element and the size of the given argument.
This function is used for const
references to objects of vector type because they contain immutable elements. Consequently, the return type of this function is a view to a set of const
objects.
[in] | vector | The vector for which we want to have an array view object. The array view corresponds to the entire vector. |
Definition at line 1015 of file array_view.h.
|
related |
Create a view to a part of a std::vector object. This is equivalent to initializing the ArrayView object with a pointer to the starting_index-
th element and the size_of_view
as the length of the view.
This function is used for non-const
references to objects of vector type. Such objects contain elements that can be written to. Consequently, the return type of this function is a view to a set of writable objects.
[in] | vector | The vector for which we want to have an array view object. |
[in] | starting_index | The index of the first element of the vector that will be part of this view. |
[in] | size_of_view | Number of elements in the new ArrayView. |
starting_index + size_of_view <= vector.size()
Definition at line 1043 of file array_view.h.
|
related |
Create a view to a part of a std::vector object. This is equivalent to initializing the ArrayView object with a pointer to the starting_index-
th element and the size_of_view
as the length of the view.
This function is used for const
references to objects of vector type because they contain immutable elements. Consequently, the return type of this function is a view to a set of const
objects.
[in] | vector | The vector for which we want to have an array view object. |
[in] | starting_index | The index of the first element of the vector that will be part of this view. |
[in] | size_of_view | Number of elements in the new ArrayView. |
starting_index + size_of_view <= vector.size()
Definition at line 1077 of file array_view.h.
|
related |
Create a writable view to an entire AlignedVector object. See the documentation of the corresponding overload for std::vector for more information.
Definition at line 1099 of file array_view.h.
|
related |
Create a read-only view to an entire AlignedVector object. See the documentation of the corresponding overload for std::vector for more information.
Definition at line 1115 of file array_view.h.
|
related |
Create a writable view to a part of an AlignedVector object. See the documentation of the corresponding overload for std::vector for more information.
Definition at line 1131 of file array_view.h.
|
related |
Create a read-only view to a part of an AlignedVector object. See the documentation of the corresponding overload for std::vector for more information.
Definition at line 1153 of file array_view.h.
|
related |
Create a view to an entire std::array object. This is equivalent to initializing an ArrayView object with a pointer to the first element and the size of the given argument.
This function is used for non-const
references to objects of array type. Such objects contain elements that can be written to. Consequently, the return type of this function is a view to a set of writable objects.
[in] | array | The std::array object for which we want to have an array view object. The array view corresponds to the entire array. |
Definition at line 1182 of file array_view.h.
|
related |
Create a view to an entire std::array object. This is equivalent to initializing an ArrayView object with a pointer to the first element and the size of the given argument.
This function is used for const
references to objects of array type because they contain immutable elements. Consequently, the return type of this function is a view to a set of const
objects.
[in] | array | The std::array object for which we want to have an array view object. The array view corresponds to the entire array. |
Definition at line 1205 of file array_view.h.
|
related |
Create a view to an entire row of a Table<2> object. This is equivalent to initializing an ArrayView object with a pointer to the first element of the given row, and the length of the row as the length of the view.
This function is used for non-const
references to objects of Table type. Such objects contain elements that can be written to. Consequently, the return type of this function is a view to a set of writable objects.
[in] | table | The Table for which we want to have an array view object. The array view corresponds to an entire row. |
[in] | row | The index of the row into the table to which this view should correspond. |
Definition at line 1230 of file array_view.h.
|
related |
Create a view to an entire Table<2> object. This is equivalent to initializing an ArrayView object with a pointer to the first element of the given table, and the number of table entries as the length of the view.
This function is used for non-const
references to objects of Table type. Such objects contain elements that can be written to. Consequently, the return type of this function is a view to a set of writable objects.
[in] | table | The Table for which we want to have an array view object. The array view corresponds to the entire table but the order in which the entries are presented in the array is an implementation detail and should not be relied upon. |
Definition at line 1257 of file array_view.h.
|
related |
Create a view to an entire Table<2> object. This is equivalent to initializing an ArrayView object with a pointer to the first element of the given table, and the number of table entries as the length of the view.
This function is used for const
references to objects of Table type because they contain immutable elements. Consequently, the return type of this function is a view to a set of const
objects.
[in] | table | The Table for which we want to have an array view object. The array view corresponds to the entire table but the order in which the entries are presented in the array is an implementation detail and should not be relied upon. |
Definition at line 1282 of file array_view.h.
|
related |
Create a view to an entire LAPACKFullMatrix object. This is equivalent to initializing an ArrayView object with a pointer to the first element of the given object, and the number entries as the length of the view.
This function is used for non-const
references to objects of LAPACKFullMatrix type. Such objects contain elements that can be written to. Consequently, the return type of this function is a view to a set of non-const
objects.
[in] | matrix | The LAPACKFullMatrix for which we want to have an array view object. The array view corresponds to the entire object but the order in which the entries are presented in the array is an implementation detail and should not be relied upon. |
Definition at line 1307 of file array_view.h.
|
related |
Create a view to an entire LAPACKFullMatrix object. This is equivalent to initializing an ArrayView object with a pointer to the first element of the given object, and the number of entries as the length of the view.
This function is used for const
references to objects of LAPACKFullMatrix type because they contain immutable elements. Consequently, the return type of this function is a view to a set of const
objects.
[in] | matrix | The LAPACKFullMatrix for which we want to have an array view object. The array view corresponds to the entire object but the order in which the entries are presented in the array is an implementation detail and should not be relied upon. |
Definition at line 1332 of file array_view.h.
|
related |
Create a view to an entire row of a Table<2> object. This is equivalent to initializing an ArrayView object with a pointer to the first element of the given row, and the length of the row as the length of the view.
This function is used for const
references to objects of Table type because they contain immutable elements. Consequently, the return type of this function is a view to a set of const
objects.
[in] | table | The Table for which we want to have an array view object. The array view corresponds to an entire row. |
[in] | row | The index of the row into the table to which this view should correspond. |
Definition at line 1357 of file array_view.h.
|
related |
Create a view to (a part of) a row of a Table<2> object.
This function is used for non-const
references to objects of Table type. Such objects contain elements that can be written to. Consequently, the return type of this function is a view to a set of writable objects.
[in] | table | The Table for which we want to have an array view object. The array view corresponds to an entire row. |
[in] | row | The index of the row into the table to which this view should correspond. |
[in] | starting_column | The index of the column into the given row of the table that corresponds to the first element of this view. |
[in] | size_of_view | The number of elements this view should have. This corresponds to the number of columns in the current row to which the view should correspond. |
Definition at line 1387 of file array_view.h.
|
related |
Create a view to (a part of) a row of a Table<2> object.
This function is used for const
references to objects of Table type because they contain immutable elements. Consequently, the return type of this function is a view to a set of const
objects.
[in] | table | The Table for which we want to have an array view object. The array view corresponds to an entire row. |
[in] | row | The index of the row into the table to which this view should correspond. |
[in] | starting_column | The index of the column into the given row of the table that corresponds to the first element of this view. |
[in] | size_of_view | The number of elements this view should have. This corresponds to the number of columns in the current row to which the view should correspond. |
Definition at line 1424 of file array_view.h.
|
private |
A pointer to the first element of the range of locations in memory that this object represents.
Definition at line 378 of file array_view.h.
|
private |
The length of the array this object represents.
Definition at line 383 of file array_view.h.