3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
Array2D< T > Class Template Reference

#include <array2D.h>

Inheritance diagram for Array2D< T >:
Inheritance graph
[legend]

Public Member Functions

 Array2D ()
 
 Array2D (unsigned int w, unsigned int h)
 
 Array2D (unsigned int w, unsigned int h, T **source)
 
 ~Array2D ()
 
 Array2D (const Array2D &other)
 
T * operator[] (unsigned int index) const
 
 operator T** () const
 
 operator T* () const
 
void operator() (unsigned int w, unsigned int h)
 
void operator() (unsigned int w, unsigned int h, T *copy)
 
unsigned int width () const
 
unsigned int height () const
 
bool empty () const
 
 operator bool () const
 
void resize (unsigned int newX, unsigned int newY)
 
unsigned int size () const
 
void clear ()
 
void unpack (std::vector< std::vector< T > > &unpackData) const
 
Array2D< T > & operator= (const Array2D< T > &rhs)
 

Constructor & Destructor Documentation

◆ Array2D() [1/4]

template<typename T>
Array2D< T >::Array2D ( )
inline

◆ Array2D() [2/4]

template<typename T>
Array2D< T >::Array2D ( unsigned int  w,
unsigned int  h 
)
inline

◆ Array2D() [3/4]

template<typename T>
Array2D< T >::Array2D ( unsigned int  w,
unsigned int  h,
T **  source 
)
inline

◆ ~Array2D()

template<typename T>
Array2D< T >::~Array2D ( )
inline

◆ Array2D() [4/4]

template<typename T>
Array2D< T >::Array2D ( const Array2D< T > &  other)
inline

Member Function Documentation

◆ clear()

template<typename T>
void Array2D< T >::clear ( )
inline

◆ empty()

template<typename T>
bool Array2D< T >::empty ( ) const
inline

◆ height()

template<typename T>
unsigned int Array2D< T >::height ( ) const
inline

◆ operator bool()

template<typename T>
Array2D< T >::operator bool ( ) const
inline

◆ operator T*()

template<typename T>
Array2D< T >::operator T* ( ) const
inline

◆ operator T**()

template<typename T>
Array2D< T >::operator T** ( ) const
inline

◆ operator()() [1/2]

template<typename T>
void Array2D< T >::operator() ( unsigned int  w,
unsigned int  h 
)
inline

◆ operator()() [2/2]

template<typename T>
void Array2D< T >::operator() ( unsigned int  w,
unsigned int  h,
T *  copy 
)
inline

◆ operator=()

template<typename T>
Array2D<T>& Array2D< T >::operator= ( const Array2D< T > &  rhs)
inline

◆ operator[]()

template<typename T>
T* Array2D< T >::operator[] ( unsigned int  index) const
inline

◆ resize()

template<typename T>
void Array2D< T >::resize ( unsigned int  newX,
unsigned int  newY 
)
inline

◆ size()

template<typename T>
unsigned int Array2D< T >::size ( ) const
inline

◆ unpack()

template<typename T>
void Array2D< T >::unpack ( std::vector< std::vector< T > > &  unpackData) const
inline

◆ width()

template<typename T>
unsigned int Array2D< T >::width ( ) const
inline

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