Points&Forces (survey)
Software tools facilitating the task of surveying architecture
mechanics
a_vertex.cxx
Go to the documentation of this file.
1
/*
2
Copyright 2010-2011 Pierre SMARS (smars@yuntech.edu.tw)
3
This program is free software: you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation, either version 2 of the License, or
6
(at your option) any later version.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
#include "
a_vertex.h
"
17
18
//***************************************************************************
19
//-operator>>----------------------------------------------------------------
20
std::istream&
operator>>
(std::istream& i,
a_vertex
& b)
21
{
22
i >> b.
ref_
;
23
i >> b.
pos_
;
24
return
i;
25
}
26
//-operator<<----------------------------------------------------------------
27
std::ostream&
operator<<
(std::ostream& o,
const
a_vertex
& b)
28
{
29
o << b.
ref_
<<
" "
<< b.
pos_
<< std::endl;
30
return
o;
31
}
32
operator>>
std::istream & operator>>(std::istream &i, a_vertex &b)
Definition:
a_vertex.cxx:20
operator<<
std::ostream & operator<<(std::ostream &o, const a_vertex &b)
Definition:
a_vertex.cxx:27
a_vertex.h
a_vertex
Definition:
a_vertex.h:22
a_vertex::ref_
int ref_
Definition:
a_vertex.h:30
a_vertex::pos_
a_point pos_
Definition:
a_vertex.h:31
Generated on Tue Sep 6 2022 18:45:49 for Points&Forces (survey) by
1.9.1