Commit Graph

264 Commits

Author SHA1 Message Date
Deukhoofd e2c9d9899a
Add string terminator to test. 2020-04-07 18:57:11 +02:00
Deukhoofd 6b4d18f434
Resolve issue where ConstString can lose internal string representation due to not owning it.
This sadly meant most constexpr constructors had to be removed, as it needs to copy the string.
2020-04-07 18:54:23 +02:00
Deukhoofd 460f9308a0
Fixed issue with Valgrind. 2020-04-04 18:01:35 +02:00
Deukhoofd 6f60cd7c96
Rework of Random class. Now ensures better randomness, is more performant, and has function for retrieving seed. 2020-04-04 17:48:05 +02:00
Deukhoofd 4f563e6e67
Allow functions for GetNonNull and GetOptional to work when const. 2020-03-30 19:06:08 +02:00
Deukhoofd 4c1ca2e822
Allow transferring borrowedPtr into NonNull variant and vice versa. 2020-03-30 18:52:08 +02:00
Deukhoofd f8b4d79e28
Allow access of raw template type when const. 2020-03-30 18:29:49 +02:00
Deukhoofd 86c7aba0ea
Fixed OwnPtr not returning right version on BorrowNonNull. 2020-03-30 18:20:02 +02:00
Deukhoofd 16b082f00d
Allow borrowing as nonnull or optional pointers. 2020-03-30 17:58:11 +02:00
Deukhoofd 9e2805f684
Allow implicit converting of raw pointers to OwnPtrs. 2020-03-30 17:45:31 +02:00
Deukhoofd 96b2bd61ab
Default the BorrowedPtr and OwnPtr to nullptr. 2020-03-30 17:41:08 +02:00
Deukhoofd 6c5fe1bf93
Allow blank constructors for pointer types. 2020-03-30 17:28:21 +02:00
Deukhoofd d46b0d798a
Added const variants of Borrow. 2020-03-29 19:14:30 +02:00
Deukhoofd ae73e60f94
Allow assignment operator for OwnPtr. 2020-03-29 19:01:28 +02:00
Deukhoofd 72b545f5e3
Add functionality for Collections to get underlying items. 2020-03-29 18:49:10 +02:00
Deukhoofd 74ac2dbbc3
More functionality for memory classes. 2020-03-29 18:09:55 +02:00
Deukhoofd 872c275bc7
Support for pointer holder outline. 2020-03-28 21:08:55 +01:00
Deukhoofd bfedd15560
Add new line at end of macro file for Windows build. 2020-03-26 21:59:20 +01:00
Deukhoofd eb84eb0588
Macro support for unpacking weak pointers. 2020-03-26 21:55:00 +01:00
Deukhoofd 7524c2d61c
Added IndexOf support for List. 2020-03-24 22:56:40 +01:00
Deukhoofd 0b6220b2bf
Add Remove function to List, to remove items at a given index. 2020-03-22 19:08:38 +01:00
Deukhoofd 97bd13a1cb
Fixed not being able to assign to bool list. 2020-03-22 18:44:50 +01:00
Deukhoofd cc86041b06
Switch At functions around. 2020-03-22 18:34:05 +01:00
Deukhoofd 196bf5e1da
Assert index is not negative for List. 2020-03-22 18:21:29 +01:00
Deukhoofd 79ab962e2f
Fixed not being to iterate over const collections. 2020-03-22 18:15:13 +01:00
Deukhoofd c1167e704a
Implements Resize function for List. 2020-03-22 18:01:39 +01:00
Deukhoofd 0f07837558
Implements List constructor for raw C arrays. 2020-03-22 17:50:17 +01:00
Deukhoofd b47757d343
Make List Count function const. 2020-03-22 17:35:57 +01:00
Deukhoofd ba586bf262
Support for getting C array data from List. 2020-03-22 17:32:31 +01:00
Deukhoofd 7c98d3d4eb
Implements Remove function for Dictionary. 2020-03-22 17:18:53 +01:00
Deukhoofd 1f882b9596
Implements clear functions on Dictionary and List. 2020-03-22 17:14:51 +01:00
Deukhoofd 5e9ffa0d69
Implements List collection type for safe access to vector. 2020-03-22 17:09:25 +01:00
Deukhoofd e6d58723fc
Don't require capacity parameter for Dictionary. 2020-03-22 16:55:07 +01:00
Deukhoofd 3bbb12f485
Add initializer list support for Dictionary. 2020-03-22 16:53:42 +01:00
Deukhoofd e4c203027b
Make NO_ASSERT disable a lot of Dictionary safety in exchange for a bit more speed. 2020-03-22 16:43:31 +01:00
Deukhoofd 5de26d0866
Implements Dictionary class, a wrapper for the unordered_map, with more safety. 2020-03-22 16:38:48 +01:00
Deukhoofd e07e07253d
Tweaks and fixes for Assert 2020-03-22 12:20:39 +01:00
Deukhoofd 638a414961
More fixes for Assert. 2020-03-22 12:05:16 +01:00
Deukhoofd aa1b90554f
More fixes for Assert. 2020-03-22 12:02:02 +01:00
Deukhoofd 2d4cc2cd80
Further fixes for Assert 2020-03-22 11:52:08 +01:00
Deukhoofd 07f215a4fa
Fixes for AssertNotNull 2020-03-22 11:41:55 +01:00
Deukhoofd 657767536f
Implements AssertNotNull macro 2020-03-22 11:32:54 +01:00
Deukhoofd 0fe488b1c2
Implements Assert macro. 2020-03-22 11:14:47 +01:00
Deukhoofd 5710329f39
Support to get highest and lowest values from enums. 2020-03-12 19:28:26 +01:00
Deukhoofd 784af6d51a
Fixed cmake list on Windows. 2020-03-11 11:50:56 +01:00
Deukhoofd 623dd9cb20
Prefix macro utils macros that are not intended for external use. 2020-03-11 11:49:56 +01:00
Deukhoofd e0f9629946
Added helper functions for first and last value in an enum, made MacroUtils be generated through python file, now allowing up to 256 Enum values. 2020-03-11 11:38:36 +01:00
Deukhoofd 209e802699
Adds function to ConstString to just get the hash of a value. 2020-02-29 14:11:55 +01:00
Deukhoofd 4c36946496
Implements .Empty method on constString types. 2020-02-27 18:05:24 +01:00
Deukhoofd e9d36a6237
Better handling of Windows not handling constexpr on std::string. 2020-02-27 17:30:31 +01:00