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

#include <GetInputVMatrix.h>

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

List of all members.

Public Member Functions

 GetInputVMatrix ()
 Default constructor.
 GetInputVMatrix (VMat the_source)
 Convenient constructor.
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 GetInputVMatrixdeepCopy (CopiesMap &copies) const

Static Public Member Functions

static string _classname_ ()
 SelectColumnsVMatrix.
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 ()

Static Public Attributes

static StaticInitializer _static_initializer_

Static Protected Member Functions

static void declareOptions (OptionList &ol)
 Declares this class' options.

Private Types

typedef SelectColumnsVMatrix inherited

Private Member Functions

void build_ ()
 This does the actual building.

Detailed Description

Definition at line 52 of file GetInputVMatrix.h.


Member Typedef Documentation

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 57 of file GetInputVMatrix.h.


Constructor & Destructor Documentation

PLearn::GetInputVMatrix::GetInputVMatrix ( )

Default constructor.

Definition at line 52 of file GetInputVMatrix.cc.

{
}
PLearn::GetInputVMatrix::GetInputVMatrix ( VMat  the_source)

Convenient constructor.

Definition at line 56 of file GetInputVMatrix.cc.

                                                {
    this->source = the_source;
    build_();
}

Member Function Documentation

string PLearn::GetInputVMatrix::_classname_ ( ) [static]

SelectColumnsVMatrix.

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 64 of file GetInputVMatrix.cc.

OptionList & PLearn::GetInputVMatrix::_getOptionList_ ( ) [static]

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 64 of file GetInputVMatrix.cc.

RemoteMethodMap & PLearn::GetInputVMatrix::_getRemoteMethodMap_ ( ) [static]

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 64 of file GetInputVMatrix.cc.

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

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 64 of file GetInputVMatrix.cc.

Object * PLearn::GetInputVMatrix::_new_instance_for_typemap_ ( ) [static]

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 64 of file GetInputVMatrix.cc.

StaticInitializer GetInputVMatrix::_static_initializer_ & PLearn::GetInputVMatrix::_static_initialize_ ( ) [static]

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 64 of file GetInputVMatrix.cc.

void PLearn::GetInputVMatrix::build ( ) [virtual]

Simply calls inherited::build() then build_()

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 83 of file GetInputVMatrix.cc.

Referenced by PLearn::get_input().

Here is the caller graph for this function:

void PLearn::GetInputVMatrix::build_ ( ) [private]

This does the actual building.

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 92 of file GetInputVMatrix.cc.

References i, and PLERROR.

{
    weightsize_ = 0;
    if (source) {
        updateMtime(source);
        if(targetsize_ < 0) targetsize_ = 0;
        if(inputsize_ < 0) inputsize_ = source->inputsize();

        if (inputsize_ < 0) {
            PLERROR("In GetInputVMatrix::build_ - The source VMatrix doesn't have an inputsize defined");
        }
        indices.resize(source->inputsize());
        for (int i = 0; i < source->inputsize(); i++) {
            indices[i] = i;
        }

        // We need to rebuild the SelectColumnsVMatrix.
        inherited::build();
        if(inputsize_+targetsize_ != width_) PLERROR("In GetInputVMatrix:build_() : inputsize_ + targetsize_ != width_");
    }
}
string PLearn::GetInputVMatrix::classname ( ) const [virtual]

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 64 of file GetInputVMatrix.cc.

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

Declares this class' options.

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 69 of file GetInputVMatrix.cc.

{
    // ### ex:
    // declareOption(ol, "myoption", &GetInputVMatrix::myoption, OptionBase::buildoption,
    //               "Help text describing this option");
    // ...

    // Now call the parent class' declareOptions
    inherited::declareOptions(ol);
}
static const PPath& PLearn::GetInputVMatrix::declaringFile ( ) [inline, static]

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 110 of file GetInputVMatrix.h.

{
GetInputVMatrix * PLearn::GetInputVMatrix::deepCopy ( CopiesMap copies) const [virtual]

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 64 of file GetInputVMatrix.cc.

OptionList & PLearn::GetInputVMatrix::getOptionList ( ) const [virtual]

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 64 of file GetInputVMatrix.cc.

OptionMap & PLearn::GetInputVMatrix::getOptionMap ( ) const [virtual]

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 64 of file GetInputVMatrix.cc.

RemoteMethodMap & PLearn::GetInputVMatrix::getRemoteMethodMap ( ) const [virtual]

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 64 of file GetInputVMatrix.cc.

void PLearn::GetInputVMatrix::makeDeepCopyFromShallowCopy ( CopiesMap copies) [virtual]

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 117 of file GetInputVMatrix.cc.


Member Data Documentation

Reimplemented from PLearn::SelectColumnsVMatrix.

Definition at line 110 of file GetInputVMatrix.h.


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