MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / swap

Method swap

core/ImageSource.cpp:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17void ImageSource::swap(ImageSource& first, ImageSource& second) {
18 std::swap(first._colorType, second._colorType);
19 std::swap(first._dataType, second._dataType);
20 std::swap(first._spacing, second._spacing);
21 std::swap(first._samplesPerPixel, second._samplesPerPixel);
22 std::swap(first._isValid, second._isValid);
23}
24
25const int ImageSource::getSamplesPerPixel() const {
26 if (_isValid) {

Callers

nothing calls this directly

Calls 1

swapFunction · 0.85

Tested by

no test coverage detected