#include <SgPoint.h>
For overloading input stream operator for SgPoint (which is an integer). Usage:
istream& in;
SgPoint point;
in >> SgReadPoint(point);
if (! in)
SgDebug() << "Invalid point\n";
Definition at line 176 of file SgPoint.h.
Public Member Functions | |
| SgReadPoint (SgPoint &point) | |
| void | Read (std::istream &in) const |
Private Attributes | |
| SgPoint & | m_point |
Related Functions | |
| (Note that these are not member functions.) | |
| std::istream & | operator>> (std::istream &in, const SgReadPoint &readPoint) |
| void SgReadPoint::Read | ( | std::istream & | in | ) | const |
Definition at line 95 of file SgPoint.cpp.
References SgUtil::InRange(), m_point, SgPointUtil::Pt(), SG_ASSERT, SG_COUPONMOVE, SG_COUPONMOVE_VIRTUAL, SG_MAX_SIZE, SG_PASS, and SG_RESIGN.
Referenced by operator>>().
| std::istream & operator>> | ( | std::istream & | in, | |
| const SgReadPoint & | readPoint | |||
| ) | [related] |
SgPoint& SgReadPoint::m_point [private] |