THRIFT-922. cpp: Convert transport classes to use non-virtual calls
authorDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:09:50 +0000 (17:09 +0000)
committerDavid Reiss <dreiss@apache.org>
Wed, 6 Oct 2010 17:09:50 +0000 (17:09 +0000)
commite879c2f4db4bc0b7e5a0edfdf669c4fa477123a0
tree68b3554d062d4bbd46b14d0c4c0ceed0ba856982
parent72fd0b415f7fe4f84988b52346b380f17b528c90
THRIFT-922. cpp: Convert transport classes to use non-virtual calls

Update the thrift transport classes to use non-virtual calls for most
functions.  The correct implementation is determined at compile time via
templates now.  Only the base TTransport class falls back to using
virtual function calls.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1005134 13f79535-47bb-0310-9956-ffa450edef68
12 files changed:
lib/cpp/Makefile.am
lib/cpp/src/TLogging.h
lib/cpp/src/transport/TBufferTransports.h
lib/cpp/src/transport/TFDTransport.h
lib/cpp/src/transport/TFileTransport.h
lib/cpp/src/transport/THttpTransport.h
lib/cpp/src/transport/TShortReadTransport.h
lib/cpp/src/transport/TSocket.h
lib/cpp/src/transport/TTransport.h
lib/cpp/src/transport/TTransportUtils.h
lib/cpp/src/transport/TVirtualTransport.h [new file with mode: 0644]
lib/cpp/src/transport/TZlibTransport.h