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

Immutable static set of namespace IRIs and nodes. More...

#include <map_std.hpp>

Public Member Functions

void insert (const Ns_id nsid, Ns_iri const &nsiri, std::string const &pref)
void insert (const Node_id nid, Node_iri const &node)
bool is_standard (const Ns_id nsid) const
bool is_standard (const Node_id nid) const
Ns_id const * find (Ns_iri const &iri) const
Ns_id const * find_prefix (std::string const &pref) const
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
Node_iri const & operator[] (const Node_id nid) const
Node_iri const & at (const Node_id nid) const
Node_iri const * find (const Node_id nid) const
Node_id const * find (Node_iri const &node) const
Node_id const * find (const Ns_id ns, std::string const &val) const

Static Public Member Functions

template<class T >
static Map_std const & get (T const &t)
 Get instance of standard nodes map.

Detailed Description

Immutable static set of namespace IRIs and nodes.

Contains at least blank and empty (literal) namespaces and empty node.

Member Function Documentation

template<class T >
static Map_std const& owlcpp::Map_std::get ( T const &  t)
inlinestatic

Get instance of standard nodes map.

Template Parameters
TSHOULD be callable with IRI map and node map inserting standard namespace IRIs and standard nodes.
struct Inserter {
void operator()(Map_std& map) const;
};
Map_std const& nms = Map_std::get(Inserter());
bool owlcpp::Map_std::is_standard ( const Ns_id  nsid) const
inline
Parameters
nsidnamespace IRI ID
Returns
true if nodes should not be added to this namespace by user; e.g., in case of RDF or OWL namespaces. That is, all nodes from this namespace should reside in this map.

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