SCIRun  5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | List of all members
Array2< T > Class Template Reference

#include <Array2.h>

Public Types

typedef boost::multi_array< T, 2 > impl_type
 
typedef T value_type
 

Public Member Functions

 Array2 ()
 
 Array2 (size_t size1, size_t size2)
 
void resize (size_t size1, size_t size2)
 
size_t size () const
 
T & operator[] (size_t idx)
 
const T & operator[] (size_t idx) const
 
const T & operator() (index_type d1, index_type d2) const
 
T & operator() (index_type d1, index_type d2)
 
size_t dim1 () const
 Returns number of rows. More...
 
size_t dim2 () const
 Returns number of cols. More...
 
impl_typegetImpl ()
 

Member Typedef Documentation

typedef boost::multi_array<T, 2> impl_type
typedef T value_type

Constructor & Destructor Documentation

Array2 ( )
inline
Array2 ( size_t  size1,
size_t  size2 
)
inline

Member Function Documentation

size_t dim1 ( ) const
inline

Returns number of rows.

size_t dim2 ( ) const
inline

Returns number of cols.

impl_type& getImpl ( )
inline
const T& operator() ( index_type  d1,
index_type  d2 
) const
inline
T& operator() ( index_type  d1,
index_type  d2 
)
inline
T& operator[] ( size_t  idx)
inline
const T& operator[] ( size_t  idx) const
inline
void resize ( size_t  size1,
size_t  size2 
)
inline
size_t size ( ) const
inline

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