Public Types |
Public Member Functions |
Private Member Functions |
Private Attributes |
List of all members
flexiblesusy::Dynamic_array_view< ElementType > Class Template Reference secure array wrapper More...
Collaboration diagram for flexiblesusy::Dynamic_array_view< ElementType >:
![]()
Detailed Descriptiontemplate<typename ElementType> class flexiblesusy::Dynamic_array_view< ElementType > secure array wrapper This class represtents a secure wrapper for a C-style array, for which the size is not known at compile time. The class allows to read/write the wrapped C-style array through the subscript operator[]. Examples: double a[4] = { 1., 2., 3., 4. };
const Dynamic_array_view<double> av(a);
double elem = av[1]; // read 2nd element
double a[4] = { 1., 2., 3., 4. };
const Dynamic_array_view<double> av(a, 4);
double elem = av[1]; // read 2nd element
double a[4] = { 1., 2., 3., 4. };
Dynamic_array_view<double> av(a, 4);
av[1] = 0; // write 2nd element
double a[4] = { 1., 2., 3., 4. };
double elem = av[1]; // read 2nd element
constexpr Dynamic_array_view< ElementType > make_dynamic_array_view(ElementType *ptr, std::ptrdiff_t len) Definition array_view.hpp:125 double a[4] = { 1., 2., 3., 4. };
double elem = av[1]; // read 2nd element
Definition at line 72 of file array_view.hpp. Member Typedef Documentation◆ Const_iterator_t
template<typename ElementType >
Definition at line 79 of file array_view.hpp. ◆ Element_t
template<typename ElementType >
Definition at line 75 of file array_view.hpp. ◆ Index_t
template<typename ElementType >
Definition at line 76 of file array_view.hpp. ◆ Iterator_t
template<typename ElementType >
Definition at line 78 of file array_view.hpp. ◆ Pointer_t
template<typename ElementType >
Definition at line 77 of file array_view.hpp. ◆ Reference_t
template<typename ElementType >
Definition at line 80 of file array_view.hpp. Constructor & Destructor Documentation◆ Dynamic_array_view() [1/4]
template<typename ElementType >
◆ Dynamic_array_view() [2/4]
template<typename ElementType >
Definition at line 83 of file array_view.hpp. ◆ Dynamic_array_view() [3/4]
template<typename ElementType >
Definition at line 85 of file array_view.hpp. ◆ Dynamic_array_view() [4/4]
template<typename ElementType >
template<std::size_t N>
Definition at line 88 of file array_view.hpp. Member Function Documentation◆ begin()
template<typename ElementType >
Definition at line 95 of file array_view.hpp. References flexiblesusy::Dynamic_array_view< ElementType >::ptr. ◆ cbegin()
template<typename ElementType >
Definition at line 98 of file array_view.hpp. References flexiblesusy::Dynamic_array_view< ElementType >::ptr. ◆ cend()
template<typename ElementType >
Definition at line 99 of file array_view.hpp. References flexiblesusy::Dynamic_array_view< ElementType >::len, and flexiblesusy::Dynamic_array_view< ElementType >::ptr. ◆ check_range()
template<typename ElementType >
Definition at line 115 of file array_view.hpp. References flexiblesusy::Dynamic_array_view< ElementType >::len. Referenced by flexiblesusy::Dynamic_array_view< ElementType >::operator[](), and flexiblesusy::Dynamic_array_view< ElementType >::operator[](). ◆ data()
template<typename ElementType >
Definition at line 91 of file array_view.hpp. References flexiblesusy::Dynamic_array_view< ElementType >::ptr. ◆ empty()
template<typename ElementType >
Definition at line 92 of file array_view.hpp. References flexiblesusy::Dynamic_array_view< ElementType >::size(). Referenced by flexiblesusy::operator<<(), and flexiblesusy::Command_line_options::parse(). ◆ end()
template<typename ElementType >
Definition at line 96 of file array_view.hpp. References flexiblesusy::Dynamic_array_view< ElementType >::len, and flexiblesusy::Dynamic_array_view< ElementType >::ptr. ◆ operator[]() [1/2]
template<typename ElementType >
Definition at line 101 of file array_view.hpp. References flexiblesusy::Dynamic_array_view< ElementType >::check_range(), and flexiblesusy::Dynamic_array_view< ElementType >::ptr. ◆ operator[]() [2/2]
template<typename ElementType >
Definition at line 106 of file array_view.hpp. References flexiblesusy::Dynamic_array_view< ElementType >::check_range(), and flexiblesusy::Dynamic_array_view< ElementType >::ptr. ◆ size()
template<typename ElementType >
Definition at line 93 of file array_view.hpp. References flexiblesusy::Dynamic_array_view< ElementType >::len. Referenced by flexiblesusy::Dynamic_array_view< ElementType >::empty(), flexiblesusy::operator<<(), and flexiblesusy::Command_line_options::parse(). Member Data Documentation◆ len
template<typename ElementType >
◆ ptr
template<typename ElementType >
Definition at line 112 of file array_view.hpp. Referenced by flexiblesusy::Dynamic_array_view< ElementType >::begin(), flexiblesusy::Dynamic_array_view< ElementType >::cbegin(), flexiblesusy::Dynamic_array_view< ElementType >::cend(), flexiblesusy::Dynamic_array_view< ElementType >::data(), flexiblesusy::Dynamic_array_view< ElementType >::end(), flexiblesusy::Dynamic_array_view< ElementType >::operator[](), and flexiblesusy::Dynamic_array_view< ElementType >::operator[](). The documentation for this class was generated from the following file: Generated on Sun Apr 6 2025 11:10:37 for FlexibleSUSY by |