SWE
Public Member Functions
Float2D Class Reference

#include <help.hh>

List of all members.

Public Member Functions

 Float2D (int _cols, int _rows)
float * operator[] (int i)
float const * operator[] (int i) const
float * elemVector ()
int getRows () const
int getCols () const
Float1D getColProxy (int i)
Float1D getRowProxy (int j)

Detailed Description

class Float2D is a very basic helper class to deal with 2D float arrays: indices represent columns (1st index, "horizontal"/x-coordinate) and rows (2nd index, "vertical"/y-coordinate) of a 2D grid; values are sequentially ordered in memory using "column major" order. Besides constructor/deconstructor, the class provides overloading of the []-operator, such that elements can be accessed as a[i][j].


Constructor & Destructor Documentation

Float2D::Float2D ( int  _cols,
int  _rows 
) [inline]

Constructor

Parameters:
_colsnumber of columns (i.e., elements in horizontal direction)
_rowsrumber of rows (i.e., elements in vertical directions)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends