Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::ArrayView< T > Struct Template Reference

#include <AMReX_ParticleTileRT.H>

Public Types

using size_type = Long
 

Public Member Functions

__host__ __device__ T & operator[] (const size_type i) const
 
__host__ __device__ T * data () const
 
__host__ __device__ T * dataPtr () const
 
__host__ __device__ T * begin () const
 
__host__ __device__ T * end () const
 
__host__ __device__ operator T* () const
 

Public Attributes

T * m_data = nullptr
 
size_type m_capacity = 0
 

Member Typedef Documentation

◆ size_type

template<class T >
using amrex::ArrayView< T >::size_type = Long

Member Function Documentation

◆ begin()

template<class T >
__host__ __device__ T * amrex::ArrayView< T >::begin ( ) const
inline

◆ data()

template<class T >
__host__ __device__ T * amrex::ArrayView< T >::data ( ) const
inline

◆ dataPtr()

template<class T >
__host__ __device__ T * amrex::ArrayView< T >::dataPtr ( ) const
inline

◆ end()

template<class T >
__host__ __device__ T * amrex::ArrayView< T >::end ( ) const
inline

◆ operator T*()

template<class T >
__host__ __device__ amrex::ArrayView< T >::operator T* ( ) const
inlineexplicit

◆ operator[]()

template<class T >
__host__ __device__ T & amrex::ArrayView< T >::operator[] ( const size_type  i) const
inline

Member Data Documentation

◆ m_capacity

template<class T >
size_type amrex::ArrayView< T >::m_capacity = 0

◆ m_data

template<class T >
T* amrex::ArrayView< T >::m_data = nullptr

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