Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

mat::MatrixInterfaceAdapter< M, T, ScaleT, RegionT > Class Template Reference

#include <matrixadapter.h>

Inheritance diagram for mat::MatrixInterfaceAdapter< M, T, ScaleT, RegionT >:

Inheritance graph
[legend]
Collaboration diagram for mat::MatrixInterfaceAdapter< M, T, ScaleT, RegionT >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class M, class T = typename M::value_type, class ScaleT = Scale::Linear<T>, class RegionT = Boundary::AAArbitraryRectangle<double,int>>
class mat::MatrixInterfaceAdapter< M, T, ScaleT, RegionT >

Wraps up a MatrixAdapter<> as a MatrixInterface<>, without introducing any virtual function overhead into the actual MatrixAdapter<> class.

This class is intended to duplicate the semantics of MatrixAdapter<>, so see the documentation for that class for more information.

Definition at line 227 of file matrixadapter.h.

Public Types

typedef MatrixInterface< T
>::size_type 
size_type
typedef MatrixInterface< T
>::value_type 
value_type
typedef ScaleT ScaleType
typedef RegionT Region

Public Methods

 MatrixInterfaceAdapter (const M &x, const ScaleType &vscale=ScaleType(), const Region &region=Region(), const double &size_multiplier=1.0)
 Constructor for a reference to an external matrix with its own lifetime that is larger than that of this object.

 MatrixInterfaceAdapter (M *x, const ScaleType &vscale=ScaleType(), const Region &region=Region(), const double &size_multiplier=1.0)
 Constructor for a newly-allocated matrix which will be owned by this object and deleted when this object is destroyed.

value_type operator() (const size_type row, const size_type col) const
size_type nrows () const
 Number of rows in the virtual matrix.

size_type ncols () const
 Number of columns in the virtual matrix.


Protected Attributes

MatrixAdapter< M, value_type > ma


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:37:37 2003 for RF-LISSOM by doxygen1.3-rc2