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

PLearn::ProcessingVMatrix Class Reference

#include <ProcessingVMatrix.h>

Inheritance diagram for PLearn::ProcessingVMatrix:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ProcessingVMatrix ()
 ProcessingVMatrix (VMat the_source, const string &program_string)
virtual void setMetaDataDir (const string &the_metadatadir)
 Also sets the source's meta-data dir if it's not already set.

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 (ProcessingVMatrix)
 Declares name and deepCopy methods.


Public Attributes

string prg

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.


Protected Attributes

Vec sourcevec
VMatLanguage program

Private Types

typedef SourceVMatrix inherited

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

typedef SourceVMatrix PLearn::ProcessingVMatrix::inherited [private]
 

Reimplemented from PLearn::SourceVMatrix.

Definition at line 55 of file ProcessingVMatrix.h.

Referenced by ProcessingVMatrix().


Constructor & Destructor Documentation

PLearn::ProcessingVMatrix::ProcessingVMatrix  ) 
 

Definition at line 50 of file ProcessingVMatrix.cc.

References inherited.

PLearn::ProcessingVMatrix::ProcessingVMatrix VMat  the_source,
const string program_string
[inline]
 

Definition at line 76 of file ProcessingVMatrix.h.

References build_(), and prg.


Member Function Documentation

void PLearn::ProcessingVMatrix::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::SourceVMatrix.

Definition at line 99 of file ProcessingVMatrix.cc.

References build_().

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

This does the actual building.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 76 of file ProcessingVMatrix.cc.

References PLearn::VMatLanguage::compileString(), prg, program, PLearn::TVec< T >::resize(), PLearn::TVec< VMField >::resize(), PLearn::SourceVMatrix::setMetaInfoFromSource(), PLearn::VMatLanguage::setSource(), sourcevec, and PLearn::VMat::width().

Referenced by build(), and ProcessingVMatrix().

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

Declares this class' options.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 67 of file ProcessingVMatrix.cc.

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

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

This is the only method requiring implementation.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 62 of file ProcessingVMatrix.cc.

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

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

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 105 of file ProcessingVMatrix.cc.

PLearn::ProcessingVMatrix::PLEARN_DECLARE_OBJECT ProcessingVMatrix   ) 
 

Declares name and deepCopy methods.

void PLearn::ProcessingVMatrix::setMetaDataDir const string the_metadatadir  )  [virtual]
 

Also sets the source's meta-data dir if it's not already set.

If there are fields that have no corresponding .smap .notes or .binning info files but the source has those files for a field with the same name, then those of the source will be set also for this vmatrix.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 92 of file ProcessingVMatrix.cc.

References PLearn::VMat::length().


Member Data Documentation

string PLearn::ProcessingVMatrix::prg
 

Definition at line 66 of file ProcessingVMatrix.h.

Referenced by build_(), and ProcessingVMatrix().

VMatLanguage PLearn::ProcessingVMatrix::program [protected]
 

Definition at line 59 of file ProcessingVMatrix.h.

Referenced by build_(), and getNewRow().

Vec PLearn::ProcessingVMatrix::sourcevec [protected]
 

Definition at line 58 of file ProcessingVMatrix.h.

Referenced by build_().


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