Auxiliary data structure for box.
More...
|
std::istream & | operator>> (std::istream &in, JBox &box) |
| Read box from input stream.
|
|
std::ostream & | operator<< (std::ostream &out, const JBox &box) |
| Write box to output stream.
|
|
Auxiliary data structure for box.
Definition at line 17 of file JBox.cc.
◆ operator>>
std::istream & operator>> |
( |
std::istream & | in, |
|
|
JBox & | box ) |
|
friend |
Read box from input stream.
- Parameters
-
- Returns
- input stream
Definition at line 26 of file JBox.cc.
27 {
28 return in >> box.
x1 >> box.
y1 >> box.
x2 >> box.
y2;
29 }
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const JBox & | box ) |
|
friend |
Write box to output stream.
- Parameters
-
- Returns
- output stream
Definition at line 38 of file JBox.cc.
39 {
44
45 return out;
46 }
◆ x1
◆ y1
◆ x2
◆ y2
The documentation for this struct was generated from the following file: