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

PLearn::DBSplitter Class Reference

#include <DBSplitter.h>

Inheritance diagram for PLearn::DBSplitter:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

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

virtual int nsplits () const
 Returns the number of available different "splits".

virtual int nSetsPerSplit () const
 Returns the number of sets per split.

virtual TVec< VMatgetSplit (int i=0)
 Returns split number i.


Public Attributes

TVec< stringdatabases

Static Protected Member Functions

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


Private Types

typedef Splitter inherited

Private Member Functions

void build_ ()
 This does the actual building.


Member Typedef Documentation

typedef Splitter PLearn::DBSplitter::inherited [private]
 

Reimplemented from PLearn::Splitter.

Definition at line 57 of file DBSplitter.h.


Constructor & Destructor Documentation

PLearn::DBSplitter::DBSplitter  ) 
 

Definition at line 50 of file DBSplitter.cc.


Member Function Documentation

void PLearn::DBSplitter::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::Object.

Definition at line 75 of file DBSplitter.cc.

References build_().

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

This does the actual building.

Reimplemented from PLearn::Object.

Definition at line 70 of file DBSplitter.cc.

Referenced by build().

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

Declares this class' options.

Reimplemented from PLearn::Object.

Definition at line 60 of file DBSplitter.cc.

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

TVec< VMat > PLearn::DBSplitter::getSplit int  i = 0  )  [virtual]
 

Returns split number i.

Implements PLearn::Splitter.

Definition at line 105 of file DBSplitter.cc.

References PLearn::TVec< T >::append(), databases, and k.

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

Transforms a shallow copy into a deep copy.

Reimplemented from PLearn::Splitter.

Definition at line 81 of file DBSplitter.cc.

References PLERROR.

int PLearn::DBSplitter::nSetsPerSplit  )  const [virtual]
 

Returns the number of sets per split.

Implements PLearn::Splitter.

Definition at line 100 of file DBSplitter.cc.

int PLearn::DBSplitter::nsplits  )  const [virtual]
 

Returns the number of available different "splits".

Implements PLearn::Splitter.

Definition at line 95 of file DBSplitter.cc.

References databases, and PLearn::TVec< string >::size().

PLearn::DBSplitter::PLEARN_DECLARE_OBJECT DBSplitter   ) 
 

Declares name and deepCopy methods.


Member Data Documentation

TVec<string> PLearn::DBSplitter::databases
 

Definition at line 73 of file DBSplitter.h.

Referenced by getSplit(), and nsplits().


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