6 #ifndef MAP_NS_CRTPB_HPP_
7 #define MAP_NS_CRTPB_HPP_
9 #include "owlcpp/detail/map_traits.hpp"
17 typedef detail::Map_traits<Super> traits;
18 typedef typename traits::map_ns_type map_ns_type;
20 map_ns_type
const& _map_ns()
const {
21 return static_cast<Super const&
>(*this).map_ns_;
24 map_ns_type& _map_ns() {
25 return static_cast<Super&
>(*this).map_ns_;
29 std::string operator[](
const Ns_id nsid)
const {
30 return _map_ns()[nsid];
33 std::string at(
const Ns_id nsid)
const {
34 return _map_ns().at(nsid);
42 return _map_ns().prefix(nsid);
50 return _map_ns().find_iri(iri);
58 return _map_ns().find_prefix(pref);
61 Ns_id insert_ns(std::string
const& iri) {
62 return _map_ns().insert(iri);
71 _map_ns().set_prefix(nsid, pref);