// Boost.Geometry Index // // R-tree nodes static visitor related code // // Copyright (c) 2011-2013 Adam Wulkiewicz, Lodz, Poland. // // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_STATIC_VISITOR_HPP #define BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_STATIC_VISITOR_HPP #include namespace boost { namespace geometry { namespace index { namespace detail { namespace rtree { // nodes variants forward declarations template struct static_internal_node; template struct static_leaf; // nodes conversion template inline V & get( boost::variant< static_leaf, static_internal_node > & v) { return boost::get(v); } // apply visitor template inline void apply_visitor(Visitor & v, boost::variant< static_leaf, static_internal_node > & n) { boost::apply_visitor(v, n); } template inline void apply_visitor(Visitor & v, boost::variant< static_leaf, static_internal_node > const& n) { boost::apply_visitor(v, n); } }} // namespace detail::rtree }}} // namespace boost::geometry::index #endif // BOOST_GEOMETRY_INDEX_DETAIL_RTREE_NODE_STATIC_VISITOR_HPP