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

PLearn::PrecomputedVMatrix Class Reference

#include <PrecomputedVMatrix.h>

Inheritance diagram for PLearn::PrecomputedVMatrix:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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


Public Attributes

string precomp_type

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

VMat precomp_source

Private Types

typedef SourceVMatrix inherited

Private Member Functions

void build_ ()
 This does the actual building.

void usePrecomputed ()

Member Typedef Documentation

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

Reimplemented from PLearn::SourceVMatrix.

Definition at line 54 of file PrecomputedVMatrix.h.


Constructor & Destructor Documentation

PLearn::PrecomputedVMatrix::PrecomputedVMatrix  ) 
 

Definition at line 52 of file PrecomputedVMatrix.cc.


Member Function Documentation

void PLearn::PrecomputedVMatrix::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 145 of file PrecomputedVMatrix.cc.

References build_().

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

This does the actual building.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 139 of file PrecomputedVMatrix.cc.

References PLearn::SourceVMatrix::setMetaInfoFromSource().

Referenced by build().

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

Declares this class' options.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 70 of file PrecomputedVMatrix.cc.

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

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

This is the only method requiring implementation.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 63 of file PrecomputedVMatrix.cc.

References PLearn::PP< VMatrix >::isNull(), PLERROR, precomp_source, and PLearn::Vec.

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

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::SourceVMatrix.

Definition at line 151 of file PrecomputedVMatrix.cc.

References PLearn::deepCopyField(), and precomp_source.

PLearn::PrecomputedVMatrix::PLEARN_DECLARE_OBJECT PrecomputedVMatrix   ) 
 

Declares name and deepCopy methods.

void PLearn::PrecomputedVMatrix::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 88 of file PrecomputedVMatrix.cc.

References PLearn::VMatrix::hasMetaDataDir(), and usePrecomputed().

void PLearn::PrecomputedVMatrix::usePrecomputed  )  [private]
 

Definition at line 95 of file PrecomputedVMatrix.cc.

References PLearn::append_slash(), PLearn::force_rmdir(), PLearn::VMatrix::getMetaDataDir(), PLearn::isdir(), PLearn::isfile(), PLearn::VMat::length(), PLERROR, precomp_source, precomp_type, and PLearn::rm().

Referenced by setMetaDataDir().


Member Data Documentation

VMat PLearn::PrecomputedVMatrix::precomp_source [protected]
 

Definition at line 57 of file PrecomputedVMatrix.h.

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

string PLearn::PrecomputedVMatrix::precomp_type
 

Definition at line 64 of file PrecomputedVMatrix.h.

Referenced by usePrecomputed().


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