| PLearn 0.1 | 
#include <GetInputVMatrix.h>


| 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 OptionList & | getOptionList () const | 
| virtual OptionMap & | getOptionMap () const | 
| virtual RemoteMethodMap & | getRemoteMethodMap () const | 
| virtual GetInputVMatrix * | deepCopy (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 PPath & | declaringFile () | 
| 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. | |
Definition at line 52 of file GetInputVMatrix.h.
| typedef SelectColumnsVMatrix PLearn::GetInputVMatrix::inherited  [private] | 
Reimplemented from PLearn::SelectColumnsVMatrix.
Definition at line 57 of file GetInputVMatrix.h.
| PLearn::GetInputVMatrix::GetInputVMatrix | ( | ) | 
| PLearn::GetInputVMatrix::GetInputVMatrix | ( | VMat | the_source | ) | 
Convenient constructor.
Definition at line 56 of file GetInputVMatrix.cc.
| string PLearn::GetInputVMatrix::_classname_ | ( | ) |  [static] | 
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.
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().
{
    inherited::build();
    build_();
}

| void PLearn::GetInputVMatrix::build_ | ( | ) |  [private] | 
This does the actual building.
Reimplemented from PLearn::SelectColumnsVMatrix.
Definition at line 92 of file GetInputVMatrix.cc.
{
    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.
{
    inherited::makeDeepCopyFromShallowCopy(copies);
}
Reimplemented from PLearn::SelectColumnsVMatrix.
Definition at line 110 of file GetInputVMatrix.h.
 1.7.4
 1.7.4