PLearn 0.1
|
#include <RowsSubVMatrix.h>
Public Member Functions | |
RowsSubVMatrix () | |
RowsSubVMatrix (VMat the_source, int the_startrow, int the_length) | |
virtual void | getNewRow (int i, const Vec &v) const |
This is the only method requiring implementation. | |
virtual void | build () |
Simply calls inherited::build() then build_(). | |
virtual void | makeDeepCopyFromShallowCopy (CopiesMap &copies) |
Transforms a shallow copy into a deep copy. | |
virtual string | classname () const |
virtual OptionList & | getOptionList () const |
virtual OptionMap & | getOptionMap () const |
virtual RemoteMethodMap & | getRemoteMethodMap () const |
virtual RowsSubVMatrix * | deepCopy (CopiesMap &copies) const |
Static Public Member Functions | |
static string | _classname_ () |
Declares name and deepCopy methods. | |
static OptionList & | _getOptionList_ () |
static RemoteMethodMap & | _getRemoteMethodMap_ () |
static Object * | _new_instance_for_typemap_ () |
static bool | _isa_ (const Object *o) |
static void | _static_initialize_ () |
static const PPath & | declaringFile () |
Public Attributes | |
int | startrow |
Static Public Attributes | |
static StaticInitializer | _static_initializer_ |
Static Protected Member Functions | |
static void | declareOptions (OptionList &ol) |
Declares this class' options. | |
Private Types | |
typedef SourceVMatrix | inherited |
Private Member Functions | |
void | build_ () |
This does the actual building. |
Definition at line 52 of file RowsSubVMatrix.h.
typedef SourceVMatrix PLearn::RowsSubVMatrix::inherited [private] |
Reimplemented from PLearn::SourceVMatrix.
Definition at line 54 of file RowsSubVMatrix.h.
PLearn::RowsSubVMatrix::RowsSubVMatrix | ( | ) |
Definition at line 50 of file RowsSubVMatrix.cc.
:startrow(0) {}
Definition at line 54 of file RowsSubVMatrix.cc.
References build_(), and PLearn::VMatrix::length_.
:SourceVMatrix(the_source), startrow(the_startrow) { length_ = the_length; build_(); }
string PLearn::RowsSubVMatrix::_classname_ | ( | ) | [static] |
Declares name and deepCopy methods.
Reimplemented from PLearn::SourceVMatrix.
Definition at line 62 of file RowsSubVMatrix.cc.
OptionList & PLearn::RowsSubVMatrix::_getOptionList_ | ( | ) | [static] |
Reimplemented from PLearn::SourceVMatrix.
Definition at line 62 of file RowsSubVMatrix.cc.
RemoteMethodMap & PLearn::RowsSubVMatrix::_getRemoteMethodMap_ | ( | ) | [static] |
Reimplemented from PLearn::SourceVMatrix.
Definition at line 62 of file RowsSubVMatrix.cc.
Reimplemented from PLearn::SourceVMatrix.
Definition at line 62 of file RowsSubVMatrix.cc.
Object * PLearn::RowsSubVMatrix::_new_instance_for_typemap_ | ( | ) | [static] |
Reimplemented from PLearn::SourceVMatrix.
Definition at line 62 of file RowsSubVMatrix.cc.
StaticInitializer RowsSubVMatrix::_static_initializer_ & PLearn::RowsSubVMatrix::_static_initialize_ | ( | ) | [static] |
Reimplemented from PLearn::SourceVMatrix.
Definition at line 62 of file RowsSubVMatrix.cc.
void PLearn::RowsSubVMatrix::build | ( | ) | [virtual] |
Simply calls inherited::build() then build_().
Reimplemented from PLearn::SourceVMatrix.
Definition at line 86 of file RowsSubVMatrix.cc.
References PLearn::SourceVMatrix::build(), and build_().
{ inherited::build(); build_(); }
void PLearn::RowsSubVMatrix::build_ | ( | ) | [private] |
This does the actual building.
Reimplemented from PLearn::SourceVMatrix.
Definition at line 79 of file RowsSubVMatrix.cc.
References PLearn::SourceVMatrix::setMetaInfoFromSource(), and PLearn::SourceVMatrix::source.
Referenced by build(), and RowsSubVMatrix().
{ if (source) setMetaInfoFromSource(); }
string PLearn::RowsSubVMatrix::classname | ( | ) | const [virtual] |
Reimplemented from PLearn::SourceVMatrix.
Definition at line 62 of file RowsSubVMatrix.cc.
void PLearn::RowsSubVMatrix::declareOptions | ( | OptionList & | ol | ) | [static, protected] |
Declares this class' options.
Reimplemented from PLearn::SourceVMatrix.
Definition at line 69 of file RowsSubVMatrix.cc.
References PLearn::OptionBase::buildoption, PLearn::declareOption(), PLearn::SourceVMatrix::declareOptions(), and startrow.
{ declareOption(ol, "startrow", &RowsSubVMatrix::startrow, OptionBase::buildoption, "The row where this submatrix starts in the source.\n" "You should also explicitly specify the length option.\n"); // Now call the parent class' declareOptions inherited::declareOptions(ol); }
static const PPath& PLearn::RowsSubVMatrix::declaringFile | ( | ) | [inline, static] |
Reimplemented from PLearn::SourceVMatrix.
Definition at line 98 of file RowsSubVMatrix.h.
RowsSubVMatrix * PLearn::RowsSubVMatrix::deepCopy | ( | CopiesMap & | copies | ) | const [virtual] |
Reimplemented from PLearn::SourceVMatrix.
Definition at line 62 of file RowsSubVMatrix.cc.
This is the only method requiring implementation.
Reimplemented from PLearn::SourceVMatrix.
Definition at line 64 of file RowsSubVMatrix.cc.
References PLearn::SourceVMatrix::source, and startrow.
OptionList & PLearn::RowsSubVMatrix::getOptionList | ( | ) | const [virtual] |
Reimplemented from PLearn::SourceVMatrix.
Definition at line 62 of file RowsSubVMatrix.cc.
OptionMap & PLearn::RowsSubVMatrix::getOptionMap | ( | ) | const [virtual] |
Reimplemented from PLearn::SourceVMatrix.
Definition at line 62 of file RowsSubVMatrix.cc.
RemoteMethodMap & PLearn::RowsSubVMatrix::getRemoteMethodMap | ( | ) | const [virtual] |
Reimplemented from PLearn::SourceVMatrix.
Definition at line 62 of file RowsSubVMatrix.cc.
void PLearn::RowsSubVMatrix::makeDeepCopyFromShallowCopy | ( | CopiesMap & | copies | ) | [virtual] |
Transforms a shallow copy into a deep copy.
Reimplemented from PLearn::SourceVMatrix.
Definition at line 92 of file RowsSubVMatrix.cc.
References PLearn::SourceVMatrix::makeDeepCopyFromShallowCopy().
{ inherited::makeDeepCopyFromShallowCopy(copies); }
Reimplemented from PLearn::SourceVMatrix.
Definition at line 98 of file RowsSubVMatrix.h.
Definition at line 61 of file RowsSubVMatrix.h.
Referenced by declareOptions(), and getNewRow().