diff options
author | Jacques Lucke <jacques@blender.org> | 2021-04-17 16:13:20 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-04-17 16:13:20 +0300 |
commit | 36088912828b0b511ce0f293f39187b5d8d770cf (patch) | |
tree | 86f479a323d761a73ac9741ac79c7bb1857d44e5 /source/blender/functions/FN_generic_span.hh | |
parent | e524a6ecf7cc34618d0118f5bb2e1f6a656fb7f4 (diff) |
Functions: extend virtual array functionality
This adds support for mutable virtual arrays and provides many utilities
for creating virtual arrays for various kinds of data. This commit is
preparation for D10994.
Diffstat (limited to 'source/blender/functions/FN_generic_span.hh')
-rw-r--r-- | source/blender/functions/FN_generic_span.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/functions/FN_generic_span.hh b/source/blender/functions/FN_generic_span.hh index 31b67dd3d70..ea2bd49fa09 100644 --- a/source/blender/functions/FN_generic_span.hh +++ b/source/blender/functions/FN_generic_span.hh @@ -30,7 +30,7 @@ namespace blender::fn { * A generic span. It behaves just like a blender::Span<T>, but the type is only known at run-time. */ class GSpan { - private: + protected: const CPPType *type_; const void *data_; int64_t size_; @@ -92,7 +92,7 @@ class GSpan { * known at run-time. */ class GMutableSpan { - private: + protected: const CPPType *type_; void *data_; int64_t size_; |