]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/polygon/doc/tutorial/layout_rectangle.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / polygon / doc / tutorial / layout_rectangle.hpp
1 /*
2 Copyright 2010 Intel Corporation
3
4 Use, modification and distribution are subject to the Boost Software License,
5 Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 http://www.boost.org/LICENSE_1_0.txt).
7 */
8
9 //layout_rectangle.hpp
10 #ifndef BOOST_POLYGON_TUTORIAL_LAYOUT_RECTANGLE_HPP
11 #define BOOST_POLYGON_TUTORIAL_LAYOUT_RECTANGLE_HPP
12 #include <string>
13 #include <iostream>
14
15 struct layout_rectangle {
16 int xl, yl, xh, yh;
17 std::string layer;
18 };
19
20 inline std::ostream& operator << (std::ostream& o, const layout_rectangle& r)
21 {
22 o << r.xl << " " << r.xh << " " << r.yl << " " << r.yh << " " << r.layer;
23 return o;
24 }
25
26 inline std::istream& operator >> (std::istream& i, layout_rectangle& r)
27 {
28 i >> r.xl >> r.xh >> r.yl >> r.yh >> r.layer;
29 return i;
30 }
31
32 #endif