• Christian Helmich's avatar
    Support attribute "cpp_ptr_type" on table elements marked as "hash" (#4643) · 9ce98dd7
    Christian Helmich authored
    * added intended use-cases to monster_test.fbs
    
    * added check for `cpp_ptr_type` on hashed fields
    added default value 'naked' to `cpp_ptr_type` on hashed fields
    
    * added C++ generation of cpp_type vectors
    removed ctor call for vector fields
    added condition !vector for cpp_type check
    added Pack() and UnPack() code generation for vector of hashes
    added generation of correct resolve/rehash for cpp_type elements
    
    * added attribute 'cpp_ptr_type_get' to hold accessor for pointer types possible where '.get()' does not work
    use case: cpp_ptr_type:"std::weak_ptr", cpp_ptr_type_get:".lock().get()"
    
    * run flatc to re-generate headers
    
    * added bool param is_ctor to GetDefaultScalarValue() to differentiate between usage places
    
    * modified monster_test.fbs to remove usage of shared_ptr/weak_ptr
    reason: STLport does not support std::shared_ptr and std::weak_ptr
    
    * run flatc again to re-generate headers
    
    * fixed symbol unique_ptr not in namespace std when building with STLport
    9ce98dd7
Name
Last commit
Last update
.github Loading commit data...
.travis Loading commit data...
CMake Loading commit data...
android Loading commit data...
biicode Loading commit data...
docs Loading commit data...
go Loading commit data...
grpc Loading commit data...
include/flatbuffers Loading commit data...
java/com/google/flatbuffers Loading commit data...
js Loading commit data...
net/FlatBuffers Loading commit data...
php Loading commit data...
python Loading commit data...
reflection Loading commit data...
samples Loading commit data...
src Loading commit data...
tests Loading commit data...
.clang-format Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
BUILD Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE.txt Loading commit data...
WORKSPACE Loading commit data...
appveyor.yml Loading commit data...
biicode.conf Loading commit data...
composer.json Loading commit data...
conanfile.py Loading commit data...
package.json Loading commit data...
pom.xml Loading commit data...
readme.md Loading commit data...