Clipper
Public Member Functions | Protected Attributes | List of all members
clipper::Array2d< T > Class Template Reference

Simple 2-d array class. More...

#include <clipper_types.h>

Inheritance diagram for clipper::Array2d< T >:
clipper::Matrix< T >

Public Member Functions

 Array2d ()
 null constructor
 
 Array2d (const int &d1, const int &d2)
 constructor
 
 Array2d (const int &d1, const int &d2, T val)
 constructor
 
void resize (const int &d1, const int &d2)
 resize
 
void resize (const int &d1, const int &d2, const T &val)
 resize
 
int size () const
 size
 
const int & rows () const
 number of rows
 
const int & cols () const
 number of cols
 
const T & operator() (const int &i1, const int &i2) const
 read accessor
 
T & operator() (const int &i1, const int &i2)
 write accessor
 

Protected Attributes

std::vector< T > data
 
int d1_
 
int d2_
 

Detailed Description

template<class T = ftype>
class clipper::Array2d< T >

Simple 2-d array class.


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