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

Store polymorphic RDF nodes. More...

#include <map_node.hpp>

Classes

struct  Err

Public Types

typedef Node_id id_type
typedef Node node_type
typedef Iterator_member_pair
< map_citer_t, Node_id const, 2 > 
iterator
typedef iterator const_iterator

Public Member Functions

 Map_node (Map_node const &mn)
Map_nodeoperator= (Map_node const &mn)
std::size_t size () const
const_iterator begin () const
const_iterator end () const
bool empty () const
Node const & operator[] (const Node_id id) const
Node const & at (const Node_id id) const
Node const * find (const Node_id id) const
Node_id const * find (Node const &node) const
Node_id const * find_iri (const Ns_id ns, std::string const &val) const
Node_id const * find_literal (std::string const &val, const Node_id dt, std::string const &lang) const
Node_id const * find_blank (const unsigned n, const Doc_id doc) const
Node_id insert (Node const &node)
Node_id insert_iri (const Ns_id ns, std::string const &val)
Node_id insert_literal (std::string const &val, const Node_id dt, std::string const &lang="")
Node_id insert_blank (const unsigned n, const Doc_id doc)
std::auto_ptr< Noderemove (const Node_id id)
void clear ()

Detailed Description

Store polymorphic RDF nodes.

Validity of node IDs is assumed and asserted in debug mode. Calling node map methods with invalid node IDs results in undefined behavior.

Member Function Documentation

Node_id owlcpp::Map_node::insert ( Node const &  node)
inline

insert a clone of the node


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