277 Commits

Author SHA1 Message Date
Patrick Wuttke
bda2b01676 Added some utility concepts and structs for functional programming. 2026-02-17 10:26:49 +01:00
Patrick Wuttke
1521e33569 Added utility trait for listing/iterating enum values at compile time. 2026-02-17 10:26:21 +01:00
Patrick Wuttke
acf81b368a Added SortedVector class. 2026-02-17 10:25:26 +01:00
Patrick Wuttke
d42eb12377 Added variant_index utility trait. 2026-02-17 10:25:09 +01:00
Patrick Wuttke
1bb64f0473 Added utility functions for modifying type argument lists. 2026-02-17 10:24:34 +01:00
Patrick Wuttke
3d9d62f3e3 Made VectorMap constexpr. 2026-02-17 10:23:53 +01:00
Patrick Wuttke
5e09113f22 Added getOr() and getOrThrow() utility functions to optional. 2026-02-17 10:23:28 +01:00
Patrick Wuttke
40840b0c7d Fixed some issues with exceptions thrown inside coroutines. 2026-02-17 10:22:47 +01:00
Patrick Wuttke
548786651e Added applyPack() and applyPackWithIndex() utility functions. Used to apply a function to each element in a parameter pack/tuple. 2026-02-09 10:47:02 +01:00
Patrick Wuttke
5b2928977a Throw Mijin Exception instead of std::runtime_error by default in ensure(). 2026-02-09 10:43:52 +01:00
Patrick Wuttke
ad90299920 Added implicitly_convertible concept. 2026-02-09 10:17:54 +01:00
Patrick Wuttke
dffff4b5ad Fixed FileStream move semantics. 2026-02-09 10:17:29 +01:00
Patrick Wuttke
96765103b7 Added VectorMap::entry() to retrieve entry at specified index. Added VectorMap::eraseAt() to erase entry/entries at a specific index. 2026-02-09 10:16:56 +01:00
Patrick Wuttke
6aeeba02b0 Added MemoryView::empty(). 2026-02-09 10:15:48 +01:00
ced73e43af Logging: added default formatter and makeLogFormatter() utility function. 2025-11-22 12:50:17 +01:00
Patrick Wuttke
759174ed57 Added static tests for detect_or_t. 2025-11-22 12:42:19 +01:00
Patrick Wuttke
1172116d6b Signal: made reset() public and added parameter to reset without disconnecting the signal. 2025-11-22 12:40:56 +01:00
Patrick Wuttke
c0e70341c9 Added getState() to TaskHandle for comparison. 2025-11-22 12:40:00 +01:00
Patrick Wuttke
c54a87c90e Added SignalAutoToken. 2025-11-04 17:51:02 +01:00
Patrick Wuttke
5e71b0ff9e Added containsIgnoreCase() as shortcut for findIgnoreCase() != end(). 2025-10-28 12:02:16 +01:00
Patrick Wuttke
0e1964ba25 Logging: made LogMessage contain a string view instead of const char*, added BufferSink, changed message parameter of formatted parameter to be string instead of const char*. 2025-10-28 12:01:50 +01:00
Patrick Wuttke
7d4c782b0f Made MixinMemoryView constructor private and only callable by its implementation. 2025-10-28 11:59:37 +01:00
Patrick Wuttke
4a3895c0ad Some minor fixes/adjustments for coroutines. 2025-10-28 11:58:30 +01:00
1c7f043e6f Fixed compilation using GCC due to duplicate template parameter name. 2025-09-22 21:47:05 +02:00
Patrick Wuttke
9ae424e968 Merge branch 'master' of https://git.mewin.de/mewin/mijin2 2025-09-22 21:42:51 +02:00
Patrick Wuttke
5a111df9ea Added void variant of Result. 2025-09-22 21:42:43 +02:00
Patrick Wuttke
32ccaad00a Added Stream::copyTo() and fixed read flag in FileStream::getFeatures().
Made throwOnError() throw Exception instead of std::runtime_error.
2025-09-22 21:41:55 +02:00
Patrick Wuttke
10d9b4c98f Made VectorMap find and access functions templates so you don't have to construct the key. 2025-09-22 21:40:53 +02:00
Patrick Wuttke
cc20702249 Added [[maybe_unused]] to std::atexit() call to fix non-debug builds. 2025-09-22 21:39:46 +02:00
Patrick Wuttke
7d6fcc60fc Added support for forwarding exceptions via Future. 2025-09-22 21:39:03 +02:00
3891c0f8ce Added option to quoted() function to replace newlines. 2025-09-21 12:36:41 +02:00
7da2f7b7f4 Added note about getKnownFolder() to getHomeFolder() deprecation hint. 2025-09-21 12:35:46 +02:00
bd06118b29 Normalize paths created by the RelativeFileSystemAdapter. Fixes issues with trailin "/.". 2025-09-21 12:34:38 +02:00
Patrick Wuttke
4d19752964 Added quoted() string helper. 2025-08-30 00:31:27 +02:00
Patrick Wuttke
0e988a4d9e Added member_pointer_of traits. 2025-08-30 00:31:05 +02:00
Patrick Wuttke
a95885880f Added formatter for exceptions. 2025-08-30 00:30:47 +02:00
Patrick Wuttke
d76e64c062 Fixed converting auf DynamicPointers, added wrapDynamic helper to simplify creating non-owning DynamicPointers. 2025-08-30 00:30:09 +02:00
Patrick Wuttke
e704c082b7 Some fixes for logging, added MIJIN_LOG_IF and the DebugOutputLogSink. 2025-08-30 00:29:16 +02:00
Patrick Wuttke
b44d6feb97 Added MIJIN_RTTI macro for detecting if RTTI is available. 2025-08-30 00:28:19 +02:00
Patrick Wuttke
e91184ec82 Fixed current loop not being reset on exceptions. 2025-08-30 00:25:16 +02:00
Patrick Wuttke
51092bb4cb Added splitView() and splitLines() to string utility functions. 2025-07-15 18:21:10 +02:00
Patrick Wuttke
02e99bbc82 Made logger thread-safe and added filters. 2025-07-14 17:16:24 +02:00
Patrick Wuttke
ad627b7c70 Added NotNullable::release() function. 2025-07-14 17:16:09 +02:00
Patrick Wuttke
4a9a60c7f5 Replaced default deleter used in DynamicPointer so it fits better with other functions. 2025-07-14 17:15:25 +02:00
Patrick Wuttke
d8b03893b3 Merge branch 'master' of https://git.mewin.de/mewin/mijin2 2025-07-14 10:08:04 +02:00
Patrick Wuttke
7939d458b3 Added Stream functions for reading and writing 0-terminated strings. 2025-07-14 10:07:57 +02:00
Patrick Wuttke
b5546067a8 Added missing include. 2025-07-14 10:07:37 +02:00
9e572061da Added DEBUG to macros being undefed. 2025-07-11 14:11:14 +02:00
d0be5f7739 Fixed use-after-move in TaskLoop::addTaskImpl() and some minor compilation problems. 2025-07-10 02:16:29 +02:00
e6556c6f90 Fixed convertCharType when converting from wchar_t to char. 2025-07-09 00:57:45 +02:00