#include <wmunstructuredarray.h>
◆ 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
-
varA | expected to be a WmUnstructuredArrays |
varB | expected 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
-
varA | expected to be a WmUnstructuredArrays |
varB | expected to be a WmUnstructuredArrays |
Reimplemented from WmVariable::SwapImpl.
The documentation for this struct was generated from the following file: