godot/modules
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
..
bmp Fix bits_per_pixel validation in BMP and TGA loader modules. 2018-07-08 18:51:20 +01:00
bullet Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
csg Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
dds SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
enet Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
etc SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
freetype SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
gdnative Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
gdscript Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
gridmap Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
hdr SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
jpg Add webp buffer loader for Image 2018-07-17 12:03:45 +08:00
mbedtls Implement non blocking-handshake for StreamPeerSSL 2018-07-16 13:08:17 +02:00
mobile_vr SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
mono Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
ogg SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
opus SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
pvr Style: Format code with clang-format 6.0.1 2018-07-18 16:27:03 +02:00
recast Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
regex Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
squish SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
stb_vorbis SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
svg Merge pull request #19272 from akien-mga/svg-buildsystem 2018-05-30 22:10:03 +02:00
tga Fix bits_per_pixel validation in BMP and TGA loader modules. 2018-07-08 18:51:20 +01:00
thekla_unwrap SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
theora Fix loading and exporting of Theora and WebM video streams 2018-07-03 20:21:46 +02:00
tinyexr SCons: Pass env to modules can_build method 2018-05-30 19:11:36 +02:00
upnp Add UPnP support (port forwarding, querying external IP) 2018-06-07 01:52:04 +02:00
visual_script Reduce unnecessary COW on Vector by make writing explicit 2018-07-26 00:54:16 +02:00
vorbis Style: Format code with clang-format 6.0.1 2018-07-18 16:27:03 +02:00
webm Fix loading and exporting of Theora and WebM video streams 2018-07-03 20:21:46 +02:00
webp Add webp buffer loader for Image 2018-07-17 12:03:45 +08:00
websocket Removed unnecessary assignments 2018-07-24 09:51:03 +02:00
register_module_types.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
SCsub - Improves portability in joystick buttons enum 2018-01-24 19:12:54 -03:00