Mallard 0.8.0
Unstructured, GPU accelerated, high-order finite volume CFD solver
Mallard website
Loading...
Searching...
No Matches
Data Class Reference

#include <data.h>

Public Member Functions

 Data (std::string name, Kokkos::View< rtype *, Kokkos::LayoutStride >::host_mirror_type view)
 Construct a new Data object.
 
 ~Data ()
 Destroy the Data object.
 
rtype & operator[] (size_t i) const
 Access element of data array.
 
std::string name () const
 Get the name of the data array.
 

Protected Attributes

std::string m_name
 
Kokkos::View< rtype *, Kokkos::LayoutStride >::host_mirror_type m_view
 

Constructor & Destructor Documentation

◆ Data()

Data::Data ( std::string  name,
Kokkos::View< rtype *, Kokkos::LayoutStride >::host_mirror_type  view 
)
inline

Construct a new Data object.

Parameters
nameName of data array.
viewPointer to view of data array.

◆ ~Data()

Data::~Data ( )
inline

Destroy the Data object.

Member Function Documentation

◆ name()

std::string Data::name ( ) const
inline

Get the name of the data array.

Returns
Name of data array.

◆ operator[]()

rtype & Data::operator[] ( size_t  i) const
inline

Access element of data array.

Parameters
iIndex of element to access.
Returns
Reference to element.

Member Data Documentation

◆ m_name

std::string Data::m_name
protected

◆ m_view

Kokkos::View<rtype*,Kokkos::LayoutStride>::host_mirror_type Data::m_view
protected

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