GEOSX
Public Member Functions | Public Attributes | List of all members
LvArray::typeManipulation::CArray< T, N > Struct Template Reference

A wrapper around a compile time c array. More...

#include <typeManipulation.hpp>

Public Member Functions

LVARRAY_INTEL_CONSTEXPR T & operator[] (camp::idx_t const i)
 
constexpr T const & operator[] (camp::idx_t const i) const
 
constexpr camp::idx_t size ()
 

Public Attributes

data [N] = {}
 The backing c array, public so that aggregate initialization works.
 

Detailed Description

template<typename T, camp::idx_t N>
struct LvArray::typeManipulation::CArray< T, N >

A wrapper around a compile time c array.

Template Parameters
TThe type of values stored in the array.
NThe number of values in the array.

Definition at line 513 of file typeManipulation.hpp.

Member Function Documentation

◆ operator[]() [1/2]

template<typename T, camp::idx_t N>
LVARRAY_INTEL_CONSTEXPR T& LvArray::typeManipulation::CArray< T, N >::operator[] ( camp::idx_t const  i)
inline
Returns
Return a reference to the value at position i.
Parameters
iThe position to access.

Definition at line 520 of file typeManipulation.hpp.

◆ operator[]() [2/2]

template<typename T, camp::idx_t N>
constexpr T const& LvArray::typeManipulation::CArray< T, N >::operator[] ( camp::idx_t const  i) const
inline
Returns
Return a const reference to the value at position i.
Parameters
iThe position to access.

Definition at line 528 of file typeManipulation.hpp.

◆ size()

template<typename T, camp::idx_t N>
constexpr camp::idx_t LvArray::typeManipulation::CArray< T, N >::size ( )
inline
Returns
Return the size of the array.

Definition at line 535 of file typeManipulation.hpp.


The documentation for this struct was generated from the following file: