owlcpp
v0.3.3-86-g20d8c12~
C++ library for working with OWL ontologies
|
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_node & | operator= (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< Node > | remove (const Node_id id) |
void | clear () |
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.