MFEM  v4.5.1
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | List of all members
mfem::SundialsMemHelper Class Reference

#include <sundials.hpp>

Public Member Functions

 SundialsMemHelper ()=default
 Default constructor – object must be moved to. More...
 
 SundialsMemHelper (SUNContext context)
 
 SundialsMemHelper (SundialsMemHelper &&that_helper)
 Implement move assignment. More...
 
 SundialsMemHelper (const SundialsMemHelper &that_helper)=delete
 Disable copy construction. More...
 
 ~SundialsMemHelper ()
 
SundialsMemHelperoperator= (const SundialsMemHelper &)=delete
 Disable copy assignment. More...
 
SundialsMemHelperoperator= (SundialsMemHelper &&rhs)
 Implement move assignment. More...
 
 operator SUNMemoryHelper () const
 Typecasting to SUNDIALS' SUNMemoryHelper type. More...
 
 SundialsMemHelper ()=default
 
 SundialsMemHelper (SUNContext context)
 

Static Public Member Functions

static int SundialsMemHelper_Alloc (SUNMemoryHelper helper, SUNMemory *memptr, size_t memsize, SUNMemoryType mem_type#if(SUNDIALS_VERSION_MAJOR >=6), void *queue#endif)
 
static int SundialsMemHelper_Dealloc (SUNMemoryHelper helper, SUNMemory sunmem#if(SUNDIALS_VERSION_MAJOR >=6), void *queue#endif)
 

Detailed Description

Definition at line 70 of file sundials.hpp.

Constructor & Destructor Documentation

mfem::SundialsMemHelper::SundialsMemHelper ( )
default

Default constructor – object must be moved to.

mfem::SundialsMemHelper::SundialsMemHelper ( SUNContext  context)

Require a SUNContext as an argument (rather than calling Sundials::GetContext) to avoid undefined behavior during the construction of the Sundials singleton.

Definition at line 210 of file sundials.cpp.

mfem::SundialsMemHelper::SundialsMemHelper ( SundialsMemHelper &&  that_helper)

Implement move assignment.

Definition at line 222 of file sundials.cpp.

mfem::SundialsMemHelper::SundialsMemHelper ( const SundialsMemHelper that_helper)
delete

Disable copy construction.

mfem::SundialsMemHelper::~SundialsMemHelper ( )
inline

Definition at line 90 of file sundials.hpp.

mfem::SundialsMemHelper::SundialsMemHelper ( )
default
mfem::SundialsMemHelper::SundialsMemHelper ( SUNContext  context)
inline

Definition at line 127 of file sundials.hpp.

Member Function Documentation

mfem::SundialsMemHelper::operator SUNMemoryHelper ( ) const
inline

Typecasting to SUNDIALS' SUNMemoryHelper type.

Definition at line 99 of file sundials.hpp.

SundialsMemHelper& mfem::SundialsMemHelper::operator= ( const SundialsMemHelper )
delete

Disable copy assignment.

SundialsMemHelper & mfem::SundialsMemHelper::operator= ( SundialsMemHelper &&  rhs)

Implement move assignment.

Definition at line 228 of file sundials.cpp.

int mfem::SundialsMemHelper::SundialsMemHelper_Alloc ( SUNMemoryHelper  helper,
SUNMemory *  memptr,
size_t  memsize,
SUNMemoryType mem_type#  ifSUNDIALS_VERSION_MAJOR >=6,
void *queue#  endif 
)
static

Definition at line 235 of file sundials.cpp.

int mfem::SundialsMemHelper::SundialsMemHelper_Dealloc ( SUNMemoryHelper  helper,
SUNMemory sunmem#  ifSUNDIALS_VERSION_MAJOR >=6,
void *queue#  endif 
)
static

Definition at line 275 of file sundials.cpp.


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