WARPXM v1.10.0
Loading...
Searching...
No Matches
WmUnstructuredArray::SwapImpl Struct Reference

#include <wmunstructuredarray.h>

Inheritance diagram for WmUnstructuredArray::SwapImpl:
WmVariable::SwapImpl

Public Member Functions

virtual void swap_impl (WmVariable &varA, WmVariable &varB) const
 Swap the internal data storage of varA and varB leaving the outer shell the same, given both have same size and properties.
 
virtual bool checkCompatible_impl (const WmVariable &varA, const WmVariable &varB) const
 Check the types and structure of varA and varB are compatible for swap.
 
- Public Member Functions inherited from WmVariable::SwapImpl
virtual void swap_impl (WmVariable &varA, WmVariable &varB) const
 
virtual bool checkCompatible_impl (const WmVariable &varA, const WmVariable &varB) const
 
virtual ~SwapImpl ()=default
 

Member Function Documentation

◆ checkCompatible_impl()

virtual bool WmUnstructuredArray::SwapImpl::checkCompatible_impl ( const WmVariable varA,
const WmVariable varB 
) const
virtual

Check the types and structure of varA and varB are compatible for swap.

Parameters
varAexpected to be a WmUnstructuredArrays
varBexpected to be a WmUnstructuredArrays

Reimplemented from WmVariable::SwapImpl.

◆ swap_impl()

virtual void WmUnstructuredArray::SwapImpl::swap_impl ( WmVariable varA,
WmVariable varB 
) const
virtual

Swap the internal data storage of varA and varB leaving the outer shell the same, given both have same size and properties.

If varA and varB are not compatible for swap, behavior is undefined.

See also
checkCompatible_impl
Parameters
varAexpected to be a WmUnstructuredArrays
varBexpected to be a WmUnstructuredArrays

Reimplemented from WmVariable::SwapImpl.


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