From ecc12c9ba15809c918be5577cc90eba108569cbd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 24 Apr 2014 18:29:11 +0200 Subject: db/Helpers: move code to tag/Set.cxx --- src/tag/Set.hxx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'src/tag/Set.hxx') diff --git a/src/tag/Set.hxx b/src/tag/Set.hxx index 3b9654807..b5acfcb36 100644 --- a/src/tag/Set.hxx +++ b/src/tag/Set.hxx @@ -26,6 +26,7 @@ #include #include +#include /** * Helper class for #TagSet which compares two #Tag objects. @@ -55,6 +56,18 @@ struct TagLess { /** * A set of #Tag objects. */ -typedef std::set TagSet; +class TagSet : public std::set { +public: + void InsertUnique(const Tag &tag, + TagType type, uint32_t group_mask); + +private: + void InsertUnique(const Tag &src, TagType type, const char *value, + uint32_t group_mask); + + bool CheckUnique(TagType dest_type, + const Tag &tag, TagType src_type, + uint32_t group_mask); +}; #endif -- cgit v1.2.3