owlcpp  v0.3.3~
C++ library for working with OWL ontologies
 All Classes Namespaces Files Functions Macros Pages
query_triple_any.hpp
Go to the documentation of this file.
1 
6 #ifndef QUERY_TRIPLE_ANY_HPP_
7 #define QUERY_TRIPLE_ANY_HPP_
8 
9 #include <boost/range/concepts.hpp>
10 #include <boost/utility/enable_if.hpp>
11 #include "boost/range/any_range.hpp"
12 
13 #include "boost/range/adaptor/type_erased.hpp"
14 #include "owlcpp/rdf/config.hpp"
15 
16 namespace owlcpp{
17 class Triple_store;
18 struct Triple;
19 class Node_id;
20 class Doc_id;
21 
22 typedef boost::any_range<
23  Triple, boost::single_pass_traversal_tag, Triple const&, std::ptrdiff_t
24  > triple_any_range_t;
25 
28 OWLCPP_RDF_DECL triple_any_range_t find_triple(
29  Triple_store const& ts,
30  Node_id const* subj = 0,
31  Node_id const* pred = 0,
32  Node_id const* obj = 0,
33  Doc_id const* doc = 0
34 );
35 
36 }//namespace owlcpp
37 #endif /* QUERY_TRIPLE_ANY_HPP_ */