flatbuffers/docs/source
Wouter van Oortmerssen 3f936c5655 More native code gen functionality.
Allow tables to be mapped to native types directly.  For example, a table
representing a vector3 (eg. table Vec3 { x:float; y:float; z:float; }) can
be mapped to a "mathfu::vec3" native type in NativeTables.  This requires
users to provide Pack and UnPack functions that convert between the
Table and native types.  This is done by adding the "native_type" attribute
to the table definition.

To support user-defined flatbuffers::Pack and flatbuffers::UnPack functions,
support a "native_include" markup that will generate a corresponding

Also add an UnPackTo function which allows users to pass in a pointer to
a NativeTable object into which to UnPack the Table.  The existing UnPack
function is now simply:

  NativeTable* UnPack() {
    NativeTable* obj = new NativeTable();
    Table::UnPackTo(obj);
    return obj;
  }

Finally, allow native types to be given a default value as well which are
set in the NativeTable constructor.  This is done by providing a
"native_default" attribute to the member of a table.

Change-Id: Ic45cb48b0e6d7cfa5734b24819e54aa96d847cfd
2017-01-18 16:23:35 -08:00
..
Benchmarks.md Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
Building.md Removed pre-made VS2010 and XCode projects. 2016-07-27 17:10:37 -07:00
Compiler.md Added way to test two schemas for safe evolution. 2016-07-20 17:56:59 -07:00
CONTRIBUTING.md Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
CppUsage.md More native code gen functionality. 2017-01-18 16:23:35 -08:00
CUsage.md Update C documentation with supported MSVC versions, and other minor updates. 2016-04-07 18:52:00 +02:00
doxyfile 1.4 prep fixes 2016-08-15 17:29:35 -07:00
doxygen_layout.xml Documentation for C bindings 2016-03-26 00:28:31 +01:00
FlatBuffers.md Fixed Google Groups link in documentation. 2016-05-23 14:08:21 -07:00
GoApi.md Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
GoApi_generated.txt Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
GoUsage.md Implement mutators for Go 2016-07-20 22:58:22 +05:30
Grammar.md Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
groups Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
Internals.md Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
JavaCsharpUsage.md Improve LookupByKey , update docs 2016-08-22 18:10:52 +03:00
JavaScriptUsage.md Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
PHPUsage.md Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
PythonUsage.md Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
README_TO_GENERATE_DOCS.md Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
Schemas.md More native code gen functionality. 2017-01-18 16:23:35 -08:00
style.css Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00
Support.md Update C documentation with supported MSVC versions, and other minor updates. 2016-04-07 18:52:00 +02:00
Tutorial.md Change docs to not encourage use of 1 byte buffers. 2016-10-24 10:29:09 -07:00
WhitePaper.md Revamping the FlatBuffers docs. 2016-01-19 14:31:17 -08:00