/[Apache-SVN]
ViewVC logotype

Revision 664828


Jump to revision: Previous Next
Author: mcslee
Date: Thu Oct 12 02:47:27 2006 UTC (18 years, 1 month ago)
Changed paths: 8
Log Message:
Allow the specification of custom container types in Thrift IDL files

Summary: If you want your map to be a hash_map instead of an stl::map, we now have a directive in Thrift to let you do that.

Instead of:
map<i32,i32>

You can do:
map[cpp:hash_map<int32_t,int32_t>]<i32,i32>

This tells the Thrift compiler to explicitly use whatever type was specified in the brackets when generating C++ code, instead of the implied Thrift type.

Reviewed By: aditya


Changed paths

Path Details
Directoryincubator/thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_container.h added
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_list.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_map.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_set.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/parse/t_type.h modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/thrift.l modified , text changed
Directoryincubator/thrift/trunk/compiler/cpp/src/thrift.y modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26