Thrift: Slight tweaks to local reflection.
authorDavid Reiss <dreiss@apache.org>
Tue, 4 Sep 2007 21:31:04 +0000 (21:31 +0000)
committerDavid Reiss <dreiss@apache.org>
Tue, 4 Sep 2007 21:31:04 +0000 (21:31 +0000)
commit47557bc8ad061a90c88d485979009c2ee8237854
treea0a214d093e4239d88673c929593aeb198e34263
parentd3f1a2d2ba1257718e7c442c1cf8ce4fb9516d78
Thrift: Slight tweaks to local reflection.

Summary:
Local reflection typespecs for structs now have a dummy T_STOP field at the end
so we don't have to check the size on every iteration.
They also contain information about which fields are optional.
Also put a static pointer to the reflection in each structure.

Reviewed By: mcslee

Test Plan: test/DenseLinkingTest.thrift

Revert Plan: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665246 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_cpp_generator.cc
compiler/cpp/src/main.cc
lib/cpp/src/TReflectionLocal.h