owlcpp  v0.3.3~
C++ library for working with OWL ontologies
 All Classes Namespaces Files Functions Macros Pages
node_id.hpp
Go to the documentation of this file.
1 
6 #ifndef NODE_ID_HPP_
7 #define NODE_ID_HPP_
8 #include <iosfwd>
9 #include "owlcpp/detail/object_id_base.hpp"
10 
11 namespace owlcpp{
12 
15 class Node_id : public detail::Base_id<Node_id> {
16 public:
17  explicit Node_id(const unsigned x) : base(x) {}
18  Node_id() : base(0) {}
19 };
20 
23 template<class ChT, class Tr> inline std::basic_ostream<ChT,Tr>& operator<<(
24  std::basic_ostream<ChT,Tr>& os,
25  Node_id const& id
26 ) {
27  return os << "Node" << id();
28 }
29 
30 }//namespace owlcpp
31 #endif /* NODE_ID_HPP_ */