YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::collection::Matrix< T > Class Template Reference

#include <Matrix.hpp>

Inheritance diagram for yap::collection::Matrix< T >:
Collaboration diagram for yap::collection::Matrix< T >:

List of all members.

Public Types

typedef T DataType
typedef Array< DataTypeInnerType
typedef InnerType::SizeType SizeType
typedef InnerType::ItType ItType
typedef InnerType::ConstItType ConstItType

Public Member Functions

 Matrix (SizeType width, SizeType height, const DataType &data)
 Matrix (const Matrix< T > &copy)
Matrixoperator= (const Matrix< T > &copy)
ItType begin ()
ConstItType begin () const
ItType Begin ()
ConstItType Begin () const
ItType end ()
ConstItType end () const
ItType End ()
ConstItType End () const
void Resize (SizeType x, SizeType y, const T &data)
void Set (SizeType x, SizeType y, const T &data)
const T & operator() (SizeType x, SizeType y) const
T & operator() (SizeType x, SizeType y)

Private Member Functions

SizeType GetIndex (SizeType x, SizeType y) const

Private Attributes

SizeType width_
SizeType height_
InnerType data_

Detailed Description

template<typename T>
class yap::collection::Matrix< T >

Definition at line 12 of file Matrix.hpp.


Member Typedef Documentation

template<typename T>
typedef InnerType::ConstItType yap::collection::Matrix< T >::ConstItType

Definition at line 20 of file Matrix.hpp.

template<typename T>
typedef T yap::collection::Matrix< T >::DataType

Definition at line 16 of file Matrix.hpp.

template<typename T>
typedef Array<DataType> yap::collection::Matrix< T >::InnerType

Definition at line 17 of file Matrix.hpp.

template<typename T>
typedef InnerType::ItType yap::collection::Matrix< T >::ItType

Definition at line 19 of file Matrix.hpp.

template<typename T>
typedef InnerType::SizeType yap::collection::Matrix< T >::SizeType

Definition at line 18 of file Matrix.hpp.


Constructor & Destructor Documentation

template<typename T >
yap::collection::Matrix< T >::Matrix ( SizeType  width,
SizeType  height,
const DataType data 
)
inline

Definition at line 9 of file Matrix.hxx.

template<typename T>
yap::collection::Matrix< T >::Matrix ( const Matrix< T > &  copy)
inline

Definition at line 20 of file Matrix.hxx.


Member Function Documentation

template<typename T >
Matrix< T >::ItType yap::collection::Matrix< T >::begin ( )
inline

Definition at line 41 of file Matrix.hxx.

template<typename T >
Matrix< T >::ConstItType yap::collection::Matrix< T >::begin ( ) const
inline

Definition at line 47 of file Matrix.hxx.

template<typename T >
Matrix< T >::ItType yap::collection::Matrix< T >::Begin ( )
inline

Definition at line 53 of file Matrix.hxx.

template<typename T >
Matrix< T >::ConstItType yap::collection::Matrix< T >::Begin ( ) const
inline

Definition at line 59 of file Matrix.hxx.

template<typename T >
Matrix< T >::ItType yap::collection::Matrix< T >::end ( )
inline

Definition at line 65 of file Matrix.hxx.

template<typename T >
Matrix< T >::ConstItType yap::collection::Matrix< T >::end ( ) const
inline

Definition at line 71 of file Matrix.hxx.

template<typename T >
Matrix< T >::ItType yap::collection::Matrix< T >::End ( )
inline

Definition at line 77 of file Matrix.hxx.

template<typename T >
Matrix< T >::ConstItType yap::collection::Matrix< T >::End ( ) const
inline

Definition at line 83 of file Matrix.hxx.

template<typename T >
Matrix< T >::SizeType yap::collection::Matrix< T >::GetIndex ( SizeType  x,
SizeType  y 
) const
inlineprivate

Definition at line 122 of file Matrix.hxx.

template<typename T >
const T & yap::collection::Matrix< T >::operator() ( SizeType  x,
SizeType  y 
) const
inline

Definition at line 110 of file Matrix.hxx.

template<typename T >
T & yap::collection::Matrix< T >::operator() ( SizeType  x,
SizeType  y 
)
inline

Definition at line 116 of file Matrix.hxx.

template<typename T>
Matrix< T > & yap::collection::Matrix< T >::operator= ( const Matrix< T > &  copy)
inline

Definition at line 28 of file Matrix.hxx.

template<typename T>
void yap::collection::Matrix< T >::Resize ( SizeType  x,
SizeType  y,
const T &  data 
)
inline

Definition at line 89 of file Matrix.hxx.

Here is the caller graph for this function:

template<typename T>
void yap::collection::Matrix< T >::Set ( SizeType  x,
SizeType  y,
const T &  data 
)
inline

Definition at line 104 of file Matrix.hxx.


Member Data Documentation

template<typename T>
InnerType yap::collection::Matrix< T >::data_
private

Definition at line 51 of file Matrix.hpp.

template<typename T>
SizeType yap::collection::Matrix< T >::height_
private

Definition at line 49 of file Matrix.hpp.

template<typename T>
SizeType yap::collection::Matrix< T >::width_
private

Definition at line 48 of file Matrix.hpp.


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