29 TPoint(T
const& _left, T
const& _top) :
95 void set(T
const& _left, T
const& _top)
110 return ((
left == 0) && (
top == 0));
115 std::ostringstream stream;
123 std::istringstream stream(_value);
124 stream >> result.
left >> result.
top;
131 int item = stream.get();
134 if (item !=
' ' && item !=
'\t')
144 _stream << _value.
left <<
" " << _value.
top;
150 _stream >> _value.
left >> _value.
top;
TPoint & operator-=(TPoint const &_obj)
bool operator==(TPoint const &_obj) const
TPoint operator-(TPoint const &_obj) const
friend std::ostream & operator<<(std::ostream &_stream, const TPoint< T > &_value)
TPoint(T const &_left, T const &_top)
TPoint operator+(TPoint const &_obj) const
void set(T const &_left, T const &_top)
void swap(TPoint &_value)
TPoint & operator+=(TPoint const &_obj)
TPoint(TPoint const &_obj)
static TPoint< T > parse(const std::string &_value)
bool operator!=(TPoint const &_obj) const
TPoint & operator=(TPoint const &_obj)
std::string print() const
friend std::istream & operator>>(std::istream &_stream, TPoint< T > &_value)