Commit Graph

50 Commits

Author SHA1 Message Date
Wojtek Figat
9c3fd052cd Remove copyright year from source files and update to 2025 2025-04-07 19:22:21 +02:00
Wojtek Figat
38f74c8cf7 Refactor Dictionary and HashSet to use shared base class
Add const iterators
2025-01-23 23:59:31 +01:00
Wojtek Figat
f5280eab74 Refactor and improve collections code
#3043
2025-01-23 14:44:11 +01:00
Wojtek Figat
b247070840 Fix regression in Dictionary capacity and use similar improvement in HashSet 2025-01-21 15:38:14 +01:00
Wojtek Figat
1497acef58 SImplify capacity presetting for Dictionary to handle memory slack scale internally as suers care about items count only 2025-01-16 17:42:01 +01:00
Mateusz Karbowiak
dca48b335a Hash collections bucket state enum extracted
This is a small compilation time optimization by reducing total number of generated types. Should not change runtime behavior.
2024-10-31 02:41:51 +01:00
Mateusz Karbowiak
26309a0d41 Dictionary mutable key access for const accessor hack 2024-10-31 01:15:05 +01:00
Mateusz Karbowiak
7cca26bb97 Dictionary cast constiness fix 2024-10-31 01:08:44 +01:00
Mateusz Karbowiak
5d32ed7f8e Collections casts constiness fix 2024-10-31 00:49:59 +01:00
Mateusz Karbowiak
fbb840dff3 Collections de/increment operations fix
This one is more stylistic but is consistent with practice of using pre- operations for iterators.
2024-10-31 00:45:00 +01:00
Mateusz Karbowiak
9c448f75d8 Collections const correctness fix (style) 2024-10-31 00:29:38 +01:00
Mateusz Karbowiak
66b6a29ed4 Collections iterator move noexcept fix 2024-10-31 00:21:34 +01:00
Mateusz Karbowiak
8cb7fb48ce Dictionary returning const item fix
Returning const object does not prevent from using mutable by triggering copy constructor.
2024-10-31 00:21:33 +01:00
Mateusz Karbowiak
5439efc559 Collections implicit cast constructor fix
This one prohibits annoying casts. It is also important for future context injection and follows STL practice.
2024-10-30 22:30:55 +01:00
Mateusz Karbowiak
f77f551b72 Collections type aliasing fix
This one is debatable. It follows modern C++.
2024-10-30 22:30:54 +01:00
Mateusz Karbowiak
a55866d558 Collections casts fix 2024-10-30 22:18:47 +01:00
Mateusz Karbowiak
02db7d02f2 Collections const-correctness fix 2024-10-30 21:06:16 +01:00
Wojtek Figat
23f60da40d Fix various code issues found using PVS-Studio 2024-08-22 20:24:52 +02:00
Wojtek Figat
859c420d76 Update year in copyright note 2024-02-26 19:00:48 +01:00
Mateusz Karbowiak
f3497a2a55 Fix swapping core collections 2023-12-08 20:50:52 +01:00
Wojtek Figat
4f8aff4352 Refactor memory allocators to use dedicated path when moving collection data that is not blittable
#2001 #1920
2023-11-28 16:02:36 +01:00
Wojtek Figat
51c0a6e100 Fix crash regression on Dictionary and HashSet capacity set to 0 when it contains elements 2023-11-06 14:32:04 +01:00
Wojtek Figat
087cfd7a8c Refactor HashSet and Dictionary collections capacity to handle rehashing when too many elements were deleted 2023-11-02 19:59:01 +01:00
Wojtek Figat
09f2be907e Merge remote-tracking branch 'origin/master' into 1.7
# Conflicts:
#	Flax.flaxproj
2023-10-09 12:40:47 +02:00
bc658bbfba Fix Dictionary iterator comparison
Missing change from 9291295a4d
2023-10-07 14:25:07 +03:00
Wojtek Figat
b960600102 Optimize scenes loading with Job System 2023-10-01 10:55:01 +02:00
Wojtek Figat
53deeff116 Missing change from 9291295a4d 2023-09-10 11:33:08 +02:00
Wojtek Figat
9291295a4d Fix Dictionary and HashSet iterators to prevent unwanted data copies
#1361
2023-09-10 11:25:36 +02:00
Wojciech Figat
a7e428a21c Merge branch 'master' into 1.5
# Conflicts:
#	Content/Shaders/GI/DDGI.flax
#	Content/Shaders/GI/GlobalSurfaceAtlas.flax
#	Content/Shaders/TAA.flax
#	Content/Shaders/VolumetricFog.flax
#	Source/Editor/CustomEditors/Editors/ActorTagEditor.cs
#	Source/Engine/Core/Config/GraphicsSettings.cpp
#	Source/Engine/Engine/PostProcessEffect.cs
#	Source/Engine/Graphics/GPUResourcesCollection.cpp
#	Source/Engine/Graphics/GPUResourcesCollection.h
#	Source/Engine/Graphics/PostProcessBase.h
#	Source/FlaxEngine.Gen.cs
2023-01-10 15:37:55 +01:00
Wojciech Figat
9626e9bbb6 Update copyright year 2023-01-10 15:29:37 +01:00
Wojtek Figat
8e52e2fb10 Merge branch 'master' into 1.5 2022-11-27 12:11:50 +01:00
Wojtek Figat
b1618a88be Fix invalid rounding up to power of two in allocators
#833
2022-11-25 22:07:13 +01:00
Wojciech Figat
01a7ae8bd4 Add NetworkTransform component 2022-10-31 16:31:06 +01:00
Wojciech Figat
8dec405f4f Add iterator copy operator in collections 2022-10-21 15:40:47 +02:00
Wojtek Figat
d4d27b88f0 Format engine codebase with ReSharper 2022-06-14 19:05:04 +02:00
Wojciech Figat
551459022d Merge remote-tracking branch 'origin/master' into gi
# Conflicts:
#	Source/Editor/Windows/Assets/VisualScriptWindow.cs
2022-05-02 10:38:14 +02:00
Wojtek Figat
158c29e598 Add **Dictionaries to Visual Scripting** 2022-04-27 22:47:54 +02:00
Wojciech Figat
c53a463bb1 Refactor HashSet to support custom allocator 2022-04-19 17:14:29 +02:00
Wojciech Figat
a6c14bd986 Fix Dictionary::Remove return value if empty 2022-04-16 22:49:03 +02:00
Wojciech Figat
8082f5f909 Minor fixes and changes 2022-02-21 20:14:46 +01:00
Wojciech Figat
8c2241c6dc Update copyright year 2022-01-14 13:31:12 +01:00
intolerantape
f05f9d5ade Made Dictionary support movable value types with deleted copy constructors. 2021-12-02 07:17:36 -08:00
Wojciech Figat
653c209567 Fixes and tweaks for C++ API reference docs generation 2021-12-02 10:13:20 +01:00
Wojtek Figat
e0be4e202a Fix crash when resizing Dictionary to 0 2021-07-13 18:28:02 +02:00
Wojtek Figat
d5db9dd00c Optimize physics simulation collisions pair cache 2021-07-08 10:10:19 +02:00
Wojtek Figat
4765e1af12 Add support for allocator type in Dictionary 2021-07-08 00:34:50 +02:00
Wojtek Figat
0e75dba142 Optimize C++ compilation time 2021-04-30 16:27:57 +02:00
Wojtek Figat
178f0b9e3a Fix Dictionary to call ctor/dtor for Buckets when needed 2021-01-21 14:27:26 +01:00
Jean-Baptiste Perrier
03eb39afe6 Bumping all copyright headers to 2021. 2021-01-02 14:28:49 +01:00
Wojtek Figat
6fb9eee74c You're breathtaking! 2020-12-07 23:40:54 +01:00