]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/polygon/doc/tutorial/layout_pin.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / polygon / doc / tutorial / layout_pin.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_pin.hpp
10 #ifndef BOOST_POLYGON_TUTORIAL_LAYOUT_PIN_HPP
11 #define BOOST_POLYGON_TUTORIAL_LAYOUT_PIN_HPP
12 #include <string>
13 #include <iostream>
14
15 struct layout_pin {
16 int xl, yl, xh, yh;
17 std::string layer;
18 std::string net;
19 };
20
21 inline std::ostream& operator << (std::ostream& o, const layout_pin& r)
22 {
23 o << r.xl << " " << r.xh << " " << r.yl << " " << r.yh << " " << r.layer << " " << r.net;
24 return o;
25 }
26
27 inline std::istream& operator >> (std::istream& i, layout_pin& r)
28 {
29 i >> r.xl >> r.xh >> r.yl >> r.yh >> r.layer >> r.net;
30 return i;
31 }
32
33 #endif