|
EBGeometry
Compact, header-only C++ library for fast evaluation of signed distance functions
|
Fixed-size array with host- and device-callable members. More...
#include <EBGeometry_Array.hpp>

Public Member Functions | |
| constexpr T & | operator[] (const std::size_t a_i) noexcept |
| Element access. | |
| constexpr const T & | operator[] (const std::size_t a_i) const noexcept |
| Element access. | |
| constexpr T * | data () noexcept |
| Pointer to the first element. | |
| constexpr const T * | data () const noexcept |
| Pointer to the first element. | |
| constexpr T * | begin () noexcept |
| Iterator to the first element. | |
| constexpr const T * | begin () const noexcept |
| Iterator to the first element. | |
| constexpr T * | end () noexcept |
| Iterator past the last element. | |
| constexpr const T * | end () const noexcept |
| Iterator past the last element. | |
| constexpr void | fill (const T &a_value) noexcept |
| Set every element to a value. | |
| constexpr bool | operator== (const Array &a_other) const noexcept |
| Element-wise equality. | |
| constexpr bool | operator!= (const Array &a_other) const noexcept |
| Element-wise inequality. | |
Static Public Member Functions | |
| static constexpr std::size_t | size () noexcept |
| Number of elements. | |
Public Attributes | |
| T | m_data [N] |
| The elements. Public so that the type is an aggregate; use operator[] or data(). | |
Fixed-size array with host- and device-callable members.
An aggregate, like std::array: Array<int, 3> a = {1, 2, 3}; works, a default-constructed Array of a scalar type is uninitialized, and Array<int, 3> a{}; is zeroed. It is trivially copyable whenever T is.
| T | Element type. |
| N | Number of elements, at least 1. |
|
inlineconstexprnoexcept |
Iterator to the first element.
|
inlineconstexprnoexcept |
Iterator to the first element.
|
inlineconstexprnoexcept |
Pointer to the first element.
|
inlineconstexprnoexcept |
Pointer to the first element.
|
inlineconstexprnoexcept |
Iterator past the last element.
|
inlineconstexprnoexcept |
Iterator past the last element.
|
inlineconstexprnoexcept |
Set every element to a value.
| [in] | a_value | Value to assign. |
|
inlineconstexprnoexcept |
Element-wise inequality.
| [in] | a_other | Array to compare with. |
|
inlineconstexprnoexcept |
Element-wise equality.
| [in] | a_other | Array to compare with. |
|
inlineconstexprnoexcept |
Element access.
| [in] | a_i | Index, which must be less than N. |
a_i.
|
inlineconstexprnoexcept |
Element access.
| [in] | a_i | Index, which must be less than N. |
a_i.
|
inlinestaticconstexprnoexcept |
Number of elements.