Public Member Functions | Private Attributes | Friends
karto::Size2< T > Class Template Reference

#include <Karto.h>

List of all members.

Public Member Functions

const T GetHeight () const
const T GetWidth () const
kt_bool operator!= (const Size2 &rOther) const
Size2operator= (const Size2 &rOther)
kt_bool operator== (const Size2 &rOther) const
void SetHeight (T height)
void SetWidth (T width)
 Size2 ()
 Size2 (T width, T height)
 Size2 (const Size2 &rOther)

Private Attributes

m_Height
m_Width

Friends

std::ostream & operator<< (std::ostream &rStream, const Size2 &rSize)

Detailed Description

template<typename T>
class karto::Size2< T >

Represents a size (width, height) in 2-dimensional real space.

Definition at line 808 of file Karto.h.


Constructor & Destructor Documentation

template<typename T>
karto::Size2< T >::Size2 ( ) [inline]

Default constructor

Definition at line 814 of file Karto.h.

template<typename T>
karto::Size2< T >::Size2 ( width,
height 
) [inline]

Constructor initializing point location

Parameters:
width
height

Definition at line 825 of file Karto.h.

template<typename T>
karto::Size2< T >::Size2 ( const Size2< T > &  rOther) [inline]

Copy constructor

Parameters:
rOther

Definition at line 835 of file Karto.h.


Member Function Documentation

template<typename T>
const T karto::Size2< T >::GetHeight ( ) const [inline]

Gets the height

Returns:
the height

Definition at line 864 of file Karto.h.

template<typename T>
const T karto::Size2< T >::GetWidth ( ) const [inline]

Gets the width

Returns:
the width

Definition at line 846 of file Karto.h.

template<typename T>
kt_bool karto::Size2< T >::operator!= ( const Size2< T > &  rOther) const [inline]

Inequality operator

Definition at line 900 of file Karto.h.

template<typename T>
Size2& karto::Size2< T >::operator= ( const Size2< T > &  rOther) [inline]

Assignment operator

Definition at line 881 of file Karto.h.

template<typename T>
kt_bool karto::Size2< T >::operator== ( const Size2< T > &  rOther) const [inline]

Equality operator

Definition at line 892 of file Karto.h.

template<typename T>
void karto::Size2< T >::SetHeight ( height) [inline]

Sets the height

Parameters:
height

Definition at line 873 of file Karto.h.

template<typename T>
void karto::Size2< T >::SetWidth ( width) [inline]

Sets the width

Parameters:
width

Definition at line 855 of file Karto.h.


Friends And Related Function Documentation

template<typename T>
std::ostream& operator<< ( std::ostream &  rStream,
const Size2< T > &  rSize 
) [friend]

Write Size2 onto output stream

Parameters:
rStreamoutput stream
rSizeto write

Definition at line 910 of file Karto.h.


Member Data Documentation

template<typename T>
T karto::Size2< T >::m_Height [private]

Definition at line 918 of file Karto.h.

template<typename T>
T karto::Size2< T >::m_Width [private]

Definition at line 917 of file Karto.h.


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


open_karto
Author(s):
autogenerated on Thu Jun 6 2019 21:02:57