|
CppADCodeGen 2.4.3
A C++ Algorithmic Differentiation Package with Source Code Generation
|
#include <array_view.hpp>


Public Types | |
| using | value_type = Type |
| using | pointer = value_type * |
| using | const_pointer = const value_type * |
| using | reference = value_type & |
| using | const_reference = const Type & |
| using | iterator = value_type * |
| using | const_iterator = const value_type * |
| using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
| using | reverse_iterator = std::reverse_iterator< iterator > |
| using | size_type = size_t |
| using | difference_type = ptrdiff_t |
Public Member Functions | |
| ArrayView () | |
| ArrayView (pointer array, size_type n) | |
| ArrayView (std::vector< value_type > &vector) | |
| ArrayView (CppAD::vector< value_type > &vector) | |
| template<std::size_t S> | |
| ArrayView (std::array< value_type, S > &array) | |
| ArrayView (std::valarray< value_type > &array) | |
| template<class TT = Type> | |
| ArrayView (const ArrayView< typename std::remove_const< value_type >::type > &array, typename std::enable_if< std::is_const< TT >::value >::type *=0) | |
| template<class TT = Type> | |
| ArrayView (const std::vector< typename std::remove_const< value_type >::type > &vector, typename std::enable_if< std::is_const< TT >::value >::type *=0) | |
| template<class TT = Type> | |
| ArrayView (const CppAD::vector< typename std::remove_const< value_type >::type > &vector, typename std::enable_if< std::is_const< TT >::value >::type *=0) | |
| template<std::size_t S, class TT = Type> | |
| ArrayView (const std::array< typename std::remove_const< value_type >::type, S > &array, typename std::enable_if< std::is_const< TT >::value >::type *=0) | |
| template<class TT = Type> | |
| ArrayView (const std::valarray< typename std::remove_const< value_type >::type > &array, typename std::enable_if< std::is_const< TT >::value >::type *=0) | |
| ArrayView (const ArrayView &x)=default | |
| virtual | ~ArrayView ()=default |
| size_t | size () const noexcept |
| size_type | max_size () const noexcept |
| bool | empty () const noexcept |
| pointer | data () noexcept |
| const_pointer | data () const noexcept |
| void | fill (const value_type &u) |
| ArrayView< value_type > | head (size_t n) |
| ArrayView< const value_type > | head (size_t n) const |
| ArrayView< value_type > | tail (size_t n) |
| ArrayView< const value_type > | tail (size_t n) const |
| ArrayView< value_type > | segment (size_t start, size_t n) |
| ArrayView< const value_type > | segment (size_t start, size_t n) const |
| void | swap (ArrayView &other) noexcept |
| iterator | begin () noexcept |
| const_iterator | begin () const noexcept |
| iterator | end () noexcept |
| const_iterator | end () const noexcept |
| reverse_iterator | rbegin () noexcept |
| const_reverse_iterator | rbegin () const noexcept |
| reverse_iterator | rend () noexcept |
| const_reverse_iterator | rend () const noexcept |
| const_iterator | cbegin () const noexcept |
| const_iterator | cend () const noexcept |
| const_reverse_iterator | crbegin () const noexcept |
| const_reverse_iterator | crend () const noexcept |
| reference | operator[] (size_type i) |
| const_reference | operator[] (size_type i) const |
| reference | at (size_type i) |
| const_reference | at (size_type i) const |
| reference | front () |
| const_reference | front () const |
| reference | back () |
| const_reference | back () const |
| ArrayView & | operator= (const ArrayView &x) |
| template<typename TT = const Type, typename = typename std::enable_if<!std::is_same<Type, TT>::value && std::is_assignable<Type&, TT&>::value>::type> | |
| ArrayView & | operator= (const ArrayView< TT > &x) |
| ArrayView & | operator= (const std::vector< Type > &x) |
| ArrayView & | operator= (const CppAD::vector< Type > &x) |
A simple wrapper for C arrays. It does not own the data array.
Definition at line 30 of file array_view.hpp.
Definition at line 38 of file array_view.hpp.
Definition at line 34 of file array_view.hpp.
Definition at line 36 of file array_view.hpp.
| using CppAD::cg::ArrayView< Type >::const_reverse_iterator = std::reverse_iterator<const_iterator> |
Definition at line 39 of file array_view.hpp.
Definition at line 42 of file array_view.hpp.
| using CppAD::cg::ArrayView< Type >::iterator = value_type* |
Definition at line 37 of file array_view.hpp.
| using CppAD::cg::ArrayView< Type >::pointer = value_type* |
Definition at line 33 of file array_view.hpp.
| using CppAD::cg::ArrayView< Type >::reference = value_type& |
Definition at line 35 of file array_view.hpp.
| using CppAD::cg::ArrayView< Type >::reverse_iterator = std::reverse_iterator<iterator> |
Definition at line 40 of file array_view.hpp.
Definition at line 41 of file array_view.hpp.
Definition at line 32 of file array_view.hpp.
|
inline |
Default empty constructor for arrays with no elements
Definition at line 56 of file array_view.hpp.
Creates a wrapper for an existing array.
| array | pointer to the first element of the array |
| n | size of the array |
Definition at line 67 of file array_view.hpp.
|
inline |
Creates a wrapper from a vector. It is expected that the vector is not resized nor deleted while using this wrapper.
| vector | the vector to wrap |
Definition at line 81 of file array_view.hpp.
|
inline |
Creates a wrapper from a vector. It is expected that the vector is not resized nor deleted while using this wrapper.
| vector | the vector to wrap |
Definition at line 93 of file array_view.hpp.
|
inline |
Creates a wrapper from an std::array. It is expected that std::array is not deleted while using this wrapper.
| array | the std::array to wrap |
Definition at line 105 of file array_view.hpp.
|
inline |
Creates a wrapper from an std::valarray. It is expected that std::valarray is not deleted while using this wrapper.
| array | the valarray to wrap |
Definition at line 116 of file array_view.hpp.
|
inline |
Creates an ArrayView for a const data type from another ArrayView with a non-const data type.
| array | the other ArrayView with a non-const data type |
Definition at line 128 of file array_view.hpp.
|
inline |
Creates a wrapper from a vector with a non-const datd type. It is expected that the vector is not resized nor deleted while using this wrapper.
| vector | the vector to wrap with a non-const data type |
Definition at line 142 of file array_view.hpp.
|
inline |
Creates a wrapper from a vector with a non-const data type. It is expected that the vector is not resized nor deleted while using this wrapper.
| vector | the vector to wrap with a non-const data type |
Definition at line 156 of file array_view.hpp.
|
inline |
Creates a wrapper from a std::array with a non-const data type. It is expected that std::array is not deleted while using this wrapper.
| array | the std::array to wrap with a non-const data type |
Definition at line 169 of file array_view.hpp.
|
inline |
Creates a wrapper from an std::valarray with a non-const data type. It is expected that std::valarray is not deleted while using this wrapper.
| array | the valarray to wrap with a non-const data type |
Definition at line 182 of file array_view.hpp.
|
inlinedefault |
Copy constructor
| x |
Desctructor
Definition at line 352 of file array_view.hpp.
|
inline |
Definition at line 358 of file array_view.hpp.
|
inline |
Definition at line 374 of file array_view.hpp.
|
inline |
Definition at line 379 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 297 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 293 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 325 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 329 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 333 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 337 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 227 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 220 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 213 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 305 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 301 of file array_view.hpp.
Definition at line 231 of file array_view.hpp.
|
inline |
Definition at line 364 of file array_view.hpp.
|
inline |
Definition at line 369 of file array_view.hpp.
Definition at line 238 of file array_view.hpp.
|
inline |
Definition at line 246 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 209 of file array_view.hpp.
Definition at line 385 of file array_view.hpp.
|
inline |
Definition at line 402 of file array_view.hpp.
|
inline |
Definition at line 427 of file array_view.hpp.
|
inline |
Definition at line 415 of file array_view.hpp.
Definition at line 342 of file array_view.hpp.
|
inline |
Definition at line 347 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 313 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 309 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 321 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 317 of file array_view.hpp.
|
inline |
Definition at line 270 of file array_view.hpp.
|
inline |
Definition at line 280 of file array_view.hpp.
|
inlinenoexcept |
Definition at line 202 of file array_view.hpp.
Referenced by CppAD::cg::ArrayView< Type >::head(), CppAD::cg::ArrayView< Type >::head(), CppAD::cg::ArrayView< Type >::segment(), CppAD::cg::ArrayView< Type >::segment(), CppAD::cg::ArrayView< Type >::tail(), and CppAD::cg::ArrayView< Type >::tail().
|
inlinenoexcept |
Definition at line 287 of file array_view.hpp.
Definition at line 254 of file array_view.hpp.
|
inline |
Definition at line 262 of file array_view.hpp.