|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
A simplistic array type with a fixed size and type.
#include <Array.hpp>
Public Types | |
Type aliases | |
| using | value_type = T |
| The type of the entries. | |
Public Member Functions | |
Accessors | |
| constexpr T & | operator[] (size_t idx) |
| Element access operator. | |
| constexpr const T & | operator[] (size_t idx) const |
| constexpr int | size () const |
| Get our size. | |
| constexpr Kokkos::Array< T, N > & | data () |
| Get a pointer to our data. | |
| constexpr const Kokkos::Array< T, N > & | data () const |
| Get a pointer to our data. | |
Public Attributes | |
Internal data | |
| Kokkos::Array< T, N > | data_ |
| Our data. | |
Constructors and destructor | |
| template<typename... Args> | |
| && | N |
| Constructor to initialize all elements explicitly. Requires the number of arguments to be N and the type of each to be T. | |
| constexpr | Array ()=default |
| Default constructor. Elements are uninitialized. | |
| constexpr | Array (const Array< T, N > &)=default |
| Default copy constructor. | |
| constexpr | Array (Array< T, N > &&)=default |
| Default move constructor. | |
| constexpr Array< T, N > & | operator= (const Array< T, N > &)=default |
| Default copy assignment operator. | |
| constexpr Array< T, N > & | operator= (Array< T, N > &&)=default |
| Default move assignment operator. | |
| using mundy::Array< T, N >::value_type = T |
|
constexprdefault |
|
constexprdefault |
|
constexprdefault |
|
constexprdefault |
|
constexprdefault |
|
inlineconstexpr |
| [in] | idx | The index of the element. |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
| Kokkos::Array<T, N> mundy::Array< T, N >::data_ |