Block-Structured AMR Software Framework
amrex::sundials::MemoryHelper Class Reference

A SUNDIALS SUNMemoryHelper interface to the amrex::Arena. More...

#include <AMReX_SUNMemory.H>

Public Member Functions

 MemoryHelper (::sundials::Context *sunctx)
 
 ~MemoryHelper ()
 
 MemoryHelper (const MemoryHelper &rhs)
 
 MemoryHelper (MemoryHelper &&rhs) noexcept
 
MemoryHelperoperator= (MemoryHelper const &rhs)=delete
 
MemoryHelperoperator= (MemoryHelper &&rhs) noexcept
 
 operator SUNMemoryHelper () const
 

Static Public Member Functions

static void Initialize (int nthreads)
 
static void Finalize ()
 

Private Attributes

SUNMemoryHelper helper
 
::sundials::Context * sunctx
 

Detailed Description

A SUNDIALS SUNMemoryHelper interface to the amrex::Arena.

This class allows SUNDIALS to allocate memory using the amrex::Arena.

Constructor & Destructor Documentation

◆ MemoryHelper() [1/3]

amrex::sundials::MemoryHelper::MemoryHelper ( ::sundials::Context *  sunctx)

◆ ~MemoryHelper()

amrex::sundials::MemoryHelper::~MemoryHelper ( )

◆ MemoryHelper() [2/3]

amrex::sundials::MemoryHelper::MemoryHelper ( const MemoryHelper rhs)

◆ MemoryHelper() [3/3]

amrex::sundials::MemoryHelper::MemoryHelper ( MemoryHelper &&  rhs)
noexcept

Member Function Documentation

◆ Finalize()

void amrex::sundials::MemoryHelper::Finalize ( )
static

◆ Initialize()

void amrex::sundials::MemoryHelper::Initialize ( int  nthreads)
static

◆ operator SUNMemoryHelper()

amrex::sundials::MemoryHelper::operator SUNMemoryHelper ( ) const
inline

◆ operator=() [1/2]

MemoryHelper & amrex::sundials::MemoryHelper::operator= ( MemoryHelper &&  rhs)
noexcept

◆ operator=() [2/2]

MemoryHelper& amrex::sundials::MemoryHelper::operator= ( MemoryHelper const &  rhs)
delete

Member Data Documentation

◆ helper

SUNMemoryHelper amrex::sundials::MemoryHelper::helper
private

◆ sunctx

::sundials::Context* amrex::sundials::MemoryHelper::sunctx
private

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