PLearn 0.1
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Static Protected Member Functions | Private Types | Private Member Functions
PLearn::RowsSubVMatrix Class Reference

#include <RowsSubVMatrix.h>

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

List of all members.

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 OptionListgetOptionList () const
virtual OptionMapgetOptionMap () const
virtual RemoteMethodMapgetRemoteMethodMap () const
virtual RowsSubVMatrixdeepCopy (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 PPathdeclaringFile ()

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.

Detailed Description

Definition at line 52 of file RowsSubVMatrix.h.


Member Typedef Documentation

Reimplemented from PLearn::SourceVMatrix.

Definition at line 54 of file RowsSubVMatrix.h.


Constructor & Destructor Documentation

PLearn::RowsSubVMatrix::RowsSubVMatrix ( )

Definition at line 50 of file RowsSubVMatrix.cc.

    :startrow(0)
{}
PLearn::RowsSubVMatrix::RowsSubVMatrix ( VMat  the_source,
int  the_startrow,
int  the_length 
)

Definition at line 54 of file RowsSubVMatrix.cc.

References build_(), and PLearn::VMatrix::length_.

    :SourceVMatrix(the_source), startrow(the_startrow)
{
    length_ = the_length;
    build_();
}

Here is the call graph for this function:


Member Function Documentation

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.

bool PLearn::RowsSubVMatrix::_isa_ ( const Object o) [static]

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_().

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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);
}

Here is the call graph for this function:

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.

void PLearn::RowsSubVMatrix::getNewRow ( int  i,
const Vec v 
) const [virtual]

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.

{
    source->getRow(startrow+i,v);
}
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().

Here is the call graph for this function:


Member Data Documentation

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().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines