Public Member Functions

CL_Size Class Reference
[clanCore Math]

2D (width,height) size structure - Integer More...

#include <size.h>

Inheritance diagram for CL_Size:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CL_Size ()
 CL_Size (const CL_Sizex< double > &copy)
 CL_Size (const CL_Sizex< float > &copy)
 CL_Size (const CL_Sizex< int > &s)
 CL_Size (int width, int height)
Operations

CL_Sizex< int > & operator+= (const CL_Sizex< int > &s)
 Size += Size operator.
CL_Sizex< int > & operator+= (const int &s)
 Size += operator.
CL_Sizex< int > & operator-= (const CL_Sizex< int > &s)
 Size -= Size operator.
CL_Sizex< int > & operator-= (const int &s)
 Size -= operator.
CL_Sizex< int > operator+ (const CL_Sizex< int > &s) const
 Size + Size operator.
CL_Sizex< int > operator+ (const int &s) const
 Size + operator.
CL_Sizex< int > operator- (const CL_Sizex< int > &s) const
 Size - Size operator.
CL_Sizex< int > operator- (const int &s) const
 Size - operator.
CL_Sizex< int > & operator*= (const int &s)
 Size *= operator.
CL_Sizex< int > & operator/= (const int &s)
 Size /= operator.
CL_Sizex< int > operator* (const int &s) const
 Size * operator.
CL_Sizex< int > operator/ (const int &s) const
 Size / operator.
bool operator== (const CL_Sizex< int > &s) const
 Size == Size operator (deep compare).
bool operator!= (const CL_Sizex< int > &s) const
 Size != Size operator (deep compare).

Public Attributes

Attributes

int width
 Size width.
int height
 Size height.

Detailed Description

2D (width,height) size structure - Integer


Constructor & Destructor Documentation

CL_Size::CL_Size (  )  [inline]
CL_Size::CL_Size ( int  width,
int  height 
) [inline]
CL_Size::CL_Size ( const CL_Sizex< int > &  s  )  [inline]
CL_Size::CL_Size ( const CL_Sizex< float > &  copy  )  [inline, explicit]
CL_Size::CL_Size ( const CL_Sizex< double > &  copy  )  [inline, explicit]

Member Function Documentation

bool CL_Sizex< int >::operator!= ( const CL_Sizex< int > &  s  )  const [inline, inherited]

Size != Size operator (deep compare).

References CL_Sizex< Type >::height, and CL_Sizex< Type >::width.

CL_Sizex<int > CL_Sizex< int >::operator* ( const int &  s  )  const [inline, inherited]

Size * operator.

CL_Sizex<int >& CL_Sizex< int >::operator*= ( const int &  s  )  [inline, inherited]

Size *= operator.

CL_Sizex<int > CL_Sizex< int >::operator+ ( const CL_Sizex< int > &  s  )  const [inline, inherited]

Size + Size operator.

References CL_Sizex< Type >::height, and CL_Sizex< Type >::width.

CL_Sizex<int > CL_Sizex< int >::operator+ ( const int &  s  )  const [inline, inherited]

Size + operator.

CL_Sizex<int >& CL_Sizex< int >::operator+= ( const CL_Sizex< int > &  s  )  [inline, inherited]

Size += Size operator.

References CL_Sizex< Type >::height, and CL_Sizex< Type >::width.

CL_Sizex<int >& CL_Sizex< int >::operator+= ( const int &  s  )  [inline, inherited]

Size += operator.

CL_Sizex<int > CL_Sizex< int >::operator- ( const int &  s  )  const [inline, inherited]

Size - operator.

CL_Sizex<int > CL_Sizex< int >::operator- ( const CL_Sizex< int > &  s  )  const [inline, inherited]

Size - Size operator.

References CL_Sizex< Type >::height, and CL_Sizex< Type >::width.

CL_Sizex<int >& CL_Sizex< int >::operator-= ( const int &  s  )  [inline, inherited]

Size -= operator.

CL_Sizex<int >& CL_Sizex< int >::operator-= ( const CL_Sizex< int > &  s  )  [inline, inherited]

Size -= Size operator.

References CL_Sizex< Type >::height, and CL_Sizex< Type >::width.

CL_Sizex<int > CL_Sizex< int >::operator/ ( const int &  s  )  const [inline, inherited]

Size / operator.

CL_Sizex<int >& CL_Sizex< int >::operator/= ( const int &  s  )  [inline, inherited]

Size /= operator.

bool CL_Sizex< int >::operator== ( const CL_Sizex< int > &  s  )  const [inline, inherited]

Size == Size operator (deep compare).

References CL_Sizex< Type >::height, and CL_Sizex< Type >::width.


Member Data Documentation

int CL_Sizex< int >::height [inherited]

Size height.

Referenced by CL_Size().

int CL_Sizex< int >::width [inherited]

Size width.

Referenced by CL_Size().


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