godot/modules/mono/mono_gd
Hein-Pieter van Braam 0e29f7974b Reduce unnecessary COW on Vector by make writing explicit
This commit makes operator[] on Vector const and adds a write proxy to it.  From
now on writes to Vectors need to happen through the .write proxy. So for
instance:

Vector<int> vec;
vec.push_back(10);
std::cout << vec[0] << std::endl;
vec.write[0] = 20;

Failing to use the .write proxy will cause a compilation error.

In addition COWable datatypes can now embed a CowData pointer to their data.
This means that String, CharString, and VMap no longer use or derive from
Vector.

_ALWAYS_INLINE_ and _FORCE_INLINE_ are now equivalent for debug and non-debug
builds. This is a lot faster for Vector in the editor and while running tests.
The reason why this difference used to exist is because force-inlined methods
used to give a bad debugging experience. After extensive testing with modern
compilers this is no longer the case.
2018-07-26 00:54:16 +02:00
..
gd_mono_assembly.cpp Mono: Fix MonoImage filename being set to an invalid path 2018-05-27 17:15:41 +02:00
gd_mono_assembly.h Mono: Add project export plugin 2018-02-22 13:39:41 +01:00
gd_mono_class_member.h Mono: Add properties support in scripts 2018-01-04 21:16:22 +01:00
gd_mono_class.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
gd_mono_class.h Mono: Fix null dereferences 2018-07-25 21:30:11 +02:00
gd_mono_field.cpp Add Array and Dictionary wrapper classes to C# 2018-07-20 01:44:30 +02:00
gd_mono_field.h Fix build of GDMonoField 2018-01-06 11:06:05 +01:00
gd_mono_header.h Add Array and Dictionary wrapper classes to C# 2018-07-20 01:44:30 +02:00
gd_mono_internals.cpp Mono: Pending exceptions and cleanup 2018-07-04 03:08:29 +02:00
gd_mono_internals.h Mono: Pending exceptions and cleanup 2018-07-04 03:08:29 +02:00
gd_mono_log.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
gd_mono_log.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
gd_mono_marshal.cpp Add Array and Dictionary wrapper classes to C# 2018-07-20 01:44:30 +02:00
gd_mono_marshal.h Add Array and Dictionary wrapper classes to C# 2018-07-20 01:44:30 +02:00
gd_mono_method.cpp Mono: Pending exceptions and cleanup 2018-07-04 03:08:29 +02:00
gd_mono_method.h Mono: Pending exceptions and cleanup 2018-07-04 03:08:29 +02:00
gd_mono_property.cpp Add Array and Dictionary wrapper classes to C# 2018-07-20 01:44:30 +02:00
gd_mono_property.h Mono: Pending exceptions and cleanup 2018-07-04 03:08:29 +02:00
gd_mono_utils.cpp Mono: Fix null dereferences 2018-07-25 21:30:11 +02:00
gd_mono_utils.h Add Array and Dictionary wrapper classes to C# 2018-07-20 01:44:30 +02:00
gd_mono.cpp Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
gd_mono.h Mono: Pending exceptions and cleanup 2018-07-04 03:08:29 +02:00