From b80be82b8d4a3aaf226b00e7c12520318346ccea Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 18 Jun 2010 02:19:39 -0400 Subject: has_tag and get_tag now take an 'inherit' parameter --- src/item.h | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/item.h') diff --git a/src/item.h b/src/item.h index 8018db9a..b7dde35f 100644 --- a/src/item.h +++ b/src/item.h @@ -149,13 +149,17 @@ public: return ! (*this == xact); } - virtual bool has_tag(const string& tag) const; - virtual bool has_tag(const mask_t& tag_mask, - const optional& value_mask = none) const; - - virtual optional get_tag(const string& tag) const; - virtual optional get_tag(const mask_t& tag_mask, - const optional& value_mask = none) const; + virtual bool has_tag(const string& tag, + bool inherit = true) const; + virtual bool has_tag(const mask_t& tag_mask, + const optional& value_mask = none, + bool inherit = true) const; + + virtual optional get_tag(const string& tag, + bool inherit = true) const; + virtual optional get_tag(const mask_t& tag_mask, + const optional& value_mask = none, + bool inherit = true) const; virtual string_map::iterator set_tag(const string& tag, -- cgit v1.2.3