• 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
..
FlatBuffers.Test Loading commit data...
MyGame Loading commit data...
fuzzer Loading commit data...
include_test Loading commit data...
namespace_test Loading commit data...
prototest Loading commit data...
union_vector Loading commit data...
GoTest.sh Loading commit data...
JavaScriptTest.js Loading commit data...
JavaScriptTest.sh Loading commit data...
JavaScriptUnionVectorTest.js Loading commit data...
JavaTest.bat Loading commit data...
JavaTest.java Loading commit data...
JavaTest.sh Loading commit data...
PythonTest.sh Loading commit data...
TestAll.sh Loading commit data...
TypeScriptTest.sh Loading commit data...
generate_code.bat Loading commit data...
generate_code.sh Loading commit data...
go_test.go Loading commit data...
javatest.bin Loading commit data...
monster_test.bfbs Loading commit data...
monster_test.fbs Loading commit data...
monster_test.grpc.fb.cc Loading commit data...
monster_test.grpc.fb.h Loading commit data...
monster_test.schema.json Loading commit data...
monster_test_generated.h Loading commit data...
monster_test_generated.js Loading commit data...
monster_test_generated.ts Loading commit data...
monsterdata_python_wire.mon Loading commit data...
monsterdata_test.golden Loading commit data...
monsterdata_test.json Loading commit data...
monsterdata_test.mon Loading commit data...
phpTest.php Loading commit data...
phpUnionVectorTest.php Loading commit data...
phpUnionVectorTest.sh Loading commit data...
py_test.py Loading commit data...
test.cpp Loading commit data...
unicode_test.json Loading commit data...