6 #ifndef MAP_NODE_LITERAL_CRTPB_HPP_
7 #define MAP_NODE_LITERAL_CRTPB_HPP_
8 #include "boost/assert.hpp"
9 #include "boost/foreach.hpp"
11 #include "owlcpp/detail/map_traits.hpp"
20 typedef detail::Map_traits<Super> traits;
21 typedef typename traits::map_node_type map_node_type;
23 map_node_type
const& _map_node()
const {
24 return static_cast<Super const&
>(*this).map_node_;
27 map_node_type& _map_node() {
28 return static_cast<Super&
>(*this).map_node_;
39 std::string
const& value,
40 std::string
const& dt_iri,
41 std::string
const& lang =
""
43 Node_id const* dt =
static_cast<Super const&
>(*this).find_node_iri(dt_iri);
45 return _map_node().find_literal(value, *dt, lang);
60 std::string
const& value,
62 std::string
const& lang =
""
64 BOOST_CONCEPT_ASSERT((Iri_node_store<Super>));
66 static_cast<Super const&>(*this).find(dt_id) &&
69 return _map_node().insert_literal(value, dt_id, lang);
83 std::string
const& value,
84 std::string
const& dt_iri,
85 std::string
const& lang =
""
87 BOOST_CONCEPT_ASSERT((Ns_iri_node_store<Super>));
88 const Node_id dt_id =
static_cast<Super&
>(*this).insert_node_iri(dt_iri);