Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::RegularGridVMatrix Class Reference

#include <RegularGridVMatrix.h>

Inheritance diagram for PLearn::RegularGridVMatrix:

Inheritance graph
[legend]
Collaboration diagram for PLearn::RegularGridVMatrix:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RegularGridVMatrix ()
 RegularGridVMatrix (TVec< int > the_dimensions, TVec< pair< real, real > > the_range)
virtual void build ()
 Should call simply inherited::build(), then this class's build_().

virtual void makeDeepCopyFromShallowCopy (map< const void *, void * > &copies)
 Transforms a shallow copy into a deep copy.

 PLEARN_DECLARE_OBJECT (RegularGridVMatrix)
 Declares name and deepCopy methods.


Public Attributes

TVec< intdimensions
TVec< pair< real, real > > range

Protected Member Functions

virtual void getNewRow (int i, const Vec &v) const
 This is the only method requiring implementation.


Static Protected Member Functions

void declareOptions (OptionList &ol)
 Declares this class' options.


Private Types

typedef RowBufferedVMatrix inherited

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

typedef RowBufferedVMatrix PLearn::RegularGridVMatrix::inherited [private]
 

Reimplemented from PLearn::RowBufferedVMatrix.

Definition at line 51 of file RegularGridVMatrix.h.


Constructor & Destructor Documentation

PLearn::RegularGridVMatrix::RegularGridVMatrix  ) 
 

Definition at line 47 of file RegularGridVMatrix.cc.

PLearn::RegularGridVMatrix::RegularGridVMatrix TVec< int the_dimensions,
TVec< pair< real, real > >  the_range
 

Definition at line 55 of file RegularGridVMatrix.cc.

References build_(), and std::copy().


Member Function Documentation

void PLearn::RegularGridVMatrix::build  )  [virtual]
 

Should call simply inherited::build(), then this class's build_().

This method should be callable again at later times, after modifying some option fields to change the "architecture" of the object.

Reimplemented from PLearn::VMatrix.

Definition at line 117 of file RegularGridVMatrix.cc.

References build_().

void PLearn::RegularGridVMatrix::build_  )  [private]
 

This does the actual building.

Reimplemented from PLearn::VMatrix.

Definition at line 104 of file RegularGridVMatrix.cc.

References dimensions, PLearn::TVec< int >::length(), and PLearn::product().

Referenced by build(), and RegularGridVMatrix().

void PLearn::RegularGridVMatrix::declareOptions OptionList ol  )  [static, protected]
 

Declares this class' options.

Reimplemented from PLearn::VMatrix.

Definition at line 81 of file RegularGridVMatrix.cc.

References PLearn::declareOption(), and PLearn::OptionList.

void PLearn::RegularGridVMatrix::getNewRow int  i,
const Vec v
const [protected, virtual]
 

This is the only method requiring implementation.

Implements PLearn::RowBufferedVMatrix.

Definition at line 65 of file RegularGridVMatrix.cc.

References dimensions, PLearn::TVec< pair< real, real > >::first(), k, PLearn::VMatrix::length(), PLearn::TVec< T >::length(), PLERROR, range, PLearn::Vec, and PLearn::VMatrix::width().

void PLearn::RegularGridVMatrix::makeDeepCopyFromShallowCopy map< const void *, void * > &  copies  )  [virtual]
 

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::RowBufferedVMatrix.

Definition at line 123 of file RegularGridVMatrix.cc.

References PLearn::deepCopyField(), dimensions, and range.

PLearn::RegularGridVMatrix::PLEARN_DECLARE_OBJECT RegularGridVMatrix   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

TVec<int> PLearn::RegularGridVMatrix::dimensions
 

Definition at line 63 of file RegularGridVMatrix.h.

Referenced by build_(), getNewRow(), and makeDeepCopyFromShallowCopy().

TVec< pair<real,real> > PLearn::RegularGridVMatrix::range
 

Definition at line 64 of file RegularGridVMatrix.h.

Referenced by getNewRow(), and makeDeepCopyFromShallowCopy().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:26:34 2004 for PLearn by doxygen 1.3.7