THRIFT-922. cpp: Update C++ generator to emit templatized code
authorDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:00 +0000 (17:10 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:10:00 +0000 (17:10 +0000)
commitb7762a032aa4190c6b99a5394e69b29aceb57281
treeebfc006c1ca2324ada5116d0edaa2f6717f7bf1e
parent8dfc732af635d5243194b74d4f411a551ff9a5ee
THRIFT-922. cpp: Update C++ generator to emit templatized code

When the "templates" option is passed to the C++ generator, it now emits
templatized versions of the client and processor.  Generated types emit
templatized read() and write() functions.

This allows the generated code to invoke the correct non-virtual
TTransport and TProtocol implementations, resulting in faster
serialization and deserialization.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005138 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_cpp_generator.cc
lib/cpp/src/protocol/TProtocol.h
test/cpp/Thrift-test.mk
test/cpp/src/TestClient.cpp
test/cpp/src/TestServer.cpp