#include <VMatLanguage.h>
Inheritance diagram for PLearn::PreprocessingVMatrix:
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< string > | fieldnames |
Private Types | |
typedef RowBufferedVMatrix | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. |
|
Reimplemented from PLearn::RowBufferedVMatrix. Definition at line 136 of file VMatLanguage.h. |
|
Definition at line 145 of file VMatLanguage.h. |
|
Definition at line 812 of file VMatLanguage.cc. References build(), PLearn::VMatLanguage::compileString(), fieldnames, and program. |
|
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(). |
|
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(). |
|
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. |
|
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. |
|
|
|
Definition at line 142 of file VMatLanguage.h. Referenced by build_(), and PreprocessingVMatrix(). |
|
Definition at line 140 of file VMatLanguage.h. Referenced by getNewRow(), and PreprocessingVMatrix(). |
|
Definition at line 139 of file VMatLanguage.h. Referenced by build_(). |
|
Definition at line 141 of file VMatLanguage.h. Referenced by build_(). |