| // Copyright (c) 2006- Facebook |
| // Distributed under the Thrift Software License |
| // See accompanying file LICENSE or visit the Thrift site at: |
| // http://developers.facebook.com/thrift/ |
| * A set is a lightweight container type that just wraps another data type. |
| * @author Mark Slee <mcslee@facebook.com> |
| class t_set : public t_container { |
| t_set(t_type* elem_type) : |
| t_type* get_elem_type() const { |
| virtual std::string get_fingerprint_material() const { |
| return "set<" + elem_type_->get_fingerprint_material() + ">"; |
| virtual void generate_fingerprint() { |
| t_type::generate_fingerprint(); |
| elem_type_->generate_fingerprint(); |