.. _program_listing_file_src_rdf4cpp_Namespace.hpp: Program Listing for File Namespace.hpp ====================================== |exhale_lsh| :ref:`Return to documentation for file ` (``src/rdf4cpp/Namespace.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #ifndef RDF4CPP_NAMESPACE_HPP #define RDF4CPP_NAMESPACE_HPP #include #include #include #include #include namespace rdf4cpp { struct Namespace { protected: std::string namespace_iri_; storage::DynNodeStoragePtr node_storage_; // TODO: a faster, less memory efficient map would be better. mutable dice::sparse_map::sparse_map, std::equal_to<>> cache_; public: explicit Namespace(std::string_view namespace_iri, storage::DynNodeStoragePtr node_storage = storage::default_node_storage); std::string_view name_space() const noexcept; storage::DynNodeStoragePtr node_storage() const; virtual IRI operator+(std::string_view suffix) const; virtual void clear() const; }; } // namespace rdf4cpp #endif //RDF4CPP_NAMESPACE_HPP