converter.hpp
Go to the documentation of this file.
1 /* Copyright 2003-2013 Joaquin M Lopez Munoz.
2  * Distributed under the Boost Software License, Version 1.0.
3  * (See accompanying file LICENSE_1_0.txt or copy at
4  * http://www.boost.org/LICENSE_1_0.txt)
5  *
6  * See http://www.boost.org/libs/multi_index for library home page.
7  */
8 
9 #ifndef BOOST_MULTI_INDEX_DETAIL_CONVERTER_HPP
10 #define BOOST_MULTI_INDEX_DETAIL_CONVERTER_HPP
11 
12 #if defined(_MSC_VER)
13 #pragma once
14 #endif
15 
16 namespace boost{
17 
18 namespace multi_index{
19 
20 namespace detail{
21 
22 /* converter offers means to access indices of a given multi_index_container
23  * and for convertibilty between index iterators, so providing a
24  * localized access point for get() and project() functions.
25  */
26 
27 template<typename MultiIndexContainer,typename Index>
28 struct converter
29 {
30  static const Index& index(const MultiIndexContainer& x){return x;}
31  static Index& index(MultiIndexContainer& x){return x;}
32 
33  static typename Index::const_iterator const_iterator(
34  const MultiIndexContainer& x,typename MultiIndexContainer::node_type* node)
35  {
36  return x.Index::make_iterator(node);
37  }
38 
39  static typename Index::iterator iterator(
40  MultiIndexContainer& x,typename MultiIndexContainer::node_type* node)
41  {
42  return x.Index::make_iterator(node);
43  }
44 };
45 
46 } /* namespace multi_index::detail */
47 
48 } /* namespace multi_index */
49 
50 } /* namespace boost */
51 
52 #endif
boost::multi_index::detail::converter::index
static const Index & index(const MultiIndexContainer &x)
Definition: converter.hpp:30
boost::multi_index::detail::converter::index
static Index & index(MultiIndexContainer &x)
Definition: converter.hpp:31
boost
BOOST_MOVE_USE_STANDARD_LIBRARY_MOVE.
boost::multi_index::detail::converter
Definition: converter.hpp:28
boost::multi_index::detail::converter::iterator
static Index::iterator iterator(MultiIndexContainer &x, typename MultiIndexContainer::node_type *node)
Definition: converter.hpp:39
boost::property_tree::detail::rapidxml::node_type
node_type
Definition: rapidxml.hpp:117
boost::multi_index::detail::converter::const_iterator
static Index::const_iterator const_iterator(const MultiIndexContainer &x, typename MultiIndexContainer::node_type *node)
Definition: converter.hpp:33


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