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

PLearn::DatedJoinVMatrix Class Reference

#include <DatedJoinVMatrix.h>

Inheritance diagram for PLearn::DatedJoinVMatrix:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef hash_multimap< Array<
real >, int
Maptype

Public Member Functions

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


Public Attributes

VMat master
VMat slave
TVec< intmaster_key_indices
TVec< intslave_key_indices
TVec< stringmaster_key_names
TVec< stringslave_key_names
TVec< intslave_field_indices
TVec< stringslave_field_names
TVec< intmaster_field_indices
TVec< stringmaster_field_names
int master_date_field_index
string master_date_field_name
int slave_date_interval_start_field_index
int slave_date_interval_end_field_index
string slave_date_interval_start_field_name
string slave_date_interval_end_field_name
int verbosity
bool output_the_slave
bool output_matching_index

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

Vec slave_row
Vec master_row
Array< realkey
Maptype mp
TVec< intmaster2slave
TVec< list< int > > slave2master
int n_master_fields
int n_slave_fields

Private Types

typedef RowBufferedVMatrix inherited

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

typedef RowBufferedVMatrix PLearn::DatedJoinVMatrix::inherited [private]
 

Reimplemented from PLearn::RowBufferedVMatrix.

Definition at line 55 of file DatedJoinVMatrix.h.

Referenced by DatedJoinVMatrix().

typedef hash_multimap<Array<real>,int > PLearn::DatedJoinVMatrix::Maptype
 

Definition at line 58 of file DatedJoinVMatrix.h.


Constructor & Destructor Documentation

PLearn::DatedJoinVMatrix::DatedJoinVMatrix  ) 
 

Definition at line 51 of file DatedJoinVMatrix.cc.

References inherited.


Member Function Documentation

void PLearn::DatedJoinVMatrix::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::VMatrix.

Definition at line 479 of file DatedJoinVMatrix.cc.

References build_().

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

This does the actual building.

Copy the appropriate VMFields

Reimplemented from PLearn::VMatrix.

Definition at line 272 of file DatedJoinVMatrix.cc.

References PLearn::TVec< T >::append(), PLearn::TVec< string >::contains(), PLearn::endl(), PLearn::TVec< int >::fill(), PLearn::float_to_date(), PLearn::VMat::getFieldIndex(), key, PLearn::VMat::length(), PLearn::TVec< int >::length(), PLearn::TVec< string >::length(), master, master2slave, master_date_field_index, master_date_field_name, master_field_indices, master_field_names, master_key_indices, master_key_names, master_row, mp, n_master_fields, n_slave_fields, PLearn::VMField::name, output_matching_index, output_the_slave, PLERROR, PLWARNING, PLearn::TVec< list< int > >::push_back(), PLearn::TVec< list< int > >::resize(), PLearn::TVec< VMField >::resize(), PLearn::TVec< T >::resize(), PLearn::TVec< real >::resize(), PLearn::TVec< int >::resize(), PLearn::TVec< T >::size(), PLearn::TVec< int >::size(), slave, slave2master, slave_date_interval_end_field_index, slave_date_interval_end_field_name, slave_date_interval_start_field_index, slave_date_interval_start_field_name, slave_field_indices, slave_field_names, slave_key_indices, slave_key_names, slave_row, PLearn::ProgressBar::update(), verbosity, and PLearn::VMat::width().

Referenced by build().

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

Declares this class' options.

Reimplemented from PLearn::VMatrix.

Definition at line 139 of file DatedJoinVMatrix.cc.

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

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

This is the only method requiring implementation.

Implements PLearn::RowBufferedVMatrix.

Definition at line 81 of file DatedJoinVMatrix.cc.

References PLearn::TVec< T >::clear(), PLearn::TVec< T >::fill(), PLearn::TVec< int >::length(), master, master2slave, master_field_indices, master_row, MISSING_VALUE, n_master_fields, n_slave_fields, output_matching_index, output_the_slave, PLERROR, PLearn::TVec< T >::push_back(), PLearn::TVec< int >::size(), slave, slave2master, slave_field_indices, slave_key_indices, slave_row, PLearn::TVec< T >::subVec(), and PLearn::Vec.

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

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::RowBufferedVMatrix.

Definition at line 485 of file DatedJoinVMatrix.cc.

References PLearn::deepCopyField(), key, master, master2slave, master_key_indices, master_key_names, slave, slave2master, slave_field_indices, slave_field_names, slave_key_indices, slave_key_names, and slave_row.

PLearn::DatedJoinVMatrix::PLEARN_DECLARE_OBJECT DatedJoinVMatrix   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

