Design Patterns
structural::commons::Point< type > Class Template Reference

#include <point.h>

Collaboration diagram for structural::commons::Point< type >:

Public Member Functions

 Point ()
 
 Point (const Point< type > &)
 
 Point (const type &, const type &)
 
type x () const
 
void x (type x)
 
type y () const
 
void y (type y)
 
Point< type > & operator+= (const Point< type > &)
 
Point< type > & operator-= (const Point< type > &)
 
Point< type > & operator*= (const type &)
 
Point< type > & operator/= (const type &)
 
Point< type > operator- ()
 

Friends

Point< type > operator+ (const Point< type > &left, const Point< type > &right)
 
Point< type > operator- (const Point< type > &left, const Point< type > &right)
 
bool operator== (const Point< type > &left, const Point< type > &right)
 
bool operator!= (const Point< type > &left, const Point< type > &right)
 
std::ostream & operator<< (std::ostream &to, const Point< type > &point)
 
std::istream & operator>> (std::istream &from, Point< type > &point)
 

Constructor & Destructor Documentation

template<class type >
structural::commons::Point< type >::Point ( )
template<class type>
structural::commons::Point< type >::Point ( const Point< type > &  point)
template<class type>
structural::commons::Point< type >::Point ( const type &  x,
const type &  y 
)

Member Function Documentation

template<class type>
Point< type > & structural::commons::Point< type >::operator*= ( const type &  point)
template<class type>
Point< type > & structural::commons::Point< type >::operator+= ( const Point< type > &  point)

Here is the call graph for this function:

template<class type>
Point< type > structural::commons::Point< type >::operator- ( )
template<class type>
Point< type > & structural::commons::Point< type >::operator-= ( const Point< type > &  point)

Here is the call graph for this function:

template<class type>
Point< type > & structural::commons::Point< type >::operator/= ( const type &  value)
template<class type >
type structural::commons::Point< type >::x ( ) const

Here is the caller graph for this function:

template<class type>
void structural::commons::Point< type >::x ( type  x)
template<class type >
type structural::commons::Point< type >::y ( ) const

Here is the caller graph for this function:

template<class type>
void structural::commons::Point< type >::y ( type  y)

Friends And Related Function Documentation

template<class type>
bool operator!= ( const Point< type > &  left,
const Point< type > &  right 
)
friend
template<class type>
Point<type> operator+ ( const Point< type > &  left,
const Point< type > &  right 
)
friend
template<class type>
Point<type> operator- ( const Point< type > &  left,
const Point< type > &  right 
)
friend
template<class type>
std::ostream& operator<< ( std::ostream &  to,
const Point< type > &  point 
)
friend
template<class type>
bool operator== ( const Point< type > &  left,
const Point< type > &  right 
)
friend
template<class type>
std::istream& operator>> ( std::istream &  from,
Point< type > &  point 
)
friend

The documentation for this class was generated from the following file: