Commit Graph

68 Commits

Author SHA1 Message Date
Deukhoofd ce1268b1de
Adds OptionalScopedPtr, made ScopedPtr non nullable, fixes some APIs on the optional pointer variants.
continuous-integration/drone/push Build is passing Details
2021-03-27 11:03:41 +01:00
Deukhoofd 0e49c58647
Delete comparison with nullptr for non-null pointers.
continuous-integration/drone/push Build is passing Details
2020-12-13 11:51:47 +01:00
Deukhoofd 90bb8d54b6
Rename Assert.hpp --> Ensure.hpp, style fixes.
continuous-integration/drone/push Build is passing Details
2020-12-13 11:45:00 +01:00
Deukhoofd 4e854516c1
Rename Assert macro to Ensure, clean up exception to be in line with THROW.
continuous-integration/drone/push Build is passing Details
2020-12-13 11:41:41 +01:00
Deukhoofd 4466aeeee6
Fixes OptionalBorrowedPtr casts.
continuous-integration/drone/push Build is passing Details
2020-12-12 13:50:09 +01:00
Deukhoofd 362e4bf59b
Fixes inequality with raw pointer with smart pointers being inverted.
continuous-integration/drone/push Build is passing Details
2020-12-12 12:10:37 +01:00
Deukhoofd 7ec2a3f2b0
Fixes naming.
continuous-integration/drone/push Build is passing Details
2020-12-12 11:57:47 +01:00
Deukhoofd b909fc720a
Style fixes.
continuous-integration/drone/push Build is passing Details
2020-12-12 11:56:13 +01:00
Deukhoofd a972162d6e
Adds OptionalUniquePtrList
continuous-integration/drone/push Build is passing Details
2020-12-12 11:53:32 +01:00
Deukhoofd 9f064c1e25
Fixes optional pointers.
continuous-integration/drone/push Build is passing Details
2020-12-12 11:37:19 +01:00
Deukhoofd f704a6c2f7
Fixes copy constructor in OptionalBorrowedPtr being broken.
continuous-integration/drone/push Build is passing Details
2020-12-12 11:30:22 +01:00
Deukhoofd 5ef9d5f6fc
Fixes assignment of raw pointers to smart pointers being broken.
continuous-integration/drone/push Build is passing Details
2020-12-11 17:27:58 +01:00
Deukhoofd 6f932f375f
Fixes style.
continuous-integration/drone/push Build is passing Details
2020-12-11 16:19:36 +01:00
Deukhoofd 3b4ba7c82b
Add trivial constructors to pointers.
continuous-integration/drone/push Build is passing Details
2020-12-11 16:14:12 +01:00
Deukhoofd 0116ed8f4c
Fix specialization error.
continuous-integration/drone/push Build is passing Details
2020-12-11 15:37:46 +01:00
Deukhoofd 26fea2ac20
Reorganise memory model to make it clear Memory.hpp should be referenced.
continuous-integration/drone/push Build is passing Details
2020-12-11 15:29:27 +01:00
Deukhoofd c4a4aedb04
Even more documentation.
continuous-integration/drone/push Build is passing Details
2020-12-11 15:25:24 +01:00
Deukhoofd d133b0a6fb
Adds documentation and fixes a couple issues.
continuous-integration/drone/push Build is failing Details
2020-12-11 15:22:21 +01:00
Deukhoofd efdce7b74c
Several fixes for new memory model.
continuous-integration/drone/push Build is failing Details
2020-12-11 15:12:17 +01:00
Deukhoofd 0e6ae18a32
Reworked memory model.
continuous-integration/drone/push Build is failing Details
2020-12-11 14:58:16 +01:00
Deukhoofd 51c7ba1c50
Use a precompiled header for many std includes.
continuous-integration/drone/push Build is passing Details
2020-09-25 11:06:55 +02:00
Deukhoofd 74d7e23056
Style fixes.
continuous-integration/drone/push Build is passing Details
2020-09-24 21:02:22 +02:00
Deukhoofd f20b55b0d5
Lots more documentation.
continuous-integration/drone/push Build is failing Details
2020-09-24 20:40:21 +02:00
Deukhoofd 31b63d56db
Lots of documentation.
continuous-integration/drone/push Build is passing Details
2020-09-22 19:32:40 +02:00
Deukhoofd f158dbf8a2
Throw all exceptions with Arbutils exception. 2020-08-15 14:50:17 +02:00
Deukhoofd fb6b04bf03
Style Fix
continuous-integration/drone/push Build is passing Details
2020-08-10 17:22:47 +02:00
Deukhoofd 6e7a28d754
Support for swapping in a UniquePtrList.
continuous-integration/drone/push Build is passing Details
2020-08-10 17:20:37 +02:00
Deukhoofd 5fda89bc72
Add support for setting and taking ownership on a pointer in UniquePtrList.
continuous-integration/drone/push Build is passing Details
2020-07-25 14:28:00 +02:00
Deukhoofd 544c541bc3
Remove dereference operator as it just causes issues.
continuous-integration/drone/push Build is passing Details
2020-06-26 17:49:42 +02:00
Deukhoofd 7da8a46c45
Hopefully fixes issues with incomplete types in BorrowedPtrs.
continuous-integration/drone/push Build is passing Details
2020-06-26 17:42:43 +02:00
Deukhoofd d3c9998afa
Fixes for dereference operator.
continuous-integration/drone/push Build is passing Details
2020-06-26 17:31:52 +02:00
Deukhoofd c08224ed26
Style fixes.
continuous-integration/drone/push Build is passing Details
2020-06-26 17:18:50 +02:00
Deukhoofd 7fe8c80141
Fixed issue where the dereferencing function broke compilation on some compilers.
continuous-integration/drone/push Build is passing Details
2020-06-26 17:17:06 +02:00
Deukhoofd 72aad2a5e3
Fixed dereference operators being noexcept.
continuous-integration/drone/push Build is passing Details
2020-06-26 16:31:33 +02:00
Deukhoofd 8eba3b28ff
Add dereference operator for BorrowedPtr.
continuous-integration/drone/push Build is passing Details
2020-06-26 13:13:46 +02:00
Deukhoofd d547046752
Assert BorrowedPtr is not null when trying to dereference it.
continuous-integration/drone/push Build is passing Details
2020-06-26 13:12:58 +02:00
Deukhoofd f59ec6c957
Follow code style with noexcept, add Const() function to BorrowedPtr to return a const pointer of itself.
continuous-integration/drone/push Build is passing Details
2020-06-20 17:45:41 +02:00
Deukhoofd 893aa969d5
Make BorrowedPtr hashable.
continuous-integration/drone/push Build is passing Details
2020-06-02 16:03:47 +02:00
Deukhoofd 4323e59ed4
Further fixes for Remove function on UniquePtrList
continuous-integration/drone/push Build is passing Details
2020-06-02 14:40:59 +02:00
Deukhoofd 44fc403fb6
Fixes for Remove function on UniquePtrList
continuous-integration/drone/push Build is passing Details
2020-06-02 14:28:09 +02:00
Deukhoofd 5196bed8aa
Implement Remove function for UniquePtrList.
continuous-integration/drone/push Build is passing Details
2020-06-02 13:57:40 +02:00
Deukhoofd ad2d3be7e4
Add iterator for const version of UniquePtrList.
continuous-integration/drone/push Build is passing Details
2020-05-31 18:50:22 +02:00
Deukhoofd a3a0859b94
Style fixes.
continuous-integration/drone/push Build is passing Details
2020-05-31 17:16:20 +02:00
Deukhoofd 8ecf765ead
Make retrieve operation a const.
continuous-integration/drone/push Build is passing Details
2020-05-31 17:06:04 +02:00
Deukhoofd 262156fbd2
Allow initialization of UniquePtrList from vector of pointers.
continuous-integration/drone/push Build is passing Details
2020-05-31 16:58:45 +02:00
Deukhoofd bfe1fcc805
Style fixes.
continuous-integration/drone/push Build is passing Details
2020-05-31 16:40:33 +02:00
Deukhoofd b7f1812153
Helper collection class that functions as list of unique pointers.
continuous-integration/drone/push Build is passing Details
2020-05-31 16:37:49 +02:00
Deukhoofd 0b740ee24d
Fixed cast functions on BorrowedPtr being invalid.
continuous-integration/drone/push Build is passing Details
2020-05-26 19:40:08 +02:00
Deukhoofd 90bda57d79
Renamed borrowed ptr to be in line with other types.
continuous-integration/drone/push Build is passing Details
2020-05-26 17:39:27 +02:00
Deukhoofd c8ca951dd8
Reduce namespace length further 2020-05-26 17:36:39 +02:00