TuttleOFX  1
terry::Rect< T > Class Template Reference

#include <Rect.hpp>

Collaboration diagram for terry::Rect< T >:

Public Types

typedef T value_type

Public Member Functions

 Rect ()
 Rect (const T nX1, const T nY1, const T nX2, const T nY2)
 Rect (const Rect &r)
template<class OtherRect >
 Rect (const OtherRect &r)
 ~Rect ()
Rectoperator= (const Rect &r)
const T & operator[] (const std::size_t i) const
T & operator[] (const std::size_t i)
point2< T > cornerMin () const
point2< T > cornerMax () const
point2< T > size () const

Data Fields

x1
y1
x2
y2

Static Public Attributes

static const std::size_t num_dimensions = 4

Static Private Attributes

static T Rect< T >const mem_array [num_dimensions] = { &Rect<T>::x1, &Rect<T>::y1, &Rect<T>::x2, &Rect<T>::y2 }

Detailed Description

template<typename T>
class terry::Rect< T >

Definition at line 15 of file Rect.hpp.


Member Typedef Documentation

template<typename T>
typedef T terry::Rect< T >::value_type

Definition at line 17 of file Rect.hpp.


Constructor & Destructor Documentation

template<typename T>
terry::Rect< T >::Rect ( ) [inline]

Definition at line 20 of file Rect.hpp.

template<typename T>
terry::Rect< T >::Rect ( const T  nX1,
const T  nY1,
const T  nX2,
const T  nY2 
) [inline]

Definition at line 21 of file Rect.hpp.

template<typename T>
terry::Rect< T >::Rect ( const Rect< T > &  r) [inline]

Definition at line 25 of file Rect.hpp.

template<typename T>
template<class OtherRect >
terry::Rect< T >::Rect ( const OtherRect< T > &  r) [inline]

Definition at line 30 of file Rect.hpp.

template<typename T>
terry::Rect< T >::~Rect ( ) [inline]

Definition at line 34 of file Rect.hpp.


Member Function Documentation

template<typename T>
point2<T> terry::Rect< T >::cornerMax ( ) const [inline]

Definition at line 42 of file Rect.hpp.

template<typename T>
point2<T> terry::Rect< T >::cornerMin ( ) const [inline]

Definition at line 41 of file Rect.hpp.

template<typename T>
Rect& terry::Rect< T >::operator= ( const Rect< T > &  r) [inline]
template<typename T>
const T& terry::Rect< T >::operator[] ( const std::size_t  i) const [inline]

Definition at line 38 of file Rect.hpp.

template<typename T>
T& terry::Rect< T >::operator[] ( const std::size_t  i) [inline]

Definition at line 39 of file Rect.hpp.

template<typename T>
point2<T> terry::Rect< T >::size ( ) const [inline]

Field Documentation

template<typename T>
T Rect< T > const terry::Rect< T >::mem_array = { &Rect<T>::x1, &Rect<T>::y1, &Rect<T>::x2, &Rect<T>::y2 } [static, private]

Definition at line 51 of file Rect.hpp.

template<typename T>
const std::size_t terry::Rect< T >::num_dimensions = 4 [static]

Definition at line 18 of file Rect.hpp.


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