Array<real> PLearn::DatedJoinVMatrix::key [protected]
 

Definition at line 67 of file DatedJoinVMatrix.h.

Referenced by build_(), and makeDeepCopyFromShallowCopy().

VMat PLearn::DatedJoinVMatrix::master
 

Definition at line 79 of file DatedJoinVMatrix.h.

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

TVec<int> PLearn::DatedJoinVMatrix::master2slave [protected]
 

Definition at line 69 of file DatedJoinVMatrix.h.

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

int PLearn::DatedJoinVMatrix::master_date_field_index
 

Definition at line 88 of file DatedJoinVMatrix.h.

Referenced by build_().

string PLearn::DatedJoinVMatrix::master_date_field_name
 

Definition at line 89 of file DatedJoinVMatrix.h.

Referenced by build_().

TVec<int> PLearn::DatedJoinVMatrix::master_field_indices
 

Definition at line 86 of file DatedJoinVMatrix.h.

Referenced by build_(), and getNewRow().

TVec<string> PLearn::DatedJoinVMatrix::master_field_names
 

Definition at line 87 of file DatedJoinVMatrix.h.

Referenced by build_().

TVec<int> PLearn::DatedJoinVMatrix::master_key_indices
 

Definition at line 80 of file DatedJoinVMatrix.h.

Referenced by build_(), and makeDeepCopyFromShallowCopy().

TVec<string> PLearn::DatedJoinVMatrix::master_key_names
 

Definition at line 82 of file DatedJoinVMatrix.h.

Referenced by build_(), and makeDeepCopyFromShallowCopy().

Vec PLearn::DatedJoinVMatrix::master_row [protected]
 

Definition at line 66 of file DatedJoinVMatrix.h.

Referenced by build_(), and getNewRow().

Maptype PLearn::DatedJoinVMatrix::mp [protected]
 

Definition at line 68 of file DatedJoinVMatrix.h.

Referenced by build_().

int PLearn::DatedJoinVMatrix::n_master_fields [protected]
 

Definition at line 71 of file DatedJoinVMatrix.h.

Referenced by build_(), and getNewRow().

int PLearn::DatedJoinVMatrix::n_slave_fields [protected]
 

Definition at line 71 of file DatedJoinVMatrix.h.

Referenced by build_(), and getNewRow().

bool PLearn::DatedJoinVMatrix::output_matching_index
 

Definition at line 96 of file DatedJoinVMatrix.h.

Referenced by build_(), and getNewRow().

bool PLearn::DatedJoinVMatrix::output_the_slave
 

Definition at line 95 of file DatedJoinVMatrix.h.

Referenced by build_(), and getNewRow().

VMat PLearn::DatedJoinVMatrix::slave
 

Definition at line 79 of file DatedJoinVMatrix.h.

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

TVec<list<int> > PLearn::DatedJoinVMatrix::slave2master [protected]
 

Definition at line 70 of file DatedJoinVMatrix.h.

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

int PLearn::DatedJoinVMatrix::slave_date_interval_end_field_index
 

Definition at line 91 of file DatedJoinVMatrix.h.

Referenced by build_().

string PLearn::DatedJoinVMatrix::slave_date_interval_end_field_name
 

Definition at line 93 of file DatedJoinVMatrix.h.

Referenced by build_().

int PLearn::DatedJoinVMatrix::slave_date_interval_start_field_index
 

Definition at line 90 of file DatedJoinVMatrix.h.

Referenced by build_().

string PLearn::DatedJoinVMatrix::slave_date_interval_start_field_name
 

Definition at line 92 of file DatedJoinVMatrix.h.

Referenced by build_().

TVec<int> PLearn::DatedJoinVMatrix::slave_field_indices
 

Definition at line 84 of file DatedJoinVMatrix.h.

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

TVec<string> PLearn::DatedJoinVMatrix::slave_field_names
 

Definition at line 85 of file DatedJoinVMatrix.h.

Referenced by build_(), and makeDeepCopyFromShallowCopy().

TVec<int> PLearn::DatedJoinVMatrix::slave_key_indices
 

Definition at line 81 of file DatedJoinVMatrix.h.

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

TVec<string> PLearn::DatedJoinVMatrix::slave_key_names
 

Definition at line 83 of file DatedJoinVMatrix.h.

Referenced by build_(), and makeDeepCopyFromShallowCopy().

Vec PLearn::DatedJoinVMatrix::slave_row [protected]
 

Definition at line 66 of file DatedJoinVMatrix.h.

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

int PLearn::DatedJoinVMatrix::verbosity
 

Definition at line 94 of file DatedJoinVMatrix.h.

Referenced by build_().


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