1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:14:58 +00:00
serenity/Userland/Libraries/LibCore
Lenny Maiorani f2336d0144 AK+Everywhere: Move custom deleter capability to OwnPtr
`OwnPtrWithCustomDeleter` was a decorator which provided the ability
to add a custom deleter to `OwnPtr` by wrapping and taking the deleter
as a run-time argument to the constructor. This solution means that no
additional space is needed for the `OwnPtr` because it doesn't need to
store a pointer to the deleter, but comes at the cost of having an
extra type that stores a pointer for every instance.

This logic is moved directly into `OwnPtr` by adding a template
argument that is defaulted to the default deleter for the type. This
means that the type itself stores the pointer to the deleter instead
of every instance and adds some type safety by encoding the deleter in
the type itself instead of taking a run-time argument.
2022-12-17 16:00:08 -05:00
..
Account.cpp LibCore: Define and use a fallible, OS-independent getpwent(_r) wrapper 2022-12-14 07:25:36 -05:00
Account.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
AnonymousBuffer.cpp LibCore: Convert AnonymousBuffer to use System::anon_create 2022-02-10 21:35:17 +01:00
AnonymousBuffer.h Everywhere: Run clang-format 2022-12-03 23:52:23 +00:00
ArgsParser.cpp Everywhere: Use C++ concepts instead of requires clauses 2022-12-09 11:25:30 +00:00
ArgsParser.h Everywhere: Use C++ concepts instead of requires clauses 2022-12-09 11:25:30 +00:00
CMakeLists.txt LibCore: Move the MemoryStream implementation into a separate file 2022-12-15 13:28:29 +00:00
Command.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Command.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ConfigFile.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
ConfigFile.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
DateTime.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
DateTime.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
Debounce.h LibCore: Add Core::debounce(function, timeout) 2022-07-19 11:10:02 +01:00
DeferredInvocationContext.h Libraries: Use default constructors/destructors in LibCore 2022-03-10 18:04:26 -08:00
Directory.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Directory.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
DirIterator.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
DirIterator.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ElapsedTimer.cpp LibCore: Add ElapsedTimer::reset() 2021-10-28 11:21:18 +02:00
ElapsedTimer.h LibCore: Add ElapsedTimer::reset() 2021-10-28 11:21:18 +02:00
Event.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
Event.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
EventLoop.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
EventLoop.h LibAudio: Prevent racy eternal deadlock of the audio enqueue thread 2022-07-22 19:35:41 +01:00
File.cpp LibCore: Add fd overload of File::is_directory and File::is_device 2022-12-14 18:26:25 +00:00
File.h LibCore: Add fd overload of File::is_directory and File::is_device 2022-12-14 18:26:25 +00:00
FilePermissionsMask.cpp LibCore: Implement four-digit modes for FilePermissionsMask parsing 2022-07-27 21:45:01 +00:00
FilePermissionsMask.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
FileStream.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
FileWatcher.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
FileWatcher.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Forward.h Core: Remove non-existent classes from Forward.h 2022-02-18 23:31:28 +00:00
GetPassword.cpp LibCore: Use LibCore syscall wrappers in get_password() 2021-11-30 23:34:40 +01:00
GetPassword.h LibCore: Use ErrorOr<T> for Core::get_password() 2021-11-08 00:35:27 +01:00
Group.cpp LibCore: Protect Core::Group against null group::gr_mem members 2022-12-14 07:25:36 -05:00
Group.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
InputBitStream.h LibCore: Use the new Handle type for the BitStream types 2022-12-12 16:21:39 +00:00
IODevice.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
IODevice.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LocalServer.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LocalServer.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
LockFile.cpp LibCore+Userland: Remove File::ensure_parent_directories 2022-04-11 00:08:48 +02:00
LockFile.h Everywhere: Use my cool new @serenityos.org email address 2021-09-01 11:37:25 +04:30
MappedFile.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
MappedFile.h LibCore+LibGfx: Pass file-path as StringView 2022-06-14 23:00:52 +02:00
MemoryStream.cpp LibCore: Add an automatically allocating MemoryStream 2022-12-15 13:28:29 +00:00
MemoryStream.h LibCore: Add an automatically allocating MemoryStream 2022-12-15 13:28:29 +00:00
MimeData.cpp Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
MimeData.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
NetworkJob.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
NetworkJob.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
NetworkResponse.h Libraries: Use default constructors/destructors in LibCore 2022-03-10 18:04:26 -08:00
Notifier.cpp LibCore: Remove unused header includes 2021-08-01 08:10:16 +02:00
Notifier.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Object.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Object.h LibCore: Support write-only Object properties 2022-12-09 00:05:30 +01:00
Process.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Process.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
ProcessStatisticsReader.cpp LibCore: Rename Stream::read_all to read_until_eof 2022-12-12 14:16:42 +01:00
ProcessStatisticsReader.h LibCore: Use Core::Stream for ProcessStatisticsReader 2022-12-10 11:49:24 +00:00
Promise.h Everywhere: Remove unnecessary mutable attributes from lambdas 2022-11-19 14:37:31 +00:00
Property.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Property.h LibCore: Support write-only Object properties 2022-12-09 00:05:30 +01:00
Proxy.h Userland: Properly define IPC::encode and IPC::decode specializations 2022-11-15 13:25:51 -05:00
SecretString.cpp Everywhere: Convert ByteBuffer factory methods from Optional -> ErrorOr 2022-01-24 22:36:09 +01:00
SecretString.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
SessionManagement.cpp LibCore: Use Core::Stream for ProcessStatisticsReader 2022-12-10 11:49:24 +00:00
SessionManagement.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SharedCircularQueue.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
SocketAddress.h Everywhere: Rename to_{string => deprecated_string}() where applicable 2022-12-06 08:54:33 +01:00
SOCKSProxyClient.cpp LibCore: Use AllocatingMemoryStream for SOCKSProxyClient 2022-12-15 13:28:29 +00:00
SOCKSProxyClient.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
StandardPaths.cpp LibCore: Use the user's root session ID for standard runtime path 2022-12-15 17:29:19 +00:00
StandardPaths.h LibCore: Add a standard path for runtime communication files 2022-12-11 10:08:17 -05:00
Stream.cpp LibCore: Use System::getaddrinfo() in Socket::resolve_host 2022-12-15 13:38:13 +00:00
Stream.h LibCore: Add Stream::Handle 2022-12-12 16:21:39 +00:00
System.cpp AK+Everywhere: Move custom deleter capability to OwnPtr 2022-12-17 16:00:08 -05:00
System.h AK+Everywhere: Move custom deleter capability to OwnPtr 2022-12-17 16:00:08 -05:00
SystemServerTakeover.cpp LibCore: Use ';' to split socket path in SOCKET_TAKEOVER 2022-12-15 12:33:36 -05:00
SystemServerTakeover.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TCPServer.cpp LibCore: Allow TCPServer's port to be reused after it exits 2022-11-14 13:43:24 -05:00
TCPServer.h LibCore: Allow TCPServer's port to be reused after it exits 2022-11-14 13:43:24 -05:00
TempFile.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
TempFile.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Timer.cpp Libraries: Use default constructors/destructors in LibCore 2022-03-10 18:04:26 -08:00
Timer.h Libraries: Use default constructors/destructors in LibCore 2022-03-10 18:04:26 -08:00
UDPServer.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
UDPServer.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
UmaskScope.h Everywhere: Fix order of includes and #pragma once 2022-09-18 18:30:05 -07:00
Version.cpp AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00
Version.h AK+Everywhere: Rename String to DeprecatedString 2022-12-06 08:54:33 +01:00