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

PLearn::PreprocessingVMatrix Class Reference

#include <VMatLanguage.h>

Inheritance diagram for PLearn::PreprocessingVMatrix:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PreprocessingVMatrix ()
 PreprocessingVMatrix (VMat the_source, const string &program_string)
 PLEARN_DECLARE_OBJECT (PreprocessingVMatrix)
virtual void build ()
 Should call simply inherited::build(), then this class's build_().


Protected Member Functions

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


Static Protected Member Functions

void declareOptions (OptionList &ol)
 redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down)


Protected Attributes

VMat source
VMatLanguage program
Vec sourcevec
vector< stringfieldnames

Private Types

typedef RowBufferedVMatrix inherited

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

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

Reimplemented from PLearn::RowBufferedVMatrix.

Definition at line 136 of file VMatLanguage.h.


Constructor & Destructor Documentation

PLearn::PreprocessingVMatrix::PreprocessingVMatrix  )  [inline]
 

Definition at line 145 of file VMatLanguage.h.

PLearn::PreprocessingVMatrix::PreprocessingVMatrix VMat  the_source,
const string program_string
 

Definition at line 812 of file VMatLanguage.cc.

References build(), PLearn::VMatLanguage::compileString(), fieldnames, and program.


Member Function Documentation

void PLearn::PreprocessingVMatrix::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 820 of file VMatLanguage.cc.

References build_().

Referenced by PreprocessingVMatrix().

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

This does the actual building.

Reimplemented from PLearn::VMatrix.

Definition at line 827 of file VMatLanguage.cc.

References fieldnames, PLearn::VMat::length(), PLearn::TVec< T >::resize(), PLearn::TVec< VMField >::resize(), source, sourcevec, and PLearn::VMat::width().

Referenced by build().

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

redefine this in subclasses: call declareOption(...) for each option, and then call inherited::declareOptions(options) ( see the declareOption function further down)

ex: static void declareOptions(OptionList& ol) { declareOption(ol, "inputsize", &MyObject::inputsize_, OptionBase::buildoption, "the size of the input\n it must be provided"); declareOption(ol, "weights", &MyObject::weights, OptionBase::learntoption, "the learnt model weights"); inherited::declareOptions(ol); }

Reimplemented from PLearn::VMatrix.

Definition at line 841 of file VMatLanguage.cc.

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

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

This is the only method requiring implementation in subclasses.

Implements PLearn::RowBufferedVMatrix.

Definition at line 805 of file VMatLanguage.cc.

References program, PLearn::VMatLanguage::run(), and PLearn::Vec.

PLearn::PreprocessingVMatrix::PLEARN_DECLARE_OBJECT PreprocessingVMatrix   ) 
 


Member Data Documentation

vector<string> PLearn::PreprocessingVMatrix::fieldnames [protected]
 

Definition at line 142 of file VMatLanguage.h.

Referenced by build_(), and PreprocessingVMatrix().

VMatLanguage PLearn::PreprocessingVMatrix::program [protected]
 

Definition at line 140 of file VMatLanguage.h.

Referenced by getNewRow(), and PreprocessingVMatrix().

VMat PLearn::PreprocessingVMatrix::source [protected]
 

Definition at line 139 of file VMatLanguage.h.

Referenced by build_().

Vec PLearn::PreprocessingVMatrix::sourcevec [protected]
 

Definition at line 141 of file VMatLanguage.h.

Referenced by build_().


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