]> git.proxmox.com Git - ceph.git/blame - 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
CommitLineData
7c673cae
FG
1/*
2Copyright 2010 Intel Corporation
3
4Use, modification and distribution are subject to the Boost Software License,
5Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6http://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
15struct layout_rectangle {
16 int xl, yl, xh, yh;
17 std::string layer;
18};
19
20inline 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
26inline 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