Clipper
clipper::Array2d< T > Class Template Reference

Simple 2-d array class. More...

#include <clipper_types.h>

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
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.

Member Function Documentation

◆ cols()

template<class T = ftype>
const int & clipper::Array2d< T >::cols ( ) const
inline

number of cols


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