Commit Graph

1871 Commits

Author SHA1 Message Date
Sebastian Messmer
6442512877 Allow dereferencing rvalues in unique_ref 2015-06-28 17:34:23 +02:00
Sebastian Messmer
72cb9fa038 When calling left()/right()/left_opt()/right_opt() on a rvalue reference, it performs a move and returns a rvalue reference 2015-06-28 17:25:13 +02:00
Sebastian Messmer
c5822b97f4 Use optional::value() instead of optional::get() 2015-06-28 17:05:06 +02:00
Sebastian Messmer
b47fd3f671 Use optional::value() instead of optional::get() 2015-06-28 17:02:20 +02:00
Sebastian Messmer
dc15ac22ca Use optional::value() instead of optional::get() 2015-06-28 17:01:50 +02:00
Sebastian Messmer
5ea654445c Use optional::value() instead of optional::get() in test cases 2015-06-28 16:59:13 +02:00
Sebastian Messmer
7ae30280f3 Use optional::value() instead of options::get() in test cases 2015-06-28 16:49:35 +02:00
Sebastian Messmer
de5dd8a838 Use optional::value() instead of options::get() in test cases 2015-06-28 16:45:18 +02:00
Sebastian Messmer
5a812b279f Use optional::value() instead of options::get() in test cases 2015-06-28 16:44:55 +02:00
Sebastian Messmer
04b18ed768 Adapt to new blobstore 2015-06-26 16:03:24 +02:00
Sebastian Messmer
3d1341114b Use unique_ref instead of unique_ptr 2015-06-26 15:59:18 +02:00
Sebastian Messmer
3826bab481 Fix test cases 2015-06-26 15:57:41 +02:00
Sebastian Messmer
db2b39d4ab ParallelAccessBlockStore uses unique_ref for its base block store 2015-06-26 15:54:19 +02:00
Sebastian Messmer
de37cddcce Replace unique_ptr with unique_ref in ParallelAccessBlockStore 2015-06-26 13:45:03 +02:00
Sebastian Messmer
0faa63b7b4 Replace unique_ptr with unique_ref 2015-06-26 13:44:12 +02:00
Sebastian Messmer
ab5238549d Introduced make_left, make_right 2015-06-26 12:41:25 +02:00
Sebastian Messmer
f3222e361b Added operator<<(ostream, Either) 2015-06-26 02:17:08 +02:00
Sebastian Messmer
e8c7efe626 Make unique_ref final 2015-06-26 02:08:14 +02:00
Sebastian Messmer
a98cf8200e Improve move testcases for Either 2015-06-26 02:06:33 +02:00
Sebastian Messmer
99be93d970 Add tests for direct (move) assignments 2015-06-26 02:02:29 +02:00
Sebastian Messmer
396dbcfc1c Add assignment operators 2015-06-26 01:59:29 +02:00
Sebastian Messmer
d5dadc74e7 Offer Either::left_opt() and Either::right_opt() and add some test cases 2015-06-26 01:07:46 +02:00
Sebastian Messmer
e1c4327338 Added comparison operators to Either 2015-06-25 16:27:26 +02:00
Sebastian Messmer
2d7dc8c583 Added first version for an either type 2015-06-25 15:46:53 +02:00
Sebastian Messmer
adbcb054c6 Add dynamic_pointer_move test cases for unique_ref 2015-06-21 18:18:43 +02:00
Sebastian Messmer
a1e0358d4c Adapt to new cpp-utils 2015-06-21 17:44:45 +02:00
Sebastian Messmer
2fa7d656e7 Adapt to new cpp-utils 2015-06-21 17:44:30 +02:00
Sebastian Messmer
7fae2d1e59 Adapt to new cpp-utils 2015-06-21 17:43:45 +02:00
Sebastian Messmer
c755717898 Adapt to new cpp-utils 2015-06-21 17:43:31 +02:00
Sebastian Messmer
e346283b0b Refactor folder structure 2015-06-21 17:41:57 +02:00
Sebastian Messmer
f30bec26ee Added some more test cases for dynamic_pointer_move 2015-06-21 17:14:35 +02:00
Sebastian Messmer
cf6ef7c02c Use C++11 uniform initialization for structs 2015-06-21 14:40:57 +02:00
Sebastian Messmer
d1528fe541 Use C++11 uniform initialization for structs 2015-06-21 14:40:52 +02:00
Sebastian Meßmer
07689c8bd1 Removed unneeded includes/usings 2015-06-18 19:40:26 +02:00
Sebastian Meßmer
2f22cbc9a8 Adapt to new fspp interface using unique_ref instead of unique_ptr 2015-06-18 19:36:05 +02:00
Sebastian Meßmer
667151e6ed - Fix dynamic_pointer_move for unique_ref
- Add workaround to use unique_ref with boost::optional in gtest
2015-06-18 19:35:30 +02:00
Sebastian Meßmer
31cd0eb9e9 Adapt to new dynamic_pointer_move 2015-06-18 19:34:24 +02:00
Sebastian Meßmer
536cba1459 Use unique_ref instead of unique_ptr wherever possible 2015-06-18 19:30:52 +02:00
Sebastian Meßmer
e883bc5747 More use of unique_ref instead of unique_ptr 2015-06-18 13:45:08 +02:00
Sebastian Meßmer
f4d925aa9d More use of unique_ref instead of unique_ptr 2015-06-18 13:14:43 +02:00
Sebastian Meßmer
b2e661a328 Adapt to new blobstore - having unique_ref<Blob> instead of unique_ptr<Blob> 2015-06-18 12:47:08 +02:00
Sebastian Meßmer
5039205cd2 BlobStore handles unique_ref<Blob> instead of unique_ptr<Blob> 2015-06-18 12:45:37 +02:00
Sebastian Meßmer
8cfa133676 Removed some unneeded usings 2015-06-18 12:45:05 +02:00
Sebastian Meßmer
590beac11c Added dynamic_pointer_move for unique_ref 2015-06-18 02:36:57 +02:00
Sebastian Meßmer
86a8683fa7 Finish implementing unique_ref and added many more test cases 2015-06-18 01:29:02 +02:00
Sebastian Meßmer
09f89327da Fix test cases 2015-06-17 12:28:18 +02:00
Sebastian Meßmer
199da740ed Fix test cases 2015-06-17 12:17:17 +02:00
Sebastian Messmer
2205f1cabc Removed unique_ref::release() because it would break the guarantee 2015-06-17 01:01:50 +02:00
Sebastian Messmer
3d5b9e9815 Implemented unique_ref and started writing test cases 2015-06-17 00:59:02 +02:00
Sebastian Messmer
3069874066 Fix test cases 2015-06-17 00:38:02 +02:00