Chombo + EB  3.2
Public Member Functions | Private Attributes | List of all members
ArrayViewData Class Reference

Special LayoutData type for use with ArrayView. More...

#include <ArrayViewData.H>

Public Member Functions

 ArrayViewData ()
 
 ~ArrayViewData ()
 
 ArrayViewData (LayoutData< BaseFab< Real > > *a_layoutdata_ptr)
 
 ArrayViewData (LayoutData< FArrayBox > *a_layoutdata_ptr)
 
BaseFab< Real > & operator[] (int a_elem)
 Access a single FAB in the LayoutData using its internal index. More...
 
void set (int a_elem, BaseFab< Real > *a_fab_ptr)
 Substitute a different FAB into the LayoutData. More...
 

Private Attributes

LayoutData< BaseFab< Real > > * m_layoutdata_ptr
 

Detailed Description

Special LayoutData type for use with ArrayView.

ArrayViewData is a wrapper around LayoutData for BaseFab<Real> or FArrayBox for use in ArrayView. It provides random access to the individual FABs and the ability to directly set the data in them. It is intended to work only in ArrayView. Any other attept to use this class is unsupported.

Constructor & Destructor Documentation

◆ ArrayViewData() [1/3]

ArrayViewData::ArrayViewData ( )
inline

◆ ~ArrayViewData()

ArrayViewData::~ArrayViewData ( )
inline

◆ ArrayViewData() [2/3]

ArrayViewData::ArrayViewData ( LayoutData< BaseFab< Real > > *  a_layoutdata_ptr)
inline

◆ ArrayViewData() [3/3]

ArrayViewData::ArrayViewData ( LayoutData< FArrayBox > *  a_layoutdata_ptr)
inline

Member Function Documentation

◆ operator[]()

BaseFab<Real>& ArrayViewData::operator[] ( int  a_elem)
inline

Access a single FAB in the LayoutData using its internal index.

References m_layoutdata_ptr, and LayoutData< T >::m_vector.

◆ set()

void ArrayViewData::set ( int  a_elem,
BaseFab< Real > *  a_fab_ptr 
)
inline

Substitute a different FAB into the LayoutData.

The caller is responsible for managing the memory used by the FAB that is being replaced.

References m_layoutdata_ptr, and LayoutData< T >::m_vector.

Member Data Documentation

◆ m_layoutdata_ptr

LayoutData<BaseFab<Real> >* ArrayViewData::m_layoutdata_ptr
private

Referenced by operator[](), and set().


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