Public Member Functions | Protected Attributes

Geom::Size2D< T > Class Template Reference

basic 2D sizes (width/height) class More...

List of all members.

Public Member Functions

 Size2D (T w=0, T h=0)
bool operator== (const Size2D< T > &) const
bool operator!= (const Size2D< T > &) const
width () const
height () const
void setWidth (T val)
void setHeight (T val)
Size2D< T > operator+ (T val) const
Size2D< T > & operator+= (T val)
Size2D< T > & operator-= (T val)
Size2D< T > & operator+= (const Size2D< T > &)
Size2D< T > & operator-= (const Size2D< T > &)

Protected Attributes

width_
height_

Detailed Description

template<class T>
class Geom::Size2D< T >

basic 2D sizes (width/height) class


Constructor & Destructor Documentation

template<class T >
Geom::Size2D< T >::Size2D ( w = 0,
h = 0 
) [inline]

Member Function Documentation

template<class T >
T Geom::Size2D< T >::height (  )  const [inline]
template<class T >
bool Geom::Size2D< T >::operator!= ( const Size2D< T > &  s  )  const [inline]
template<class T >
Size2D< T > Geom::Size2D< T >::operator+ ( val  )  const [inline]
template<class T >
Size2D< T > & Geom::Size2D< T >::operator+= ( val  )  [inline]
template<class T >
Size2D< T > & Geom::Size2D< T >::operator+= ( const Size2D< T > &  s  )  [inline]
template<class T >
Size2D< T > & Geom::Size2D< T >::operator-= ( const Size2D< T > &  s  )  [inline]
template<class T >
Size2D< T > & Geom::Size2D< T >::operator-= ( val  )  [inline]
template<class T >
bool Geom::Size2D< T >::operator== ( const Size2D< T > &  s  )  const [inline]
template<class T >
void Geom::Size2D< T >::setHeight ( val  )  [inline]
template<class T >
void Geom::Size2D< T >::setWidth ( val  )  [inline]
template<class T >
T Geom::Size2D< T >::width (  )  const [inline]

Member Data Documentation

template<class T>
T Geom::Size2D< T >::height_ [protected]
template<class T>
T Geom::Size2D< T >::width_ [protected]