THRIFT-922. cpp: Templatize binary and compact protocol
authorDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:09:56 +0000 (17:09 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:09:56 +0000 (17:09 +0000)
commite71115be6caa2f3afd6fa092a09fd41c2c355691
treee4eae6a053b7a04a0734685f3e58733630fbca81
parent6806fb836a6a846ae450f06a22deef1e59c2a983
THRIFT-922. cpp: Templatize binary and compact protocol

Convert TBinaryProtocol and TCompactProtocol to template classes, taking
the transport class as a template parameter.  This allows them to make
non-virtual calls when using the template, improving serialization
performance.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005136 13f79535-47bb-0310-9956-ffa450edef68
14 files changed:
lib/cpp/Makefile.am
lib/cpp/src/protocol/TBinaryProtocol.cpp [deleted file]
lib/cpp/src/protocol/TBinaryProtocol.h
lib/cpp/src/protocol/TBinaryProtocol.tcc [new file with mode: 0644]
lib/cpp/src/protocol/TCompactProtocol.h
lib/cpp/src/protocol/TCompactProtocol.tcc [moved from lib/cpp/src/protocol/TCompactProtocol.cpp with 67% similarity]
lib/cpp/src/protocol/TDebugProtocol.h
lib/cpp/src/protocol/TJSONProtocol.cpp
lib/cpp/src/protocol/TJSONProtocol.h
lib/cpp/src/protocol/TProtocol.h
lib/cpp/test/Benchmark.cpp
lib/cpp/test/Makefile.am
lib/cpp/test/SpecializationTest.cpp [new file with mode: 0644]
test/cpp/src/TestClient.cpp