summaryrefslogtreecommitdiff
path: root/libxsd/xsd/cxx/parser/substitution-map.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libxsd/xsd/cxx/parser/substitution-map.hxx')
-rw-r--r--libxsd/xsd/cxx/parser/substitution-map.hxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/libxsd/xsd/cxx/parser/substitution-map.hxx b/libxsd/xsd/cxx/parser/substitution-map.hxx
index 60c0ec8..0379164 100644
--- a/libxsd/xsd/cxx/parser/substitution-map.hxx
+++ b/libxsd/xsd/cxx/parser/substitution-map.hxx
@@ -137,6 +137,12 @@ namespace xsd
map_.insert (std::pair<key, value> (k, v));
}
+ void
+ erase (const C* member_ns, const C* member_name)
+ {
+ map_.erase (key (member_ns, member_name));
+ }
+
// Check and get the type set if found.
//
bool
@@ -219,6 +225,12 @@ namespace xsd
const C* root_ns,
const C* root_name,
const C* member_type);
+
+ ~substitution_map_entry ();
+
+ private:
+ const C* member_ns_;
+ const C* member_name_;
};
}
}
@@ -227,4 +239,3 @@ namespace xsd
#include <xsd/cxx/parser/substitution-map.txx>
#endif // XSD_CXX_PARSER_SUBSTITUTION_MAP_HXX
-