owlcpp  v0.3.3~
C++ library for working with OWL ontologies
 All Classes Namespaces Files Functions Macros Pages
Public Member Functions | List of all members
owlcpp::Map_std_ns_crtpb< Super > Class Template Reference

#include <map_std_ns_crtpb.hpp>

Inheritance diagram for owlcpp::Map_std_ns_crtpb< Super >:
owlcpp::Catalog owlcpp::Triple_store

Public Member Functions

Ns_iri const & operator[] (const Ns_id nsid) const
Ns_iri const & at (const Ns_id nsid) const
Ns_iri const * find (const Ns_id nsid) const
std::string prefix (const Ns_id nsid) const
Ns_id const * find (Ns_iri const &iri) const
Ns_id const * find_prefix (std::string const &pref) const
Ns_id insert (Ns_iri const &iri)
void insert_prefix (const Ns_id nsid, std::string const &pref)

Detailed Description

template<class Super>
class owlcpp::Map_std_ns_crtpb< Super >

Enable interaction between a mutable maps of namespaces and nodes and immutable map of standard IRI nodes. Base for CRTP (Curiously Recurring Template Pattern).

Member Function Documentation

template<class Super>
Ns_id const* owlcpp::Map_std_ns_crtpb< Super >::find ( Ns_iri const &  iri) const
inline
Parameters
irinamespace IRI string
Returns
pointer to namespace IRI ID or NULL if iri is unknown
template<class Super>
Ns_id const* owlcpp::Map_std_ns_crtpb< Super >::find_prefix ( std::string const &  pref) const
inline
Parameters
prefprefix for namespace IRI
Returns
pointer to namespace IRI ID or NULL if prefix is unknown
template<class Super>
void owlcpp::Map_std_ns_crtpb< Super >::insert_prefix ( const Ns_id  nsid,
std::string const &  pref 
)
inline
Parameters
nsidnamespace IRI ID
prefnamespace IRI prefix

Define or re-define the prefix for a user-defined namespace IRI.

template<class Super>
std::string owlcpp::Map_std_ns_crtpb< Super >::prefix ( const Ns_id  nsid) const
inline
Parameters
nsidnamespace IRI ID
Returns
IRI prefix string or "" if no prefix was defined

The documentation for this class was generated from the following file: