ptree_fwd.hpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // Copyright (C) 2002-2006 Marcin Kalicinski
3 // Copyright (C) 2009 Sebastian Redl
4 //
5 // Distributed under the Boost Software License, Version 1.0.
6 // (See accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
8 //
9 // For more information, see www.boost.org
10 // ----------------------------------------------------------------------------
11 #ifndef BOOST_PROPERTY_TREE_PTREE_FWD_HPP_INCLUDED
12 #define BOOST_PROPERTY_TREE_PTREE_FWD_HPP_INCLUDED
13 
14 #include <boost/config.hpp>
17 #include <functional> // for std::less
18 #include <memory> // for std::allocator
19 #include <string>
20 
21 namespace boost { namespace property_tree
22 {
23  namespace detail {
24  template <typename T> struct less_nocase;
25  }
26 
27  // Classes
28 
29  template < class Key, class Data, class KeyCompare = std::less<Key> >
30  class basic_ptree;
31 
32  template <typename T>
33  struct id_translator;
34 
35  template <typename String, typename Translator>
36  class string_path;
37 
38  // Texas-style concepts for documentation only.
39 #if 0
40  concept PropertyTreePath<class Path> {
41  // The key type for which this path works.
42  typename key_type;
43  // Return the key that the first segment of the path names.
44  // Split the head off the state.
45  key_type Path::reduce();
46 
47  // Return true if the path is empty.
48  bool Path::empty() const;
49 
50  // Return true if the path contains a single element.
51  bool Path::single() const;
52 
53  // Dump as a std::string, for exception messages.
54  std::string Path::dump() const;
55  }
56  concept PropertyTreeKey<class Key> {
57  PropertyTreePath path;
58  requires SameType<Key, PropertyTreePath<path>::key_type>;
59  }
60  concept PropertyTreeTranslator<class Tr> {
61  typename internal_type;
62  typename external_type;
63 
64  boost::optional<external_type> Tr::get_value(internal_type);
65  boost::optional<internal_type> Tr::put_value(external_type);
66  }
67 #endif
68  template <typename Key>
73  struct path_of;
74 
79  template <typename Internal, typename External>
81 
82  class ptree_error;
83  class ptree_bad_data;
85 
86  // Typedefs
87 
90 
96 
101  typedef basic_ptree<std::string, std::string,
104 
105 #ifndef BOOST_NO_STD_WSTRING
106 
108 
115 
121  typedef basic_ptree<std::wstring, std::wstring,
124 #endif
125 
126  // Free functions
127 
131  template<class K, class D, class C>
132  void swap(basic_ptree<K, D, C> &pt1,
133  basic_ptree<K, D, C> &pt2);
134 
135 } }
136 
137 
138 #if !defined(BOOST_PROPERTY_TREE_DOXYGEN_INVOKED)
139  // Throwing macro to avoid no return warnings portably
140 # define BOOST_PROPERTY_TREE_THROW(e) BOOST_THROW_EXCEPTION(e)
141 #endif
142 
143 #endif
boost::property_tree::path_of
Definition: ptree_fwd.hpp:73
boost::property_tree::path
string_path< std::string, id_translator< std::string > > path
Definition: ptree_fwd.hpp:84
config.hpp
boost::property_tree::ptree_error
Definition: exceptions.hpp:27
boost
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
boost::property_tree::translator_between
Definition: ptree_fwd.hpp:80
boost::property_tree::ptree_bad_data
Definition: exceptions.hpp:40
boost::property_tree::swap
void swap(basic_ptree< K, D, C > &pt1, basic_ptree< K, D, C > &pt2)
Definition: ptree_implementation.hpp:922
boost::property_tree::string_path
Definition: ptree_fwd.hpp:36
boost::property_tree::wpath
string_path< std::wstring, id_translator< std::wstring > > wpath
Definition: ptree_fwd.hpp:107
optional_fwd.hpp
boost::property_tree::detail::less_nocase
Definition: ptree_utils.hpp:25
boost::property_tree::string_path::key_type
Translator::external_type key_type
Definition: string_path.hpp:87
boost::property_tree::ptree
basic_ptree< std::string, std::string > ptree
Definition: ptree_fwd.hpp:95
boost::property_tree::wptree
basic_ptree< std::wstring, std::wstring > wptree
Definition: ptree_fwd.hpp:114
boost::property_tree::basic_ptree
Definition: ptree.hpp:48
throw_exception.hpp
boost::property_tree::iptree
basic_ptree< std::string, std::string, detail::less_nocase< std::string > > iptree
Definition: ptree_fwd.hpp:103
boost::property_tree::wiptree
basic_ptree< std::wstring, std::wstring, detail::less_nocase< std::wstring > > wiptree
Definition: ptree_fwd.hpp:123
boost::property_tree::ptree_bad_path
Definition: exceptions.hpp:64
boost::optional
Definition: old_optional_implementation.hpp:646


sick_visionary_ros
Author(s): SICK AG TechSupport 3D Snapshot
autogenerated on Thu Feb 8 2024 03:45:47