/src/serenity/AK/Noncopyable.h
Line | Count | Source |
1 | | /* |
2 | | * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> |
3 | | * |
4 | | * SPDX-License-Identifier: BSD-2-Clause |
5 | | */ |
6 | | |
7 | | #pragma once |
8 | | |
9 | | #define AK_MAKE_NONCOPYABLE(c) \ |
10 | | private: \ |
11 | | c(c const&) = delete; \ |
12 | | c& operator=(c const&) = delete |
13 | | |
14 | | #define AK_MAKE_NONMOVABLE(c) \ |
15 | | private: \ |
16 | | c(c&&) = delete; \ |
17 | | c& operator=(c&&) = delete |
18 | | |
19 | | #define AK_MAKE_DEFAULT_MOVABLE(c) \ |
20 | | public: \ |
21 | 1.81G | c(c&&) = default; \ AK::String::String(AK::String&&) Line | Count | Source | 21 | 1.81G | c(c&&) = default; \ |
Unexecuted instantiation: Gfx::JPEGXL::EntropyDecoder::EntropyDecoder(Gfx::JPEGXL::EntropyDecoder&&) Unexecuted instantiation: Gfx::JPEGXL::Detail::Channel<int>::Channel(Gfx::JPEGXL::Detail::Channel<int>&&) Unexecuted instantiation: Gfx::JPEGXL::Detail::Channel<float>::Channel(Gfx::JPEGXL::Detail::Channel<float>&&) AK::FlyString::FlyString(AK::FlyString&&) Line | Count | Source | 21 | 3.44M | c(c&&) = default; \ |
AK::CircularBuffer::CircularBuffer(AK::CircularBuffer&&) Line | Count | Source | 21 | 253k | c(c&&) = default; \ |
Unexecuted instantiation: Core::System::AddressInfoVector::AddressInfoVector(Core::System::AddressInfoVector&&) Unexecuted instantiation: Core::ThreadEventQueue::Private::QueuedEvent::QueuedEvent(Core::ThreadEventQueue::Private::QueuedEvent&&) HTTP::HttpRequest::HttpRequest(HTTP::HttpRequest&&) Line | Count | Source | 21 | 1.07k | c(c&&) = default; \ |
Unexecuted instantiation: Web::HTML::HTMLToken::HTMLToken(Web::HTML::HTMLToken&&) Unexecuted instantiation: Web::ServiceWorker::Registration::Registration(Web::ServiceWorker::Registration&&) Unexecuted instantiation: SQL::Result::Result(SQL::Result&&) |
22 | 95.0M | c& operator=(c&&) = default AK::String::operator=(AK::String&&) Line | Count | Source | 22 | 95.0M | c& operator=(c&&) = default |
Unexecuted instantiation: Gfx::JPEGXL::EntropyDecoder::operator=(Gfx::JPEGXL::EntropyDecoder&&) Unexecuted instantiation: Gfx::JPEGXL::Detail::Channel<int>::operator=(Gfx::JPEGXL::Detail::Channel<int>&&) Unexecuted instantiation: Gfx::JPEGXL::Detail::Channel<float>::operator=(Gfx::JPEGXL::Detail::Channel<float>&&) AK::FlyString::operator=(AK::FlyString&&) Line | Count | Source | 22 | 40.3k | c& operator=(c&&) = default |
AK::IntrusiveBinaryHeap<AK::BinaryHeap<unsigned short, unsigned short, 288ul>::Node, AK::BinaryHeap<unsigned short, unsigned short, 288ul>::NodeComparator, AK::BinaryHeap<unsigned short, unsigned short, 288ul>::NodeIndexSetter, 0ul>::operator=(AK::IntrusiveBinaryHeap<AK::BinaryHeap<unsigned short, unsigned short, 288ul>::Node, AK::BinaryHeap<unsigned short, unsigned short, 288ul>::NodeComparator, AK::BinaryHeap<unsigned short, unsigned short, 288ul>::NodeIndexSetter, 0ul>&&) Line | Count | Source | 22 | 46.4k | c& operator=(c&&) = default |
Unexecuted instantiation: Web::HTML::HTMLToken::operator=(Web::HTML::HTMLToken&&) Unexecuted instantiation: Web::ServiceWorker::Registration::operator=(Web::ServiceWorker::Registration&&) |
23 | | |
24 | | #define AK_MAKE_DEFAULT_COPYABLE(c) \ |
25 | | public: \ |
26 | 1.11G | c(c const&) = default; \ AK::String::String(AK::String const&) Line | Count | Source | 26 | 1.11G | c(c const&) = default; \ |
Unexecuted instantiation: AK::FlyString::FlyString(AK::FlyString const&) |
27 | 37.9M | c& operator=(c const&) = default AK::String::operator=(AK::String const&) Line | Count | Source | 27 | 37.9M | c& operator=(c const&) = default |
AK::FlyString::operator=(AK::FlyString const&) Line | Count | Source | 27 | 10.2k | c& operator=(c const&) = default |
|